Update heat RFC2544 based TC to support SRIOV VF ports. 61/51961/4
authorMytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Fri, 9 Feb 2018 14:55:04 +0000 (14:55 +0000)
committerMytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Wed, 14 Feb 2018 13:48:00 +0000 (13:48 +0000)
Updated vfw/tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex.yaml TC to be
able to run it in heat context with SRIOV VF ports configured in
OpenStack.

E.g.:
  yardstick task start --task-args='{"provider": "sriov"}' ...
  yardstick task start --task-args='{"provider": "sriov"}\
    physical_networks: ["physnet1", "physnet2"]}' ...

Console log: http://paste.openstack.org/show/666931/
Result output: http://paste.openstack.org/show/666930/

JIRA: YARDSTICK-1004

Change-Id: If0dabd0791e4e295782fee0f3de1536474218876
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
samples/vnf_samples/nsut/vfw/tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex.yaml

index 2799a7e..13fe5a5 100644 (file)
@@ -13,6 +13,9 @@
 # limitations under the License.
 
 ---
+{% set provider = provider or none %}
+{% set physical_networks = physical_networks or ['physnet1', 'physnet2'] %}
+
 schema: yardstick:task:0.1
 scenarios:
 - type: NSPerf
@@ -68,10 +71,18 @@ context:
     xe0:
       cidr: '10.0.2.0/24'
       gateway_ip: 'null'
+      {% if provider %}
+      provider: {{ provider }}
+      physical_network: {{ physical_networks[0] }}
+      {% endif %}
       port_security_enabled: False
       enable_dhcp: 'false'
     xe1:
       cidr: '10.0.3.0/24'
       gateway_ip: 'null'
+      {% if provider %}
+      provider: {{ provider }}
+      physical_network: {{ physical_networks[1] }}
+      {% endif %}
       port_security_enabled: False
       enable_dhcp: 'false'