diff options
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/TrafficGenerator.py | 5 | ||||
-rw-r--r-- | resources/libraries/python/constants.py | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py index a8083381d1..698b67ead2 100644 --- a/resources/libraries/python/TrafficGenerator.py +++ b/resources/libraries/python/TrafficGenerator.py @@ -185,8 +185,9 @@ class TrafficGenerator(object): ssh.connect(tg_node) (ret, _, _) = ssh.exec_command( - "sudo -E sh -c '{}/resources/tools/trex/" - "trex_installer.sh'".format(Constants.REMOTE_FW_DIR), + "sudo -E sh -c '{0}/resources/tools/trex/" + "trex_installer.sh {1}'".format(Constants.REMOTE_FW_DIR, + Constants.TREX_INSTALL_VERSION), timeout=1800) if int(ret) != 0: raise RuntimeError('TRex installation failed.') diff --git a/resources/libraries/python/constants.py b/resources/libraries/python/constants.py index 7ae9cdd06f..30f7531947 100644 --- a/resources/libraries/python/constants.py +++ b/resources/libraries/python/constants.py @@ -35,8 +35,11 @@ class Constants(object): # QEMU install directory QEMU_INSTALL_DIR = '/opt/qemu-2.5.0' + # TRex install version + TREX_INSTALL_VERSION = '2.35' + # TRex install directory - TREX_INSTALL_DIR = '/opt/trex-core-2.34' + TREX_INSTALL_DIR = '/opt/trex-core-2.35' # Kubernetes templates location RESOURCES_TPL_K8S = 'resources/templates/kubernetes' |