Merge changes from topic 'manual_ci_test_cases'
[yardstick.git] / samples / vnf_samples / nsut / vfw / tc_heat_external_rfc2544_ipv4_ixia_scale_up.yaml
1 # Copyright (c) 2019 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 {% set image = image or "yardstick-samplevnfs" %}
15 {% set mem = mem or 20480 %}
16 {% set vcpus = vcpus or 10 %}
17 {% set vports = vports or 2 %}
18 {% set phynet_map = phynet_map or {'uplink_0': 'prov0',
19                                    'downlink_0': 'prov1',
20                                    'uplink_1': 'prov2',
21                                    'downlink_1': 'prov3'} %}
22
23 ---
24 schema: yardstick:task:0.1
25 scenarios:
26 - type: NSPerf-RFC2544
27   traffic_profile: ../../traffic_profiles/ixia_ipv4_latency_scale_up.yaml
28   topology: vfw-tg-topology-ixia-scale-up.yaml
29   extra_args:
30     vports: {{ vports }}
31   nodes:
32     tg__0: trafficgen_0.barametal
33     vnf__0: vnf_0.yardstick
34   options:
35     framesize:
36     flow:
37       src_ip: [
38 {% for vport in range(0,vports,2|int) %}
39        {'tg__0': 'xe{{vport}}'},
40 {% endfor %}  ]
41       dst_ip: [
42 {% for vport in range(1,vports,2|int) %}
43       {'tg__0': 'xe{{vport}}'},
44 {% endfor %}  ]
45       count: 1
46     traffic_type: 4
47     rfc2544:
48       resolution: 0.01
49       allowed_drop_rate: 0.005 - 0.01
50     vnf__0:
51       rules: acl_1rule.yaml
52       vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
53   runner:
54     type: Sequence
55     scenario_option_name: framesize
56     sequence:
57     - uplink: {64B: 100}
58       downlink: {64B: 100}
59     - uplink: {128B: 100}
60       downlink: {128B: 100}
61     - uplink: {256B: 100}
62       downlink: {256B: 100}
63     - uplink: {512B: 100}
64       downlink: {512B: 100}
65     - uplink: {1024B: 100}
66       downlink: {1024B: 100}
67     - uplink: {1518B: 100}
68       downlink: {1518B: 100}
69     - uplink: {64B: 25, 128B: 25, 512B: 25, 1024B: 25}
70       downlink: {64B: 25, 128B: 25, 512B: 25, 1024B: 25}
71
72 contexts:
73   - name: barametal
74     type: Node
75     file: /etc/yardstick/nodes/pod_ixia.yaml
76   - name: yardstick
77     image: {{ image }}
78     flavor:
79       vcpus: {{ vcpus }}
80       ram: {{ mem }}
81       disk: 6
82       extra_specs:
83         hw:cpu_sockets: 1
84         hw:cpu_cores: {{ vcpus }}
85         hw:cpu_threads: 1
86     user: ubuntu
87     placement_groups:
88       pgrp1:
89         policy: "availability"
90     servers:
91       vnf_0:
92         floating_ip: true
93         placement: "pgrp1"
94         network_ports:
95           mgmt:
96             - mgmt
97 {% for vport in range(0,vports,2|int) %}
98           uplink_{{loop.index0}}:
99             - xe{{vport}}
100           downlink_{{loop.index0}}:
101             - xe{{vport + 1}}
102 {% endfor %}
103     networks:
104       mgmt:
105         cidr: '10.0.1.0/24'
106 {% for vport in range(1,vports,2|int) %}
107       uplink_{{loop.index0}}:
108         cidr: '10.0.{{vport + 1}}.0/24'
109         gateway_ip: 'null'
110         provider: true
111         physical_network: {{phynet_map['uplink_' + loop.index0|string] }}
112         port_security_enabled: False
113         enable_dhcp: 'false'
114       downlink_{{loop.index0}}:
115         cidr: '10.0.{{vport + 2}}.0/24'
116         gateway_ip: 'null'
117         provider: true
118         physical_network: {{phynet_map['downlink_' + loop.index0|string] }}
119         port_security_enabled: False
120         enable_dhcp: 'false'
121 {% endfor %}
122