Add: Use containers for shared TG
[csit.git] / resources / libraries / python / TrafficGenerator.py
index fafb2b7..e93da04 100644 (file)
@@ -342,8 +342,8 @@ class TrafficGenerator(AbstractMeasurer):
 
             # Start TRex.
             cmd = ("sh -c 'cd {dir}/scripts/ && "
-                   "nohup ./t-rex-64 {mode} -i -c 7 > "
-                   "/tmp/trex.log 2>&1 &' > /dev/null"
+                   "nohup ./t-rex-64 {mode} --prefix $(hostname)"
+                   " -i -c 7 > /tmp/trex.log 2>&1 &' > /dev/null"
                    .format(dir=Constants.TREX_INSTALL_DIR,
                            mode='--astf' if osi_layer == 'L7' else ''))
             try: