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