[NFVBENCH-101] Hyperviosr affinity needs to be kept with NFVbench VMs
[nfvbench.git] / nfvbench / nfvbench.py
index c5c1244..e0b5786 100644 (file)
@@ -177,6 +177,7 @@ class NFVBench(object):
 
         self.config.duration_sec = float(self.config.duration_sec)
         self.config.interval_sec = float(self.config.interval_sec)
+        self.config.pause_sec = float(self.config.pause_sec)
 
         # Get traffic generator profile config
         if not self.config.generator_profile:
@@ -574,7 +575,9 @@ def main():
         if opts.no_int_config:
             config.no_int_config = opts.no_int_config
 
+        # port to port loopback (direct or through switch)
         if opts.l2_loopback:
+            config.l2_loopback = True
             if config.service_chain != ChainType.EXT:
                 LOG.info('Changing service chain type to EXT')
                 config.service_chain = ChainType.EXT