aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2017-07-28 07:46:38 +0000
committerrexlee8776 <limingjiang@huawei.com>2017-07-28 08:03:45 +0000
commit3016d172bc92e3f5c2447ec7f182d22de6d749dc (patch)
tree9fff02b1a9a28142f6cf836ff66be03ffb93c01a /samples
parentcf68baf48f43ebb70b1fb137fd4f1a5bbbc1e0df (diff)
bugfix: enable vlan and physical netwok able to set
enable vlan and physical netwok able to set by parameters for heat context this is a sample, if it's ok, i'll copy it to other yaml. it won't affect the original test case, but enable vlan to be set directly by pass task-args to command. yardstick -d task start samples/ping.yaml --task-args '{"provider": "vlan"}' JIRA: YARDSTICK-763 Change-Id: Ie35dac4b5e80404558a1eb45d49fa0bb6ab45a98 Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/ping.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/samples/ping.yaml b/samples/ping.yaml
index 0c1783c0b..6a19d260b 100644
--- a/samples/ping.yaml
+++ b/samples/ping.yaml
@@ -12,6 +12,9 @@
schema: "yardstick:task:0.1"
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
scenarios:
-
type: Ping
@@ -49,4 +52,10 @@ context:
networks:
test:
cidr: '10.0.1.0/24'
-
+ {% if provider == "vlan" %}
+ provider: {{provider}}
+ physical_network: {{physical_network}}
+ {% if segmentation_id %}
+ segmentation_id: {{segmentation_id}}
+ {% endif %}
+ {% endif %}