aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/Constants.py5
-rw-r--r--resources/libraries/python/TrafficGenerator.py3
2 files changed, 3 insertions, 5 deletions
diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py
index b7f91930cb..9dd9a38e17 100644
--- a/resources/libraries/python/Constants.py
+++ b/resources/libraries/python/Constants.py
@@ -184,11 +184,8 @@ class Constants(object):
# Docker container arm SUT image
DOCKER_SUT_IMAGE_UBUNTU_ARM = 'snergster/csit-arm-sut:latest'
- # TRex install version
- TREX_INSTALL_VERSION = '2.54'
-
# TRex install directory
- TREX_INSTALL_DIR = '/opt/trex-core-2.54'
+ TREX_INSTALL_DIR = '/opt/trex-core-2.61'
# Honeycomb directory location at topology nodes:
REMOTE_HC_DIR = '/opt/honeycomb'
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index f2fac256fc..2e59459773 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -323,7 +323,8 @@ class TrafficGenerator(AbstractMeasurer):
self._node, cmd, sudo=True,
message='Unbind PCI ports from driver failed!')
- cmd = ("sh -c 'cd {dir}/scripts/ && ./trex-cfg'"
+ cmd = ("sh -c 'cd {dir}/scripts/ && ./trex-cfg "
+ "--unbind-unused-ports'"
.format(dir=Constants.TREX_INSTALL_DIR))
exec_cmd_no_error(
self._node, cmd, sudo=True, message='Config TRex failed!')