FIX: Single memif tests failing
[csit.git] / resources / libraries / robot / performance / performance_setup.robot
1 # Copyright (c) 2018 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.DUTSetup
16 | Library | resources.tools.wrk.wrk
17 | Resource | resources/libraries/robot/performance/performance_configuration.robot
18 | Resource | resources/libraries/robot/performance/performance_utils.robot
19 | Resource | resources/libraries/robot/tcp/tcp_setup.robot
20 | Documentation | Performance suite keywords - Suite and test setups and
21 | ... | teardowns.
22
23 *** Keywords ***
24
25 # Keywords used in setups and teardowns
26
27 | Set variables in 2-node circular topology
28 | | [Documentation]
29 | | ... | Compute path for testing on two given nodes in circular
30 | | ... | topology and set corresponding suite variables.
31 | | ...
32 | | ... | _NOTE:_ This KW sets following suite variables:
33 | | ... | - tg - TG node
34 | | ... | - tg_if1 - 1st TG interface towards DUT.
35 | | ... | - tg_if2 - 2nd TG interface towards DUT.
36 | | ... | - dut1 - DUT1 node
37 | | ... | - dut1_if1 - 1st DUT interface towards TG.
38 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
39 | | ...
40 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
41 | | Compute Path | always_same_link=${FALSE}
42 | | ${tg_if1} | ${tg}= | First Interface
43 | | ${dut1_if1} | ${dut1}= | First Ingress Interface
44 | | ${dut1_if2} | ${dut1}= | Last Egress Interface
45 | | ${tg_if2} | ${tg}= | Last Interface
46 | | Set Suite Variable | ${tg}
47 | | Set Suite Variable | ${tg_if1}
48 | | Set Suite Variable | ${tg_if2}
49 | | Set Suite Variable | ${dut1}
50 | | Set Suite Variable | ${dut1_if1}
51 | | Set Suite Variable | ${dut1_if2}
52
53 | Set variables in 3-node circular topology
54 | | [Documentation]
55 | | ... | Compute path for testing on three given nodes in circular
56 | | ... | topology and set corresponding suite variables.
57 | | ...
58 | | ... | _NOTE:_ This KW sets following suite variables:
59 | | ... | - tg - TG node
60 | | ... | - tg_if1 - TG interface towards DUT1.
61 | | ... | - tg_if2 - TG interface towards DUT2.
62 | | ... | - dut1 - DUT1 node
63 | | ... | - dut1_if1 - DUT1 interface towards TG.
64 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
65 | | ... | - dut2 - DUT2 node
66 | | ... | - dut2_if1 - DUT2 interface towards DUT1.
67 | | ... | - dut2_if2 - DUT2 interface towards TG.
68 | | ...
69 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
70 | | ... | ${nodes['TG']}
71 | | Compute Path
72 | | ${tg_if1} | ${tg}= | Next Interface
73 | | ${dut1_if1} | ${dut1}= | Next Interface
74 | | ${dut1_if2} | ${dut1}= | Next Interface
75 | | ${dut2_if1} | ${dut2}= | Next Interface
76 | | ${dut2_if2} | ${dut2}= | Next Interface
77 | | ${tg_if2} | ${tg}= | Next Interface
78 | | Set Suite Variable | ${tg}
79 | | Set Suite Variable | ${tg_if1}
80 | | Set Suite Variable | ${tg_if2}
81 | | Set Suite Variable | ${dut1}
82 | | Set Suite Variable | ${dut1_if1}
83 | | Set Suite Variable | ${dut1_if2}
84 | | Set Suite Variable | ${dut2}
85 | | Set Suite Variable | ${dut2_if1}
86 | | Set Suite Variable | ${dut2_if2}
87
88 | Set variables in 2-node circular topology with DUT interface model
89 | | [Documentation]
90 | | ... | Compute path for testing on two given nodes in circular topology
91 | | ... | based on interface model provided as an argument and set
92 | | ... | corresponding suite variables.
93 | | ...
94 | | ... | *Arguments:*
95 | | ... | - iface_model - Interface model. Type: string
96 | | ...
97 | | ... | _NOTE:_ This KW sets following suite variables:
98 | | ... | - tg - TG node
99 | | ... | - tg_if1 - 1st TG interface towards DUT.
100 | | ... | - tg_if2 - 2nd TG interface towards DUT.
101 | | ... | - dut1 - DUT1 node
102 | | ... | - dut1_if1 - 1st DUT interface towards TG.
103 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
104 | | ...
105 | | ... | *Example:*
106 | | ...
107 | | ... | \| Set variables in 2-node circular topology with DUT interface model\
108 | | ... | \| Intel-X520-DA2 \|
109 | | ...
110 | | [Arguments] | ${iface_model}
111 | | ...
112 | | ${iface_model_list}= | Create list | ${iface_model}
113 | | Append Node | ${nodes['TG']}
114 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
115 | | Append Node | ${nodes['TG']}
116 | | Compute Path | always_same_link=${FALSE}
117 | | ${tg_if1} | ${tg}= | First Interface
118 | | ${dut1_if1} | ${dut1}= | First Ingress Interface
119 | | ${dut1_if2} | ${dut1}= | Last Egress Interface
120 | | ${tg_if2} | ${tg}= | Last Interface
121 | | Set Suite Variable | ${tg}
122 | | Set Suite Variable | ${tg_if1}
123 | | Set Suite Variable | ${tg_if2}
124 | | Set Suite Variable | ${dut1}
125 | | Set Suite Variable | ${dut1_if1}
126 | | Set Suite Variable | ${dut1_if2}
127
128 | Set variables in 3-node circular topology with DUT interface model
129 | | [Documentation]
130 | | ... | Compute path for testing on three given nodes in circular topology
131 | | ... | based on interface model provided as an argument and set
132 | | ... | corresponding suite variables.
133 | | ...
134 | | ... | *Arguments:*
135 | | ... | - iface_model - Interface model. Type: string
136 | | ...
137 | | ... | _NOTE:_ This KW sets following suite variables:
138 | | ... | - tg - TG node
139 | | ... | - tg_if1 - TG interface towards DUT1.
140 | | ... | - tg_if2 - TG interface towards DUT2.
141 | | ... | - dut1 - DUT1 node
142 | | ... | - dut1_if1 - DUT1 interface towards TG.
143 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
144 | | ... | - dut2 - DUT2 node
145 | | ... | - dut2_if1 - DUT2 interface towards DUT1.
146 | | ... | - dut2_if2 - DUT2 interface towards TG.
147 | | ...
148 | | ... | *Example:*
149 | | ...
150 | | ... | \| Set variables in 3-node circular topology with DUT interface model\
151 | | ... | \| Intel-X520-DA2 \|
152 | | ...
153 | | [Arguments] | ${iface_model}
154 | | ...
155 | | ${iface_model_list}= | Create list | ${iface_model}
156 | | Append Node | ${nodes['TG']}
157 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
158 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
159 | | Append Node | ${nodes['TG']}
160 | | Compute Path
161 | | ${tg_if1} | ${tg}= | Next Interface
162 | | ${dut1_if1} | ${dut1}= | Next Interface
163 | | ${dut1_if2} | ${dut1}= | Next Interface
164 | | ${dut2_if1} | ${dut2}= | Next Interface
165 | | ${dut2_if2} | ${dut2}= | Next Interface
166 | | ${tg_if2} | ${tg}= | Next Interface
167 | | Set Suite Variable | ${tg}
168 | | Set Suite Variable | ${tg_if1}
169 | | Set Suite Variable | ${tg_if2}
170 | | Set Suite Variable | ${dut1}
171 | | Set Suite Variable | ${dut1_if1}
172 | | Set Suite Variable | ${dut1_if2}
173 | | Set Suite Variable | ${dut2}
174 | | Set Suite Variable | ${dut2_if1}
175 | | Set Suite Variable | ${dut2_if2}
176
177 | Set variables in 3-node circular topology with DUT interface model with double link between DUTs
178 | | [Documentation]
179 | | ... | Compute path for testing on three given nodes in circular topology
180 | | ... | with double link between DUTs based on interface model provided as an
181 | | ... | argument and set corresponding suite variables.
182 | | ...
183 | | ... | *Arguments:*
184 | | ... | - iface_model - Interface model. Type: string
185 | | ...
186 | | ... | _NOTE:_ This KW sets following suite variables:
187 | | ... | - tg - TG node
188 | | ... | - tg_if1 - TG interface towards DUT1.
189 | | ... | - tg_if2 - TG interface towards DUT2.
190 | | ... | - dut1 - DUT1 node
191 | | ... | - dut1_if1 - DUT1 interface towards TG.
192 | | ... | - dut1_if2_1 - DUT1 interface 1 towards DUT2.
193 | | ... | - dut1_if2_2 - DUT1 interface 2 towards DUT2.
194 | | ... | - dut2 - DUT2 node
195 | | ... | - dut2_if1_1 - DUT2 interface 1 towards DUT1.
196 | | ... | - dut2_if1_2 - DUT2 interface 2 towards DUT1.
197 | | ... | - dut2_if2 - DUT2 interface towards TG.
198 | | ...
199 | | ... | *Example:*
200 | | ...
201 | | ... | \| Set variables in 3-node circular topology with DUT interface model\
202 | | ... | with double link between DUTs \| Intel-X520-DA2 \|
203 | | ...
204 | | [Arguments] | ${iface_model}
205 | | ...
206 | | ${iface_model_list}= | Create list | ${iface_model}
207 | | # Compute path TG - DUT1 with single link in between
208 | | Append Node | ${nodes['TG']}
209 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
210 | | Append Node | ${nodes['TG']}
211 | | Compute Path
212 | | ${tg_if1} | ${tg}= | Next Interface
213 | | ${dut1_if1} | ${dut1}= | Next Interface
214 | | # Compute path TG - DUT2 with single link in between
215 | | Clear Path
216 | | Append Node | ${nodes['TG']}
217 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
218 | | Append Node | ${nodes['TG']}
219 | | Compute Path
220 | | ${tg_if2} | ${tg}= | Next Interface
221 | | ${dut2_if2} | ${dut2}= | Next Interface
222 | | # Compute path DUT1 - DUT2 with double link in between
223 | | Clear Path
224 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
225 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
226 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
227 | | Compute Path | always_same_link=${FALSE}
228 | | ${dut1_if2_1} | ${dut1}= | First Interface
229 | | ${dut1_if2_2} | ${dut1}= | Last Interface
230 | | ${dut2_if1_1} | ${dut2}= | First Ingress Interface
231 | | ${dut2_if1_2} | ${dut2}= | Last Egress Interface
232 | | # Set suite variables
233 | | Set Suite Variable | ${tg}
234 | | Set Suite Variable | ${tg_if1}
235 | | Set Suite Variable | ${tg_if2}
236 | | Set Suite Variable | ${dut1}
237 | | Set Suite Variable | ${dut1_if1}
238 | | Set Suite Variable | ${dut1_if2_1}
239 | | Set Suite Variable | ${dut1_if2_2}
240 | | Set Suite Variable | ${dut2}
241 | | Set Suite Variable | ${dut2_if1_1}
242 | | Set Suite Variable | ${dut2_if1_2}
243 | | Set Suite Variable | ${dut2_if2}
244
245 | Tear down guest VM with dpdk-testpmd
246 | | [Documentation]
247 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
248 | | ... | Argument is dictionary of all qemu nodes running with its names.
249 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
250 | | ...
251 | | ... | *Arguments:*
252 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
253 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
254 | | ...
255 | | ... | *Example:*
256 | | ...
257 | | ... | \| Tear down guest VM with dpdk-testpmd \| ${node['DUT1']} \
258 | | ... | \| ${dut_vm_refs} \|
259 | | ...
260 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
261 | | ${vms_number}= | Get Length | ${dut_vm_refs}
262 | | ${index}= | Set Variable | ${0}
263 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
264 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
265 | | | ${index}= | Evaluate | ${index} + 1
266 | | | Dpdk Testpmd Stop | ${vm}
267 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
268 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
269 | | | Run Keyword If | '${index}' == '${vms_number}' | ${vm_name}.Qemu Kill All
270
271 | Tear down guest VM
272 | | [Documentation]
273 | | ... | Stop all qemu processes running on ${dut_node}.
274 | | ... | Argument is dictionary of all qemu nodes running with its names.
275 | | ...
276 | | ... | *Arguments:*
277 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
278 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
279 | | ...
280 | | ... | *Example:*
281 | | ...
282 | | ... | \| Tear down guest VM \| ${node['DUT1']} \
283 | | ... | \| ${dut_vm_refs} \|
284 | | ...
285 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
286 | | ${vms_number}= | Get Length | ${dut_vm_refs}
287 | | ${index}= | Set Variable | ${0}
288 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
289 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
290 | | | ${index}= | Evaluate | ${index} + 1
291 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
292 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
293 | | | Run Keyword If | '${index}' == '${vms_number}' | ${vm_name}.Qemu Kill All
294
295 # Suite setups
296
297 | Set up 2-node performance topology with DUT's NIC model
298 | | [Documentation]
299 | | ... | Suite preparation phase that sets the default startup configuration of
300 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets the global
301 | | ... | variables used in test cases based on interface model provided as an
302 | | ... | argument. Initializes traffic generator.
303 | | ...
304 | | ... | *Arguments:*
305 | | ... | - topology_type - Topology type. Type: string
306 | | ... | - nic_model - Interface model. Type: string
307 | | ...
308 | | ... | *Example:*
309 | | ...
310 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
311 | | ...
312 | | [Arguments] | ${topology_type} | ${nic_model}
313 | | ...
314 | | Set variables in 2-node circular topology with DUT interface model
315 | | ... | ${nic_model}
316 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
317 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
318
319 | Set up 2-node-switched performance topology with DUT's NIC model
320 | | [Documentation]
321 | | ... | Suite preparation phase that sets the default startup configuration of
322 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets the global
323 | | ... | variables used in test cases based on interface model provided as an
324 | | ... | argument. Initializes traffic generator.
325 | | ...
326 | | ... | *Arguments:*
327 | | ... | - topology_type - Topology type. Type: string
328 | | ... | - nic_model - Interface model. Type: string
329 | | ... | - tg_if1_dest_mac - Interface 1 destination MAC address. Type: string
330 | | ... | - tg_if2_dest_mac - Interface 2 destination MAC address. Type: string
331 | | ...
332 | | ... | *Example:*
333 | | ...
334 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \
335 | | ... | \| 22:22:33:44:55:66 \| 22:22:33:44:55:55 \|
336 | | ...
337 | | [Arguments] | ${topology_type} | ${nic_model} | ${tg_if1_dest_mac}
338 | | ... | ${tg_if2_dest_mac}
339 | | ...
340 | | Set variables in 2-node circular topology with DUT interface model
341 | | ... | ${nic_model}
342 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
343 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
344 | | ... | ${tg_if1_dest_mac} | ${tg_if2_dest_mac}
345
346 | Set up 3-node performance topology with DUT's NIC model
347 | | [Documentation]
348 | | ... | Suite preparation phase that sets the default startup configuration of
349 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets the global
350 | | ... | variables used in test cases based on interface model provided as an
351 | | ... | argument. Initializes traffic generator.
352 | | ...
353 | | ... | *Arguments:*
354 | | ... | - topology_type - Topology type. Type: string
355 | | ... | - nic_model - Interface model. Type: string
356 | | ...
357 | | ... | *Example:*
358 | | ...
359 | | ... | \| Set up 3-node performance topology with DUT's NIC model \| L2 \
360 | | ... | \| Intel-X520-DA2 \|
361 | | ...
362 | | [Arguments] | ${topology_type} | ${nic_model}
363 | | ...
364 | | Set variables in 3-node circular topology with DUT interface model
365 | | ... | ${nic_model}
366 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
367 | | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${topology_type}
368
369 | Set up 3-node performance topology with DUT's NIC model with double link between DUTs
370 | | [Documentation]
371 | | ... | Suite preparation phase that sets the default startup configuration of
372 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets the global
373 | | ... | variables used in test cases based on interface model provided as an
374 | | ... | argument. Initializes traffic generator.
375 | | ...
376 | | ... | *Arguments:*
377 | | ... | - topology_type - Topology type. Type: string
378 | | ... | - nic_model - Interface model. Type: string
379 | | ...
380 | | ... | *Example:*
381 | | ...
382 | | ... | \| Set up 3-node performance topology with DUT's NIC model with \
383 | | ... | double link between DUTs \| L2 \| Intel-X520-DA2 \|
384 | | ...
385 | | [Arguments] | ${topology_type} | ${nic_model}
386 | | ...
387 | | Set variables in 3-node circular topology with DUT interface model with double link between DUTs
388 | | ... | ${nic_model}
389 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
390 | | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${topology_type}
391
392 | Set up DPDK 2-node performance topology with DUT's NIC model
393 | | [Documentation]
394 | | ... | Updates interfaces on all nodes and sets the global
395 | | ... | variables used in test cases based on interface model provided as an
396 | | ... | argument. Initializes traffic generator. Initializes DPDK test
397 | | ... | environment.
398 | | ...
399 | | ... | *Arguments:*
400 | | ... | - topology_type - Topology type. Type: string
401 | | ... | - nic_model - Interface model. Type: string
402 | | ...
403 | | ... | *Example:*
404 | | ...
405 | | ... | \| Set up DPDK 2-node performance topology with DUT's NIC model \
406 | | ... | \| L2 \| Intel-X520-DA2 \|
407 | | ...
408 | | [Arguments] | ${topology_type} | ${nic_model}
409 | | ...
410 | | Set variables in 2-node circular topology with DUT interface model
411 | | ... | ${nic_model}
412 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
413 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
414 | | Initialize DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
415
416 | Set up DPDK 3-node performance topology with DUT's NIC model
417 | | [Documentation]
418 | | ... | Updates interfaces on all nodes and sets the global
419 | | ... | variables used in test cases based on interface model provided as an
420 | | ... | argument. Initializes traffic generator. Initializes DPDK test
421 | | ... | environment.
422 | | ...
423 | | ... | *Arguments:*
424 | | ... | - topology_type - Topology type. Type: string
425 | | ... | - nic_model - Interface model. Type: string
426 | | ...
427 | | ... | *Example:*
428 | | ...
429 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
430 | | ...
431 | | [Arguments] | ${topology_type} | ${nic_model}
432 | | ...
433 | | Set variables in 3-node circular topology with DUT interface model
434 | | ... | ${nic_model}
435 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
436 | | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${topology_type}
437 | | Initialize DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
438 | | Initialize DPDK Environment | ${dut2} | ${dut2_if1} | ${dut2_if2}
439
440 | Set up SRIOV 2-node performance topology with DUT's NIC model
441 | | [Documentation]
442 | | ... | Suite preparation phase that sets default startup configuration of
443 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets global
444 | | ... | variables used in test cases based on interface model provided as an
445 | | ... | argument. Initializes traffic generator.
446 | | ... | It configures PCI device with VFs on all DUTs.
447 | | ...
448 | | ... | *Arguments:*
449 | | ... | - topology_type - Topology type. Type: string
450 | | ... | - nic_model - Interface model. Type: string
451 | | ... | - vf_driver - Virtual function driver. Type: string
452 | | ... | - numvfs - Number of VFs. Type: integer
453 | | ...
454 | | ... | *Example:*
455 | | ...
456 | | ... | \| Set up SRIOV 2-node performance topology with DUT's NIC model \
457 | | ... | \| L2 \| Intel-X520-DA2 \| AVF \|
458 | | ...
459 | | [Arguments] | ${topology_type} | ${nic_model} | ${vf_driver}
460 | | ... | ${numvfs}=${1}
461 | | ...
462 | | Set variables in 2-node circular topology with DUT interface model
463 | | ... | ${nic_model}
464 | | Run Keyword If | '${vf_driver}' == 'AVF'
465 | | ... | Configure AVF interfaces on all DUTs | numvfs=${numvfs}
466 | | ... | topology_type=${topology_type}
467 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
468 | | ... | ${dut1} | ${dut1_if1_vf0} | ${dut1} | ${dut1_if2_vf0}
469 | | ... | ${topology_type}
470
471 | Set up SRIOV 3-node performance topology with DUT's NIC model
472 | | [Documentation]
473 | | ... | Suite preparation phase that sets default startup configuration of
474 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets global
475 | | ... | variables used in test cases based on interface model provided as an
476 | | ... | argument. Initializes traffic generator.
477 | | ... | It configures PCI device with VFs on all DUTs.
478 | | ...
479 | | ... | *Arguments:*
480 | | ... | - topology_type - Topology type. Type: string
481 | | ... | - nic_model - Interface model. Type: string
482 | | ... | - vf_driver - Virtual function driver. Type: string
483 | | ... | - numvfs - Number of VFs. Type: integer
484 | | ...
485 | | ... | *Example:*
486 | | ...
487 | | ... | \| Set up SRIOV 3-node performance topology with DUT's NIC model \
488 | | ... | \| L2 \| Intel-X520-DA2 \| AVF \|
489 | | ...
490 | | [Arguments] | ${topology_type} | ${nic_model} | ${vf_driver}
491 | | ... | ${numvfs}=${1}
492 | | ...
493 | | Set variables in 3-node circular topology with DUT interface model
494 | | ... | ${nic_model}
495 | | Run Keyword If | '${vf_driver}' == 'AVF'
496 | | ... | Configure AVF interfaces on all DUTs | numvfs=${numvfs}
497 | | ... | topology_type=${topology_type}
498 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
499 | | ... | ${dut1} | ${dut1_if1_vf0} | ${dut2} | ${dut2_if2_vf0}
500 | | ... | ${topology_type}
501
502 | Set up IPSec performance test suite
503 | | [Documentation]
504 | | ... | Suite preparation phase that sets default startup configuration of
505 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets global
506 | | ... | variables used in test cases based on interface model provided as an
507 | | ... | argument. Initializes traffic generator.
508 | | ... | Then it configures crypto device and kernel module on all DUTs.
509 | | ...
510 | | ... | *Arguments:*
511 | | ... | - topology_type - Topology type. Type: string
512 | | ... | - nic_model - Interface model. Type: string
513 | | ... | - crypto_type - Crypto device type - HW_cryptodev or SW_cryptodev
514 | | ... | (Optional). Type: string, default value: HW_cryptodev
515 | | ...
516 | | ... | *Example:*
517 | | ...
518 | | ... | \| Set up IPSec performance test suite \| L2 \
519 | | ... | \| Intel-X520-DA2 \|
520 | | ...
521 | | [Arguments] | ${topology_type} | ${nic_model} | ${crypto_type}=HW_cryptodev
522 | | ...
523 | | Set up 3-node performance topology with DUT's NIC model
524 | | ... | ${topology_type} | ${nic_model}
525 | | ${numvfs}= | Set Variable If
526 | | ... | '${crypto_type}' == 'HW_cryptodev' | ${32}
527 | | ... | '${crypto_type}' == 'SW_cryptodev' | ${0}
528 | | Configure crypto device on all DUTs | force_init=${True} | numvfs=${numvfs}
529 | | Run Keyword If | '${crypto_type}' == 'HW_cryptodev'
530 | | ... | Configure kernel module on all DUTs | igb_uio | force_load=${True}
531
532 | Set up performance topology with containers
533 | | [Documentation]
534 | | ... | Suite preparation phase that starts containers
535 | | ...
536 | | Set Suite Variable | @{container_groups} | @{EMPTY}
537 | | Construct VNF containers on all DUTs
538 | | Acquire all 'VNF' containers
539 | | Create all 'VNF' containers
540 | | Configure VPP in all 'VNF' containers
541 | | Stop VPP service on all DUTs | ${nodes}
542 | | Install VPP in all 'VNF' containers
543 | | Start VPP service on all DUTs | ${nodes}
544
545 | Set up performance test suite with MEMIF
546 | | [Documentation]
547 | | ... | Append memif_plugin.so to the list of enabled plugins.
548 | | ...
549 | | Set Suite Variable | @{plugins_to_enable}
550 | | Append To List | ${plugins_to_enable} | memif_plugin.so
551
552 | Set up performance test suite with NAT
553 | | [Documentation]
554 | | ... | Append nat_plugin.so to the list of enabled plugins.
555 | | ...
556 | | Set Suite Variable | @{plugins_to_enable}
557 | | Append To List | ${plugins_to_enable} | nat_plugin.so
558
559 | Set up performance test suite with ACL
560 | | [Documentation]
561 | | ... | Append acl_plugin.so to the list of enabled plugins.
562 | | ...
563 | | Set Suite Variable | @{plugins_to_enable}
564 | | Append To List | ${plugins_to_enable} | acl_plugin.so
565
566 | Set up performance test suite with AVF driver
567 | | [Documentation]
568 | | ... | Append avf_plugin.so to the list of enabled plugins.
569 | | ...
570 | | Set Suite Variable | @{plugins_to_enable}
571 | | Append To List | ${plugins_to_enable} | avf_plugin.so
572
573 | Set up performance test suite with Static SRv6 proxy
574 | | [Documentation]
575 | | ... | Append srv6as_plugin.so to the list of enabled plugins.
576 | | ...
577 | | Set Suite Variable | @{plugins_to_enable}
578 | | Append To List | ${plugins_to_enable} | srv6as_plugin.so
579
580 | Set up performance test suite with Dynamic SRv6 proxy
581 | | [Documentation]
582 | | ... | Append srv6ad_plugin.so to the list of enabled plugins.
583 | | ...
584 | | Set Suite Variable | @{plugins_to_enable}
585 | | Append To List | ${plugins_to_enable} | srv6ad_plugin.so
586
587 | Set up performance test suite with Masquerading SRv6 proxy
588 | | [Documentation]
589 | | ... | Append srv6am_plugin.so to the list of enabled plugins.
590 | | ...
591 | | Set Suite Variable | @{plugins_to_enable}
592 | | Append To List | ${plugins_to_enable} | srv6am_plugin.so
593
594 | Set up performance test suite with LACP mode link bonding
595 | | [Documentation]
596 | | ... | Append lacp_plugin.so to the list of enabled plugins.
597 | | ...
598 | | Set Suite Variable | @{plugins_to_enable}
599 | | Append To List | ${plugins_to_enable} | lacp_plugin.so
600
601 | Set up 3-node performance topology with wrk and DUT's NIC model
602 | | [Documentation]
603 | | ... | Suite preparation phase that sets the default startup configuration of
604 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets the global
605 | | ... | variables used in test cases based on interface model provided as an
606 | | ... | argument. Installs the traffic generator.
607 | | ...
608 | | ... | *Arguments:*
609 | | ... | - iface_model - Interface model. Type: string
610 | | ...
611 | | ... | *Example:*
612 | | ...
613 | | ... | \| Set up 3-node performance topology with wrk and DUT's NIC model\
614 | | ... | \| Intel-X520-DA2 \|
615 | | ...
616 | | [Arguments] | ${iface_model}
617 | | ...
618 | | Set variables in 3-node circular topology with DUT interface model
619 | | ... | ${iface_model}
620 | | Iface update numa node | ${tg}
621 # Make sure TRex is stopped
622 | | ${running}= | Is TRex running | ${tg}
623 | | Run keyword if | ${running}==${True} | Teardown traffic generator | ${tg}
624 | | ${curr_driver}= | Get PCI dev driver | ${tg}
625 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']}
626 | | Run keyword if | '${curr_driver}'!='${None}'
627 | | ... | PCI Driver Unbind | ${tg} |
628 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']}
629 # Bind tg_if1 to driver specified in the topology
630 | | ${driver}= | Get Variable Value | ${tg['interfaces']['${tg_if1}']['driver']}
631 | | PCI Driver Bind | ${tg}
632 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']} | ${driver}
633 # Set IP on tg_if1
634 | | ${intf_name}= | Get Linux interface name | ${tg}
635 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']}
636 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.10.1 | 24
637 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.20.1 | 24
638 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.30.1 | 24
639 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.40.1 | 24
640 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.50.1 | 24
641 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.60.1 | 24
642 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.70.1 | 24
643 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.80.1 | 24
644 | | Set Linux interface up | ${tg} | ${intf_name}
645 | | Install wrk | ${tg}
646
647 # Suite teardowns
648
649 | Tear down 2-node performance topology
650 | | [Documentation]
651 | | ... | Suite teardown phase with traffic generator teardown.
652 | | ...
653 | | Teardown traffic generator | ${tg}
654
655 | Tear down 2-node performance topology with container
656 | | [Documentation]
657 | | ... | Suite teardown phase with traffic generator teardown and container
658 | | ... | destroy.
659 | | ...
660 | | Teardown traffic generator | ${tg}
661 | | :FOR | ${group} | IN | @{container_groups}
662 | | | Destroy all '${group}' containers
663
664 | Tear down 3-node performance topology
665 | | [Documentation]
666 | | ... | Suite teardown phase with traffic generator teardown.
667 | | ...
668 | | Teardown traffic generator | ${tg}
669
670 | Tear down 3-node performance topology with container
671 | | [Documentation]
672 | | ... | Suite teardown phase with traffic generator teardown and container
673 | | ... | destroy.
674 | | ...
675 | | Teardown traffic generator | ${tg}
676 | | :FOR | ${group} | IN | @{container_groups}
677 | | | Destroy all '${group}' containers
678
679 # Tests setups
680
681 | Set up performance test
682 | | [Documentation] | Common test setup for performance tests.
683 | | ...
684 | | Reset VAT History On All DUTs | ${nodes}
685 | | Create base startup configuration of VPP on all DUTs
686
687 | Set up tcp performance test
688 | | [Documentation] | Common test setup for TCP performance tests.
689 | | ...
690 | | Reset VAT History On All DUTs | ${nodes}
691 | | Create base startup configuration of VPP for TCP tests on all DUTs
692
693 | Set up performance test with Ligato Kubernetes
694 | | [Documentation] | Common test setup for performance tests with Ligato \
695 | | ... | Kubernetes.
696 | | ...
697 | | Apply Kubernetes resource on all duts | ${nodes} | namespaces/csit.yaml
698 | | Apply Kubernetes resource on all duts | ${nodes} | pods/kafka.yaml
699 | | Apply Kubernetes resource on all duts | ${nodes} | pods/etcdv3.yaml
700 | | Apply Kubernetes resource on all duts | ${nodes}
701 | | ... | configmaps/vswitch-agent-cfg.yaml
702 | | Apply Kubernetes resource on all duts | ${nodes}
703 | | ... | configmaps/vnf-agent-cfg.yaml
704 | | Apply Kubernetes resource on all duts | ${nodes}
705 | | ... | pods/contiv-sfc-controller.yaml
706 | | Apply Kubernetes resource on all duts | ${nodes}
707 | | ... | pods/contiv-vswitch.yaml
708
709 # Tests teardowns
710
711 | Tear down performance discovery test
712 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
713 | | ... | tests.
714 | | ...
715 | | ... | *Arguments:*
716 | | ... | - rate - Rate for sending packets. Type: string
717 | | ... | - framesize - L2 Frame Size [B]. Type: integer
718 | | ... | - topology_type - Topology type. Type: string
719 | | ...
720 | | ... | *Example:*
721 | | ...
722 | | ... | \| Tear down performance discovery test \| 4.0mpps \| 64 \
723 | | ... | \| 3-node-IPv4 \|
724 | | ...
725 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
726 | | ...
727 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
728 | | Show VAT History On All DUTs | ${nodes}
729 | | Run Keyword If Test Failed
730 | | ... | Set Test Variable | ${pkt_trace} | ${True}
731 | | Run Keyword If Test Failed
732 | | ... | Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
733 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
734
735 | Tear down performance ndrchk test
736 | | [Documentation] | Common test teardown for ndrchk performance tests.
737 | | ...
738 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
739 | | Show VAT History On All DUTs | ${nodes}
740
741 | Tear down performance pdrchk test
742 | | [Documentation] | Common test teardown for pdrchk performance tests.
743 | | ...
744 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
745 | | Show VAT History On All DUTs | ${nodes}
746
747 | Tear down performance mrr test
748 | | [Documentation] | Common test teardown for max-received-rate performance
749 | | ... | tests.
750 | | ...
751 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
752 | | Show VAT History On All DUTs | ${nodes}
753
754 | Tear down performance test with wrk
755 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
756 | | ... | tests.
757 | | ...
758 | | ... | *Example:*
759 | | ...
760 | | ... | \| Tear down performance test with wrk \|
761 | | ...
762 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
763 | | Show VAT History On All DUTs | ${nodes}
764 | | Show statistics on all DUTs | ${nodes}
765
766 | Tear down performance test with vhost and VM with dpdk-testpmd
767 | | [Documentation] | Common test teardown for performance tests which use
768 | | ... | vhost(s) and VM(s) with dpdk-testpmd.
769 | | ...
770 | | ... | *Arguments:*
771 | | ... | - rate - Rate for sending packets. Type: string
772 | | ... | - framesize - L2 Frame Size [B]. Type: integer
773 | | ... | - topology_type - Topology type. Type: string
774 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
775 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
776 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
777 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
778 | | ...
779 | | ... | *Example:*
780 | | ...
781 | | ... | \| Tear down performance test with vhost and VM with dpdk-testpmd \
782 | | ... | \| 4.0mpps \| 64 \| 3-node-IPv4 \| ${node['DUT1']} \| ${dut_vm_refs} \
783 | | ... | \| ${node['DUT2']} \| ${dut_vm_refs} \|
784 | | ...
785 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
786 | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
787 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
788 | | ...
789 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
790 | | Show VAT History On All DUTs | ${nodes}
791 | | Show VPP vhost on all DUTs | ${nodes}
792 | | Show statistics on all DUTs | ${nodes}
793 | | Run Keyword If Test Failed
794 | | ... | Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
795 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
796 | | Run keyword unless | ${dut1_node}==${None}
797 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
798 | | Run keyword unless | ${dut2_node}==${None}
799 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
800
801 | Tear down mrr test with vhost and VM with dpdk-testpmd
802 | | [Documentation] | Common test teardown for mrr tests which use
803 | | ... | vhost(s) and VM(s) with dpdk-testpmd.
804 | | ...
805 | | ... | *Arguments:*
806 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
807 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
808 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
809 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
810 | | ...
811 | | ... | *Example:*
812 | | ...
813 | | ... | \| Tear down performance test with vhost and VM with dpdk-testpmd \
814 | | ... | \| ${node['DUT1']} \| ${dut_vm_refs} \
815 | | ... | \| ${node['DUT2']} \| ${dut_vm_refs} \|
816 | | ...
817 | | [Arguments] | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
818 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
819 | | ...
820 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
821 | | Show VAT History On All DUTs | ${nodes}
822 | | Show VPP vhost on all DUTs | ${nodes}
823 | | Show statistics on all DUTs | ${nodes}
824 | | Run keyword unless | ${dut1_node}==${None}
825 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
826 | | Run keyword unless | ${dut2_node}==${None}
827 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
828
829 | Tear down performance test with vhost and VM with dpdk-testpmd and ACL
830 | | [Documentation] | Common test teardown for performance tests which use
831 | | ... | vhost(s) and VM(s) with ACL and dpdk-testpmd.
832 | | ...
833 | | ... | *Arguments:*
834 | | ... | - rate - Rate for sending packets. Type: string
835 | | ... | - framesize - L2 Frame Size [B]. Type: integer
836 | | ... | - topology_type - Topology type. Type: string
837 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
838 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
839 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
840 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
841 | | ...
842 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
843 | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
844 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
845 | | ...
846 | | Tear down performance test with vhost and VM with dpdk-testpmd
847 | | ... | ${rate} | ${framesize} | ${topology_type}
848 | | ... | ${dut1_node} | ${dut1_vm_refs}
849 | | ... | ${dut2_node} | ${dut2_vm_refs}
850 | | Vpp Log Plugin Acl Settings | ${dut1}
851 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
852 | | ... | Vpp Log Plugin Acl Interface Assignment | ${dut1}
853
854 | Tear down mrr test with vhost and VM with dpdk-testpmd and ACL
855 | | [Documentation] | Common test teardown for mrr tests which use
856 | | ... | vhost(s) and VM(s) with ACL and dpdk-testpmd.
857 | | ...
858 | | ... | *Arguments:*
859 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
860 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
861 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
862 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
863 | | ...
864 | | [Arguments] | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
865 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
866 | | ...
867 | | Tear down mrr test with vhost and VM with dpdk-testpmd
868 | | ... | ${dut1_node} | ${dut1_vm_refs}
869 | | ... | ${dut2_node} | ${dut2_vm_refs}
870 | | Vpp Log Plugin Acl Settings | ${dut1}
871 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
872 | | ... | Vpp Log Plugin Acl Interface Assignment | ${dut1}
873
874 | Tear down performance pdrchk test with vhost and VM with dpdk-testpmd
875 | | [Documentation] | Common test teardown for performance pdrchk tests which \
876 | | ... | use vhost(s) and VM(s) with dpdk-testpmd.
877 | | ...
878 | | ... | *Arguments:*
879 | | ... | - rate - Rate for sending packets. Type: string
880 | | ... | - framesize - L2 Frame Size [B]. Type: integer
881 | | ... | - topology_type - Topology type. Type: string
882 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
883 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
884 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
885 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
886 | | ...
887 | | ... | *Example:*
888 | | ...
889 | | ... | \| Tear down performance pdrchk test with vhost and VM with \
890 | | ... | dpdk-testpmd \| 4.0mpps \| 64 \| 3-node-IPv4 \| ${node['DUT1']} \
891 | | ... | \| ${dut_vm_refs} \| ${node['DUT2']} \| ${dut_vm_refs} \|
892 | | ...
893 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
894 | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
895 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
896 | | ...
897 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
898 | | Show VAT History On All DUTs | ${nodes}
899 | | Show VPP vhost on all DUTs | ${nodes}
900 | | Show statistics on all DUTs | ${nodes}
901 | | Run keyword unless | ${dut1_node}==${None}
902 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
903 | | Run keyword unless | ${dut2_node}==${None}
904 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
905
906 | Tear down performance mrr test with vhost and VM with dpdk-testpmd
907 | | [Documentation] | Common test teardown for performance mrr tests which \
908 | | ... | use vhost(s) and VM(s) with dpdk-testpmd.
909 | | ...
910 | | ... | *Arguments:*
911 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
912 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
913 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
914 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
915 | | ...
916 | | ... | *Example:*
917 | | ...
918 | | ... | \| Tear down performance mrr test with vhost and VM with \
919 | | ... | dpdk-testpmd \| ${node['DUT1']} \| ${dut_vm_refs} \| ${node['DUT2']} \
920 | | ... | \| ${dut_vm_refs} \|
921 | | ...
922 | | [Arguments] | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
923 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
924 | | ...
925 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
926 | | Show VAT History On All DUTs | ${nodes}
927 | | Show VPP vhost on all DUTs | ${nodes}
928 | | Run keyword unless | ${dut1_node}==${None}
929 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
930 | | Run keyword unless | ${dut2_node}==${None}
931 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
932
933 | Tear down DPDK 2-node performance topology
934 | | [Documentation]
935 | | ... | Suite teardown phase with traffic generator teardown.
936 | | ... | Cleanup DPDK test environment.
937 | | ...
938 | | Teardown traffic generator | ${tg}
939 | | Cleanup DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
940
941 | Tear down DPDK 3-node performance topology
942 | | [Documentation]
943 | | ... | Suite teardown phase with traffic generator teardown.
944 | | ... | Cleanup DPDK test environment.
945 | | ...
946 | | Teardown traffic generator | ${tg}
947 | | Cleanup DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
948 | | Cleanup DPDK Environment | ${dut2} | ${dut2_if1} | ${dut2_if2}
949
950 | Tear down performance discovery test with NAT
951 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
952 | | ... | tests with NAT feature used.
953 | | ...
954 | | ... | *Arguments:*
955 | | ... | - rate - Rate for sending packets. Type: string
956 | | ... | - framesize - L2 Frame Size [B]. Type: integer
957 | | ... | - traffic_profile - Traffic profile. Type: string
958 | | ...
959 | | ... | *Example:*
960 | | ...
961 | | ... | \| Tear down performance discovery test with NAT \| 100000pps \| 64 \
962 | | ... | \| ${traffic_profile} \|
963 | | ...
964 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
965 | | ...
966 | | Tear down performance discovery test | ${rate} | ${framesize}
967 | | ... | ${traffic_profile}
968 | | Show NAT verbose | ${dut1}
969 | | Show NAT verbose | ${dut2}
970
971 | Tear down mrr test with NAT
972 | | [Documentation] | Common test teardown for mrr performance \
973 | | ... | tests with NAT feature used.
974 | | ...
975 | | ... | \| Tear down mrr test with NAT \|
976 | | ...
977 | | Tear down performance mrr test
978 | | Show NAT verbose | ${dut1}
979 | | Show NAT verbose | ${dut2}
980
981 | Tear down performance test with ACL
982 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
983 | | ... | tests with ACL feature used.
984 | | ...
985 | | ... | *Arguments:*
986 | | ... | - rate - Rate for sending packets. Type: string
987 | | ... | - framesize - L2 Frame Size [B]. Type: integer
988 | | ... | - traffic_profile - Traffic profile. Type: string
989 | | ...
990 | | ... | *Example:*
991 | | ...
992 | | ... | \| Tear down performance test with ACL \| 100000pps \| 64 \
993 | | ... | \| ${traffic_profile} \|
994 | | ...
995 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
996 | | ...
997 | | Tear down performance discovery test | ${rate} | ${framesize}
998 | | ... | ${traffic_profile}
999 | | Vpp Log Plugin Acl Settings | ${dut1}
1000 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
1001 | | ... | Vpp Log Plugin Acl Interface Assignment | ${dut1}
1002
1003 | Tear down mrr test with ACL
1004 | | [Documentation] | Common test teardown for mrr performance \
1005 | | ... | tests with ACL feature used.
1006 | | ...
1007 | | ... | *Example:*
1008 | | ...
1009 | | ... | \| Tear down mrr test with ACL \|
1010 | | ...
1011 | | Tear down performance mrr test
1012 | | Vpp Log Plugin Acl Settings | ${dut1}
1013 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
1014 | | ... | Vpp Log Plugin Acl Interface Assignment | ${dut1}
1015
1016 | Tear down performance test with MACIP ACL
1017 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
1018 | | ... | tests with MACIP ACL feature used.
1019 | | ...
1020 | | ... | *Arguments:*
1021 | | ... | - rate - Rate for sending packets. Type: string
1022 | | ... | - framesize - L2 Frame Size [B]. Type: integer
1023 | | ... | - traffic_profile - Traffic profile. Type: string
1024 | | ...
1025 | | ... | *Example:*
1026 | | ...
1027 | | ... | \| Tear down performance test with MACIP ACL \| 100000pps \| 64 \
1028 | | ... | \| ${traffic_profile} \|
1029 | | ...
1030 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
1031 | | ...
1032 | | Tear down performance discovery test | ${rate} | ${framesize}
1033 | | ... | ${traffic_profile}
1034 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
1035 | | ... | Vpp Log Macip Acl Settings | ${dut1}
1036 | | Run Keyword And Ignore Error
1037 | | ... | Vpp Log Macip Acl Interface Assignment | ${dut1}
1038
1039 | Tear down mrr test with MACIP ACL
1040 | | [Documentation] | Common test teardown for mrr performance \
1041 | | ... | tests with MACIP ACL feature used.
1042 | | ...
1043 | | ... | *Example:*
1044 | | ...
1045 | | ... | \| Tear down mrr test with MACIP ACL \|
1046 | | ...
1047 | | Tear down performance mrr test
1048 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
1049 | | ... | Vpp Log Macip Acl Settings | ${dut1}
1050 | | Run Keyword And Ignore Error
1051 | | ... | Vpp Log Macip Acl Interface Assignment | ${dut1}
1052
1053 | Tear down performance test with Ligato Kubernetes
1054 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
1055 | | ... | tests with Ligato Kubernetes.
1056 | | ...
1057 | | Run Keyword If Test Failed
1058 | | ... | Get Kubernetes logs on all DUTs | ${nodes} | csit
1059 | | Run Keyword If Test Failed
1060 | | ... | Describe Kubernetes resource on all DUTs | ${nodes} | csit
1061 | | Delete Kubernetes resource on all DUTs | ${nodes} | csit
1062
1063 | Tear down performance test with SRv6 with encapsulation
1064 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
1065 | | ... | tests with SRv6 with encapsulation feature used.
1066 | | ...
1067 | | ... | *Arguments:*
1068 | | ... | - rate - Rate for sending packets. Type: string
1069 | | ... | - framesize - L2 Frame Size [B]. Type: integer/string
1070 | | ... | - traffic_profile - Traffic profile. Type: string
1071 | | ...
1072 | | ... | *Example:*
1073 | | ...
1074 | | ... | \| Tear down performance test with SRv6 with encapsulation \
1075 | | ... | \| 100000pps \| 64 \| ${traffic_profile} \|
1076 | | ...
1077 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
1078 | | ...
1079 | | Tear down performance discovery test | ${rate} | ${framesize}
1080 | | ... | ${traffic_profile}
1081 | | Run Keyword If Test Failed | Show SR Policies on all DUTs | ${nodes}
1082 | | Run Keyword If Test Failed
1083 | | ... | Show SR Steering Policies on all DUTs | ${nodes}
1084 | | Run Keyword If Test Failed | Show SR LocalSIDs on all DUTs | ${nodes}
1085
1086 | Tear down mrr test with SRv6 with encapsulation
1087 | | [Documentation] | Common test teardown for mrr tests with SRv6 with \
1088 | | ... | encapsulation feature used.
1089 | | ...
1090 | | ... | *Example:*
1091 | | ...
1092 | | ... | \| Tear down mrr test with SRv6 with encapsulation \|
1093 | | ...
1094 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
1095 | | Show VAT History On All DUTs | ${nodes}
1096 | | Run Keyword If Test Failed | Show SR Policies on all DUTs | ${nodes}
1097 | | Run Keyword If Test Failed
1098 | | ... | Show SR Steering Policies on all DUTs | ${nodes}
1099 | | Run Keyword If Test Failed | Show SR LocalSIDs on all DUTs | ${nodes}