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/service_chain.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'nfvbench/service_chain.py') diff --git a/nfvbench/service_chain.py b/nfvbench/service_chain.py index 0a5fd13..216cc92 100644 --- a/nfvbench/service_chain.py +++ b/nfvbench/service_chain.py @@ -14,11 +14,12 @@ # under the License. # -from chain_managers import StageManager from collections import OrderedDict +import time + +from chain_managers import StageManager from log import LOG from specs import ChainType -import time class ServiceChain(object): @@ -113,8 +114,8 @@ class ServiceChain(object): self.clients['traffic'].ensure_end_to_end() def run(self): - LOG.info('Starting {} chain...'.format(self.chain_name)) - LOG.info('Dry run: {}'.format(self.config.no_traffic)) + LOG.info('Starting %s chain...', self.chain_name) + LOG.info('Dry run: %s', self.config.no_traffic) results = {} self.__set_helpers() @@ -127,7 +128,7 @@ class ServiceChain(object): results[self.chain_name]['mode'] = 'inter-node' \ if self.config.inter_node else 'intra-node' - LOG.info("Service chain '{}' run completed.".format(self.chain_name)) + LOG.info("Service chain '%s' run completed.", self.chain_name) return results def get_version(self): -- cgit 1.2.3-korg