Merge "Unify CGNAPT testcases TG and VNF names"
[yardstick.git] / samples / vnf_samples / nsut / cgnapt / tc_heat_rfc2544_ipv4_1flow_trex_correlated_scale_4.yaml
1 # Copyright (c) 2016-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 framesize = framesize or "{64B: 100}" %}
15 ---
16 schema: yardstick:task:0.1
17 scenarios:
18   - type: NSPerf
19     traffic_profile: ../../traffic_profiles/ipv4_throughput_cgnapt-4.yaml
20     topology: cgnapt-vnf-topology-3node-4.yaml
21     nodes:
22       tg__0: trafficgen_0.yardstick
23       tg__1: trafficgen_1.yardstick
24       vnf__0: vnf_0.yardstick
25       vnf__1: vnf_1.yardstick
26       vnf__2: vnf_2.yardstick
27       vnf__3: vnf_3.yardstick
28     options:
29       framesize:
30         uplink: {{ framesize }}
31         downlink: {{ framesize }}
32       flow:
33         src_ip:
34           - {'tg__0': 'xe0'}
35           - {'tg__0': 'xe1'}
36           - {'tg__0': 'xe2'}
37           - {'tg__0': 'xe3'}
38         dst_ip:
39           - {'tg__1': 'xe0'}
40           - {'tg__1': 'xe1'}
41           - {'tg__1': 'xe2'}
42           - {'tg__1': 'xe3'}
43         count: 1
44       traffic_type: 4
45       rfc2544:
46         allowed_drop_rate: 0.0001 - 0.0001
47         correlated_traffic: true
48       vnf__0:
49         vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
50         napt: 'dynamic'
51       vnf__1:
52         vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
53         napt: 'dynamic'
54       vnf__2:
55         vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
56         napt: 'dynamic'
57       vnf__3:
58         vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
59         napt: 'dynamic'
60     runner:
61       type: Iteration
62       iterations: 10
63       interval: 35
64 context:
65   name: yardstick
66   image: yardstick-samplevnfs
67   flavor:
68     vcpus: 10
69     ram: 10240
70     disk: 6
71     extra_specs:
72       hw:cpu_sockets: 1
73       hw:cpu_cores: 10
74       hw:cpu_threads: 1
75   user: ubuntu
76   placement_groups:
77     pgrp1:
78       policy: "availability"
79   servers:
80     trafficgen_0:
81       floating_ip: true
82       placement: "pgrp1"
83       network_ports:
84         mgmt:
85           - mgmt
86         uplink_0:
87           - xe0
88         uplink_1:
89           - xe1
90         uplink_2:
91           - xe2
92         uplink_3:
93           - xe3
94     trafficgen_1:
95       floating_ip: true
96       placement: "pgrp1"
97       network_ports:
98         mgmt:
99           - mgmt
100         downlink_0:
101           - xe0
102         downlink_1:
103           - xe1
104         downlink_2:
105           - xe2
106         downlink_3:
107           - xe3
108     vnf_0:
109       floating_ip: true
110       placement: "pgrp1"
111       network_ports:
112         mgmt:
113           - mgmt
114         uplink_0:
115           - xe0
116         downlink_0:
117           - xe1
118     vnf_1:
119       floating_ip: true
120       placement: "pgrp1"
121       network_ports:
122         mgmt:
123           - mgmt
124         uplink_1:
125           - xe0
126         downlink_1:
127           - xe1
128     vnf_2:
129       floating_ip: true
130       placement: "pgrp1"
131       network_ports:
132         mgmt:
133           - mgmt
134         uplink_2:
135           - xe0
136         downlink_2:
137           - xe1
138     vnf_3:
139       floating_ip: true
140       placement: "pgrp1"
141       network_ports:
142         mgmt:
143           - mgmt
144         uplink_3:
145           - xe0
146         downlink_3:
147           - xe1
148   networks:
149     mgmt:
150       cidr: '10.0.1.0/24'
151     uplink_0:
152       cidr: '10.1.0.0/24'
153       gateway_ip: 'null'
154       port_security_enabled: False
155       enable_dhcp: 'false'
156     downlink_0:
157       cidr: '10.1.1.0/24'
158       gateway_ip: 'null'
159       port_security_enabled: False
160       enable_dhcp: 'false'
161     uplink_1:
162       cidr: '10.2.0.0/24'
163       gateway_ip: 'null'
164       port_security_enabled: False
165       enable_dhcp: 'false'
166     downlink_1:
167       cidr: '10.2.1.0/24'
168       gateway_ip: 'null'
169       port_security_enabled: False
170       enable_dhcp: 'false'
171     uplink_2:
172       cidr: '10.3.0.0/24'
173       gateway_ip: 'null'
174       port_security_enabled: False
175       enable_dhcp: 'false'
176     downlink_2:
177       cidr: '10.3.1.0/24'
178       gateway_ip: 'null'
179       port_security_enabled: False
180       enable_dhcp: 'false'
181     uplink_3:
182       cidr: '10.4.0.0/24'
183       gateway_ip: 'null'
184       port_security_enabled: False
185       enable_dhcp: 'false'
186     downlink_3:
187       cidr: '10.4.1.0/24'
188       gateway_ip: 'null'
189       port_security_enabled: False
190       enable_dhcp: 'false'