yardstick: CLI params support for yardstick TCs
[vswitchperf.git] / vsperf
diff --git a/vsperf b/vsperf
index ee494dc..385f792 100755 (executable)
--- a/vsperf
+++ b/vsperf
@@ -504,8 +504,11 @@ def main():
     # than both a settings file and environment variables
     settings.load_from_dict(args)
 
+    settings.setValue('mode', args['mode'])
+
     # set dpdk and ovs paths accorfing to VNF and VSWITCH
-    functions.settings_update_paths()
+    if settings.getValue('mode') != 'trafficgen':
+        functions.settings_update_paths()
 
     # if required, handle list-* operations
     handle_list_options(args)
@@ -584,8 +587,6 @@ def main():
     # for backward compatibility
     settings.setValue('WHITELIST_NICS', list(nic['pci'] for nic in nic_list))
 
-    settings.setValue('mode', args['mode'])
-
     # generate results directory name
     date = datetime.datetime.fromtimestamp(time.time())
     results_dir = "results_" + date.strftime('%Y-%m-%d_%H-%M-%S')