summaryrefslogtreecommitdiffstats
path: root/nfvbench/specs.py
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2018-01-16 12:46:21 -0800
committerahothan <ahothan@cisco.com>2018-01-16 12:46:21 -0800
commit02c8ed97e27b6e417945d27d4d3c2ab8e7dbfa7e (patch)
treec6335c42266f70c77b7fa2560d5b932040e66d9a /nfvbench/specs.py
parentb481ad4a6c6b98cac760b12e4190f9540869e673 (diff)
[NFVBENCH-62] Add support for non-openstack environments
Add Unit test to validate non-openstack with dummy traffic gen Change-Id: I359ddb7d43169f706d8262842af975d5b4675a3a Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/specs.py')
-rw-r--r--nfvbench/specs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfvbench/specs.py b/nfvbench/specs.py
index 7a24d5c..a84a55f 100644
--- a/nfvbench/specs.py
+++ b/nfvbench/specs.py
@@ -75,7 +75,8 @@ class OpenStackSpec(object):
class RunSpec(object):
def __init__(self, no_vswitch_access, openstack_spec):
- self.use_vswitch = (not no_vswitch_access) and openstack_spec.vswitch != "BASIC"
+ self.use_vswitch = (not no_vswitch_access) and openstack_spec \
+ and openstack_spec.vswitch != "BASIC"
class Specs(object):