aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench
diff options
context:
space:
mode:
Diffstat (limited to 'nfvbench')
-rw-r--r--nfvbench/chaining.py2
-rwxr-xr-xnfvbench/traffic_client.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/nfvbench/chaining.py b/nfvbench/chaining.py
index 5248d01..d6f67f9 100644
--- a/nfvbench/chaining.py
+++ b/nfvbench/chaining.py
@@ -1541,7 +1541,7 @@ class ChainManager(object):
hypervisor = self.get_hypervisor_from_mac(dst_mac)
if hypervisor:
LOG.info('Found hypervisor for EXT chain: %s', hypervisor.hypervisor_hostname)
- return[':' + hypervisor.hypervisor_hostname]
+ return [':' + hypervisor.hypervisor_hostname]
# no openstack = no chains
return []
diff --git a/nfvbench/traffic_client.py b/nfvbench/traffic_client.py
index c349289..47af265 100755
--- a/nfvbench/traffic_client.py
+++ b/nfvbench/traffic_client.py
@@ -628,7 +628,7 @@ class GeneratorConfig(object):
self.intf_speed = gen_config.intf_speed
else:
self.intf_speed = "auto"
- if self.intf_speed == "auto" or self.intf_speed == "0":
+ if self.intf_speed in ("auto", "0"):
# interface speed is discovered/provided by the traffic generator
self.intf_speed = 0
else: