paths: Modify algorithm for PATHS verification
[vswitchperf.git] / vsperf
diff --git a/vsperf b/vsperf
index 46b6b41..c14f9bb 100755 (executable)
--- a/vsperf
+++ b/vsperf
@@ -546,8 +546,8 @@ def main():
 
     settings.setValue('mode', args['mode'])
 
-    # set dpdk and ovs paths according to VNF and VSWITCH
-    if settings.getValue('mode') != 'trafficgen':
+    # update paths to trafficgens if required
+    if settings.getValue('mode') == 'trafficgen':
         functions.settings_update_paths()
 
     # if required, handle list-* operations