summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup
diff options
context:
space:
mode:
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2018-07-18 11:18:55 +0800
committerYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2018-07-18 16:37:34 +0800
commitb928421d61a01f819bd0f059b1c3b0463dfd5d6f (patch)
treedfac65cf463f537bb5c10ef85891e0b3625aa518 /utils/infra_setup
parentc4e5626d4ecf05a1b72b4bd0ab8f5c83245b0305 (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>
Diffstat (limited to 'utils/infra_setup')
-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) + '"'