aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorjuraj.linkes <juraj.linkes@pantheon.tech>2019-01-31 15:32:24 +0100
committerPeter Mikus <pmikus@cisco.com>2019-07-11 19:16:47 +0000
commit46efda9bd3a32cfe9944cb421ae3e2a3978bf9fc (patch)
treeb26ab38c18a0eb3105dbd3687331a5120a4fcb3a /resources/libraries/python
parentf8452762b3dd6370792a5891b1010c263140bae6 (diff)
CSIT-1477: add 1n_tx2 VPP Device
- add 1n_tx2 testbed - update VF reservation to meet 1n_tx2 testbed needs - update ansible with 1n_tx2 Change-Id: Ia075a913d4859f537fd0e6bff731ea88aff01dd9 Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/Constants.py3
-rw-r--r--resources/libraries/python/ContainerUtils.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py
index cb66a5d8d5..877fc25012 100644
--- a/resources/libraries/python/Constants.py
+++ b/resources/libraries/python/Constants.py
@@ -67,6 +67,9 @@ class Constants(object):
# QEMU VM DPDK path
QEMU_VM_DPDK = '/opt/dpdk-19.02'
+ # Docker container SUT image
+ DOCKER_SUT_IMAGE_UBUNTU = 'snergster/csit-sut:latest'
+
# TRex install version
TREX_INSTALL_VERSION = '2.54'
diff --git a/resources/libraries/python/ContainerUtils.py b/resources/libraries/python/ContainerUtils.py
index 7d04b06fba..228648921a 100644
--- a/resources/libraries/python/ContainerUtils.py
+++ b/resources/libraries/python/ContainerUtils.py
@@ -784,7 +784,8 @@ class Docker(ContainerEngine):
return
if not self.container.image:
- setattr(self.container, 'image', 'snergster/csit-sut:latest')
+ setattr(self.container, 'image',
+ Constants.DOCKER_SUT_IMAGE_UBUNTU)
cmd = 'docker pull {image}'.format(image=self.container.image)