X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FTrafficGenerator.py;h=47008bc22aef1fcc4380ff62e444e35a3d6a7082;hp=86cf093656265701f9ea0272a595f67d8acf14f7;hb=b468094f7c9e2ecd32712fde46de46eeef4acc8f;hpb=1fcfc9bcc91c9bf9f1ab10fab898efc0d8c1e25f 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(