From: Yichen Wang Date: Wed, 24 Jan 2018 00:02:29 +0000 (-0800) Subject: [NFVBENCH-63] Make sure CLI overrides the default configs X-Git-Tag: 1.2.2~1 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=0268d1ab252ebcb6d97c3009005a1e259aa512e4;p=nfvbench.git [NFVBENCH-63] Make sure CLI overrides the default configs Change-Id: I5e94f130758d3c1dbf6aaeeda276463576b97394 Signed-off-by: Yichen Wang --- diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py index 18bdc70..7d2e037 100644 --- a/nfvbench/nfvbench.py +++ b/nfvbench/nfvbench.py @@ -519,6 +519,10 @@ def main(): config.service_chain = opts.service_chain if opts.service_chain_count: config.service_chain_count = opts.service_chain_count + if opts.no_vswitch_access: + config.no_vswitch_access = opts.no_vswitch_access + if opts.no_int_config: + config.no_int_config = opts.no_int_config if opts.use_sriov_middle_net: if (not config.sriov) or (not config.service_chain == ChainType.PVVP):