summaryrefslogtreecommitdiffstats
path: root/nfvbench/specs.py
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-10-13 17:29:58 -0700
committerKerim Gokarslan <kgokarsl@cisco.com>2017-10-16 11:53:49 -0700
commita79debff4a6436522feebd2221865a2a6a917a58 (patch)
treee798895746a4edddc083b6e618f766d7905a7fbc /nfvbench/specs.py
parent211bc02b88a19153eb33f9a4f6670638bf469676 (diff)
NFVBENCH-40 Add pylint to tox
Change-Id: Ic55a07145f27c4cfaa6df5523df3940ca4433af1 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
Diffstat (limited to 'nfvbench/specs.py')
-rw-r--r--nfvbench/specs.py27
1 files changed, 12 insertions, 15 deletions
diff --git a/nfvbench/specs.py b/nfvbench/specs.py
index 3f93df6..7a24d5c 100644
--- a/nfvbench/specs.py
+++ b/nfvbench/specs.py
@@ -30,23 +30,22 @@ class Encaps(object):
class ChainType(object):
- PVP = "PVP"
- PVVP = "PVVP"
- EXT = "EXT"
-
- chain_mapping = {
- 'PVP': PVP,
- 'PVVP': PVVP,
- 'EXT': EXT
- }
+ PVP = "PVP"
+ PVVP = "PVVP"
+ EXT = "EXT"
+
+ chain_mapping = {
+ 'PVP': PVP,
+ 'PVVP': PVVP,
+ 'EXT': EXT
+ }
- @classmethod
- def get_chain_type(cls, chain):
- return cls.chain_mapping.get(chain.upper(), None)
+ @classmethod
+ def get_chain_type(cls, chain):
+ return cls.chain_mapping.get(chain.upper(), None)
class OpenStackSpec(object):
-
def __init__(self):
self.__vswitch = "BASIC"
self.__encaps = Encaps.BASIC
@@ -75,13 +74,11 @@ 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"
class Specs(object):
-
def __init__(self):
self.openstack = None
self.run_spec = None