[NFVBENCH-65] 1.2.2: AttributeError: 'RunningTrafficProfile' object has no attribute...
[nfvbench.git] / nfvbench / traffic_server.py
index fe9edd2..007998e 100644 (file)
@@ -43,7 +43,7 @@ class TRexTrafficServer(TrafficServer):
         """
         cfg = self.__save_config(traffic_profile, filename)
         cores = traffic_profile.cores
-        sw_mode = "--software" if traffic_profile.software_mode else ""
+        sw_mode = "--software" if traffic_profile.generator_config.software_mode else ""
         subprocess.Popen(['nohup', '/bin/bash', '-c',
                           './t-rex-64 -i -c {} --iom 0 --no-scapy-server --close-at-end {} '
                           '--vlan --cfg {} &> /tmp/trex.log & disown'.format(cores, sw_mode, cfg)],