aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/chain_clients.py
diff options
context:
space:
mode:
authorYichen Wang <yicwang@cisco.com>2017-08-15 11:28:53 -0700
committerYichen Wang <yicwang@cisco.com>2017-08-18 01:04:05 -0700
commit5d2becfd9d6398ce9dfd4c83618de42e272ec830 (patch)
treed9039260137b1d9ab57e25eba853220baa7ba9e3 /nfvbench/chain_clients.py
parent4c5e4ba753face81fd73aa3bae1fe3c012e48859 (diff)
[NFVBENCH-7] Return errors when unknown options are passed
1. Return errors when unknown options are passed 2. Fix pep8 warnings Change-Id: I1cbc86de93b4633bbf9bd66c1dc956ff8b3679a6 Signed-off-by: Yichen Wang <yicwang@cisco.com>
Diffstat (limited to 'nfvbench/chain_clients.py')
-rw-r--r--nfvbench/chain_clients.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfvbench/chain_clients.py b/nfvbench/chain_clients.py
index dfd6ff2..affccc8 100644
--- a/nfvbench/chain_clients.py
+++ b/nfvbench/chain_clients.py
@@ -78,7 +78,8 @@ class BasicStageClient(object):
networks = self.neutron.list_networks(name=network_name)
return networks['networks'][0] if networks['networks'] else None
- def _create_net(self, name, subnet, cidr, network_type=None, segmentation_id=None, physical_network=None):
+ def _create_net(self, name, subnet, cidr, network_type=None,
+ segmentation_id=None, physical_network=None):
network = self._lookup_network(name)
if network:
# a network of same name already exists, we need to verify it has the same