summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/runner
diff options
context:
space:
mode:
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2018-07-18 11:18:55 +0800
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2018-07-19 02:30:08 +0000
commit20fe17a8b231a8de337fa379c58b9919f42cd452 (patch)
tree092ab528f4459150cf646b3bab2cb4febac8d029 /utils/infra_setup/runner
parent3206dad00a2cdc73d8e77cd8316ee74cf2386475 (diff)
add support for dpdk scenario
Dovetail test ran by bii shows that dpdk var needed to be set to let VM be successfully created by openstack Change-Id: I44ab09f313e38942ff1175ad05fc7521f49b855b Signed-off-by: Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com> (cherry picked from commit b928421d61a01f819bd0f059b1c3b0463dfd5d6f)
Diffstat (limited to 'utils/infra_setup/runner')
-rw-r--r--utils/infra_setup/runner/yardstick.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/infra_setup/runner/yardstick.py b/utils/infra_setup/runner/yardstick.py
index 3eeeee6b..562e918f 100644
--- a/utils/infra_setup/runner/yardstick.py
+++ b/utils/infra_setup/runner/yardstick.py
@@ -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) + '"'