Merge "add support for dpdk scenario"
authorYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>
Thu, 19 Jul 2018 02:29:59 +0000 (02:29 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 19 Jul 2018 02:29:59 +0000 (02:29 +0000)
utils/infra_setup/runner/yardstick.py

index 3eeeee6..562e918 100644 (file)
@@ -45,6 +45,10 @@ def yardstick_command_parser(debug, cidr, outfile, parameter):
     cmd += " --output-file " + outfile
     image_name = config.bottlenecks_config["yardstick_image_name"]
     parameter["image_name"] = image_name
+    DEPLOY_SCENARIO = os.getenv("DEPLOY_SCENARIO")
+    if DEPLOY_SCENARIO:
+        if "ovs" in DEPLOY_SCENARIO:
+            parameter["dpdk_enabled"] = True
     LOG.info(parameter)
     if parameter is not None:
         cmd += " --task-args " + '"' + str(parameter) + '"'