diff options
-rw-r--r-- | nfvbench/traffic_gen/traffic_base.py | 2 | ||||
-rw-r--r-- | nfvbench/traffic_server.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nfvbench/traffic_gen/traffic_base.py b/nfvbench/traffic_gen/traffic_base.py index 817ecc8..c2ac8d0 100644 --- a/nfvbench/traffic_gen/traffic_base.py +++ b/nfvbench/traffic_gen/traffic_base.py @@ -58,7 +58,7 @@ class AbstractTrafficGenerator(object): return None @abc.abstractmethod - def create_traffic(self): + def create_traffic(self, l2frame_size, rates, bidirectional, latency=True): # Must be implemented by sub classes return None diff --git a/nfvbench/traffic_server.py b/nfvbench/traffic_server.py index fe9edd2..007998e 100644 --- a/nfvbench/traffic_server.py +++ b/nfvbench/traffic_server.py @@ -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)], |