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