diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-09-13 12:00:49 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-10-30 07:40:07 +0000 |
commit | 62de349145b7868b80eba5577e64e7374e397fe1 (patch) | |
tree | 22fd1589f8da5f6e658e39147cac43ff319b1ec5 /resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.service | |
parent | 5e89137d55a693025a6206ad4c6f6dedef167e3e (diff) |
Add: Use containers for shared TG
+ Ansible
+ Service for auto load during restart
+ By default created 2 instances of Docker container
+ Small modification of Trex to use prefixes
+ DNV topology to use ssh port to connect to docker
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Ibc2b2f0e509d920fc3e05d012b88abc388f5c3e7
(cherry picked from commit 96eaabff284f154ca96ce823fee205bd9833043b)
(cherry picked from commit 744f1b25218b2a72be351056ff68af5f6a899bca)
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.service')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.service b/resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.service new file mode 100644 index 0000000000..11911201d5 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.service @@ -0,0 +1,12 @@ +[Unit] +Description=CSIT Initialize Docker TG +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=True +ExecStart=/usr/local/bin/csit-initialize-docker-tg.sh start 2 +ExecStop=/usr/local/bin/csit-initialize-docker-tg.sh stop + +[Install] +WantedBy=default.target |