aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2017-05-22 15:16:24 +0200
committerPeter Mikus <pmikus@cisco.com>2017-05-23 05:43:50 +0000
commit0f2542f1bae6832503457d4b935783e2f1489746 (patch)
tree1a1b107cdaaab2a0f77dafa982747538461ee634 /resources/libraries/python
parent9ccd71652ec8217c048c55444a73dee136ebdaea (diff)
Upgrade T-rex to version 2.25
- Upgrade T-rex to v2.25 with multiple bug fixes. Change-Id: Idc422172ce98c37ace7bbbf054a2b024c313bbf7 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/TrafficGenerator.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index 8387ce2b3c..c9cd971cf3 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -184,7 +184,7 @@ class TrafficGenerator(object):
self._node = tg_node
if tg_node['subtype'] == NodeSubTypeTG.TREX:
- trex_path = "/opt/trex-core-2.22"
+ trex_path = "/opt/trex-core-2.25"
ssh = SSH()
ssh.connect(tg_node)
@@ -322,9 +322,6 @@ class TrafficGenerator(object):
(ret, stdout, stderr) = ssh.exec_command(
"sh -c '{}/resources/tools/t-rex/"
"t-rex-stateless-stop.py'".format(Constants.REMOTE_FW_DIR))
- logger.trace(ret)
- logger.trace(stdout)
- logger.trace(stderr)
if int(ret) != 0:
raise RuntimeError('T-rex stateless runtime error')
@@ -712,14 +709,10 @@ class TrafficGenerator(object):
duration, rate, framesize,
_p0, _p1, _async, _latency,
warmup_time),
- timeout = int(duration) + 60)
+ timeout=int(duration) + 60)
else:
raise NotImplementedError('Unsupported traffic type')
- logger.trace(ret)
- logger.trace(stdout)
- logger.trace(stderr)
-
if int(ret) != 0:
raise RuntimeError('T-rex stateless runtime error')
elif async_call: