From 124ecd5d59869bad3a4f5f53f91f5b9c99051512 Mon Sep 17 00:00:00 2001 From: Kerim Gokarslan Date: Fri, 13 Oct 2017 17:29:58 -0700 Subject: NFVBENCH-40 Add pylint to tox Change-Id: Ic55a07145f27c4cfaa6df5523df3940ca4433af1 Signed-off-by: Kerim Gokarslan --- nfvbench/specs.py | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'nfvbench/specs.py') 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 -- cgit 1.2.3-korg