aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/TrafficGenerator.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2017-02-02 11:45:16 +0000
committerPeter Mikus <pmikus@cisco.com>2017-02-09 06:21:43 +0000
commitb468094f7c9e2ecd32712fde46de46eeef4acc8f (patch)
tree7efb3443740c0d9cb6bb7a629d28d0b2ed440c5e /resources/libraries/python/TrafficGenerator.py
parent1fcfc9bcc91c9bf9f1ab10fab898efc0d8c1e25f (diff)
Upgrade T-rex to newer version
Change-Id: I8b918a3c1d8109fb64bfdeec8e5c9afe45a86d21 Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/TrafficGenerator.py')
-rw-r--r--resources/libraries/python/TrafficGenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index 86cf093656..47008bc22a 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.09"
+ trex_path = "/opt/trex-core-2.17"
ssh = SSH()
ssh.connect(tg_node)
@@ -252,7 +252,7 @@ class TrafficGenerator(object):
while max_startup_retries > 0:
# kill T-rex only if it is already running
(ret, _, _) = ssh.exec_command(
- "sh -c 'pgrep t-rex && sudo pkill t-rex'")
+ "sh -c 'pgrep t-rex && sudo pkill t-rex && sleep 3'")
# configure T-rex
(ret, stdout, stderr) = ssh.exec_command(