bugfix: enable vlan and physical netwok able to set 77/38377/2
authorrexlee8776 <limingjiang@huawei.com>
Sat, 29 Jul 2017 03:46:02 +0000 (03:46 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Sat, 29 Jul 2017 04:02:21 +0000 (04:02 +0000)
Enable vlan and physical netwok able to set by
parameters for heat context. 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: I96f96a61991cceb1506d055867a006d56689a008
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
17 files changed:
tests/opnfv/test_cases/opnfv_yardstick_tc001.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc002.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc005.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc008.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc009.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc010.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc011.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc012.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc014.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc023.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc037.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc038.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc069.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc070.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc071.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc072.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc076.yaml

index 57f9e95..4faa0bc 100644 (file)
@@ -15,6 +15,10 @@ description: >
     Different amounts of flows are tested with, from 2 up to 1001000;
     All tests are run twice. First twice with the least amount of ports and further on.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
 -
@@ -58,3 +62,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 %}
index 1de573d..58f5b78 100644 (file)
@@ -14,6 +14,11 @@ description: >
     measure network latency using ping;
 
 {% set image = image or "cirros-0.3.5" %}
+
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 {% for i in range(2) %}
 -
@@ -53,3 +58,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 %}
\ No newline at end of file
index e77fd50..101c421 100644 (file)
@@ -13,6 +13,10 @@ description: >
     Yardstick TC005 config file;
     Measure Storage IOPS, throughput and latency using fio.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 {% for rw in ['read', 'write', 'randwrite', 'randread', 'rw'] %}
   {% for bs in ['4k', '64k', '1024k'] %}
@@ -56,3 +60,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 %}
\ No newline at end of file
index f5ccb25..22e5760 100644 (file)
@@ -20,6 +20,10 @@ description: >
     packet size, and so on. The test sequence continues with the next
     packet size, with same ports/flows sequence as before.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 {% for pkt_size in [64, 128, 256, 512, 1024, 1280, 1518] %}
   {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
@@ -74,6 +78,13 @@ 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 %}
     #test-sriov:
       #cidr: '10.0.1.0/24'
       #provider: "sriov"
index c4e24c4..3c5f72d 100644 (file)
@@ -17,6 +17,10 @@ description: >
     amount of ports, then 10 times with the next amount of ports,
     and so on until all packet sizes have been run with;
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
 -
@@ -60,3 +64,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 %}
\ No newline at end of file
index 2ef3c54..cf97068 100644 (file)
@@ -13,6 +13,10 @@ description: >
     Yardstick TC010 config file;
     measure memory read latency using lmbench.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: Lmbench
@@ -45,3 +49,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 %}
\ No newline at end of file
index b826a7d..1a3dd14 100644 (file)
@@ -13,6 +13,10 @@ description: >
     Yardstick TC011 config file;
     Measure packet delay variation (jitter) using iperf3.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: Iperf3
@@ -51,3 +55,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 %}
index f995b2b..b8b208f 100644 (file)
@@ -13,6 +13,10 @@ description: >
     Yardstick TC012 config file;
     Measure memory read and write bandwidth using lmbench.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: Lmbench
@@ -46,5 +50,11 @@ 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 %}
 
index dd686a6..bd0fe36 100644 (file)
@@ -13,6 +13,10 @@ description: >
     Yardstick TC014 config file;
     Measure Processing speed using unixbench.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: UnixBench
@@ -39,3 +43,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 %}
\ No newline at end of file
index 2804f25..f2cad4c 100644 (file)
@@ -19,6 +19,10 @@ schema: "yardstick:task:0.1"
 {% set vcpus = vcpus or "2" %}
 {% set disk = disk or "3" %}
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: GetServer
@@ -174,3 +178,10 @@ contexts:
   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 %}
index 6a64f0b..3622b40 100644 (file)
@@ -19,6 +19,10 @@ description: >
     During the measurements system load and network latency are
     recorded/measured using ping and mpstat, respectively;
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: CPUload
@@ -91,3 +95,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 %}
\ No newline at end of file
index ba0f2f2..59fb95d 100644 (file)
@@ -19,6 +19,10 @@ description: >
     During the measurements system load and network latency are
     recorded/measured using ping and mpstat, respectively;
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: CPUload
@@ -91,3 +95,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 %}
\ No newline at end of file
index c55639a..2a40823 100644 (file)
@@ -13,6 +13,10 @@ description: >
     Yardstick TC069 config file;
     Measure memory read and write bandwidth using ramspeed.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: Ramspeed
@@ -45,3 +49,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 %}
index f9d57c6..7ea10d8 100644 (file)
@@ -19,6 +19,10 @@ description: >
     During the measurements memory usage statistics and network latency are
     recorded/measured using free and ping, respectively;
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: MEMORYload
@@ -93,3 +97,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 %}
\ No newline at end of file
index 0911d8e..b6a944b 100644 (file)
@@ -19,6 +19,10 @@ description: >
     During the measurements cache hit/miss ration, cache usage statistics and
     network latency are recorded/measured using cachestat and ping, respectively;
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: CACHEstat
@@ -91,3 +95,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 %}
\ No newline at end of file
index ca31984..09930d4 100644 (file)
@@ -19,6 +19,10 @@ description: >
     During the measurements network usage statistics and network latency are
     recorded/measured using sar and ping, respectively;
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: NetUtilization
@@ -93,3 +97,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 %}
index c23ee97..8c0edac 100644 (file)
@@ -8,6 +8,10 @@ description: >
     IP datagram error rate, ICMP message error rate, TCP segment error rate and
     UDP datagram error rate.
 
+{% set provider = provider or none %}
+{% set physical_network = physical_network or 'physnet1' %}
+{% set segmentation_id = segmentation_id or none %}
+
 scenarios:
 -
   type: Ping
@@ -54,3 +58,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 %}