Merge "Update heat RFC2544 based TC to support SRIOV VF ports."
[yardstick.git] / samples / vnf_samples / nsut / vfw / tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex.yaml
1 # Copyright (c) 2016-2017 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ---
16 {% set provider = provider or none %}
17 {% set physical_networks = physical_networks or ['physnet1', 'physnet2'] %}
18
19 schema: yardstick:task:0.1
20 scenarios:
21 - type: NSPerf
22   traffic_profile: ../../traffic_profiles/ipv4_throughput.yaml
23   topology: vfw-tg-topology.yaml
24   nodes:
25     tg__0: trafficgen_1.yardstick
26     vnf__0: vnf.yardstick
27   options:
28     framesize:
29       uplink: {64B: 100}
30       downlink: {64B: 100}
31     flow:
32       src_ip: [{'tg__0': 'xe0'}]
33       dst_ip: [{'tg__0': 'xe1'}]
34       count: 1
35     traffic_type: 4
36     rfc2544:
37       allowed_drop_rate: 0.0001 - 0.0001
38     vnf__0:
39       rules: acl_1rule.yaml
40       vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
41   runner:
42     type: Iteration
43     iterations: 10
44     interval: 35
45 context:
46   # put node context first, so we don't HEAT deploy if node has errors
47   name: yardstick
48   image: yardstick-samplevnfs
49   flavor:
50     vcpus: 10
51     ram: 20480
52     disk: 6
53     extra_specs:
54       hw:cpu_sockets: 1
55       hw:cpu_cores: 10
56       hw:cpu_threads: 1
57   user: ubuntu
58   placement_groups:
59     pgrp1:
60       policy: "availability"
61   servers:
62     vnf:
63       floating_ip: true
64       placement: "pgrp1"
65     trafficgen_1:
66       floating_ip: true
67       placement: "pgrp1"
68   networks:
69     mgmt:
70       cidr: '10.0.1.0/24'
71     xe0:
72       cidr: '10.0.2.0/24'
73       gateway_ip: 'null'
74       {% if provider %}
75       provider: {{ provider }}
76       physical_network: {{ physical_networks[0] }}
77       {% endif %}
78       port_security_enabled: False
79       enable_dhcp: 'false'
80     xe1:
81       cidr: '10.0.3.0/24'
82       gateway_ip: 'null'
83       {% if provider %}
84       provider: {{ provider }}
85       physical_network: {{ physical_networks[1] }}
86       {% endif %}
87       port_security_enabled: False
88       enable_dhcp: 'false'