[NFVBENCH-63] Make sure CLI overrides the default configs 19/51019/1
authorYichen Wang <yicwang@cisco.com>
Wed, 24 Jan 2018 00:02:29 +0000 (16:02 -0800)
committerYichen Wang <yicwang@cisco.com>
Wed, 24 Jan 2018 00:04:12 +0000 (16:04 -0800)
Change-Id: I5e94f130758d3c1dbf6aaeeda276463576b97394
Signed-off-by: Yichen Wang <yicwang@cisco.com>
nfvbench/nfvbench.py

index 18bdc70..7d2e037 100644 (file)
@@ -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):