de50fd3254e78761b4a68d4cc552ccd04e2dbe35
[csit.git] / resources / libraries / robot / performance / performance_setup.robot
1 # Copyright (c) 2017 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 | Resource | resources/libraries/robot/performance/performance_configuration.robot
16 | Resource | resources/libraries/robot/performance/performance_utils.robot
17 | Documentation | Performance suite keywords - Suite and test setups and
18 | ... | teardowns.
19
20 *** Keywords ***
21
22 # Keywords used in setups and teardowns
23
24 | Set variables in 2-node circular topology
25 | | [Documentation]
26 | | ... | Compute path for testing on two given nodes in circular
27 | | ... | topology and set corresponding suite variables.
28 | | ...
29 | | ... | _NOTE:_ This KW sets following suite variables:
30 | | ... | - tg - TG node
31 | | ... | - tg_if1 - 1st TG interface towards DUT.
32 | | ... | - tg_if2 - 2nd TG interface towards DUT.
33 | | ... | - dut1 - DUT1 node
34 | | ... | - dut1_if1 - 1st DUT interface towards TG.
35 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
36 | | ...
37 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
38 | | Compute Path | always_same_link=${FALSE}
39 | | ${tg_if1} | ${tg}= | First Interface
40 | | ${dut1_if1} | ${dut1}= | First Ingress Interface
41 | | ${dut1_if2} | ${dut1}= | Last Egress Interface
42 | | ${tg_if2} | ${tg}= | Last Interface
43 | | Set Suite Variable | ${tg}
44 | | Set Suite Variable | ${tg_if1}
45 | | Set Suite Variable | ${tg_if2}
46 | | Set Suite Variable | ${dut1}
47 | | Set Suite Variable | ${dut1_if1}
48 | | Set Suite Variable | ${dut1_if2}
49
50 | Set variables in 3-node circular topology
51 | | [Documentation]
52 | | ... | Compute path for testing on three given nodes in circular
53 | | ... | topology and set corresponding suite variables.
54 | | ...
55 | | ... | _NOTE:_ This KW sets following suite variables:
56 | | ... | - tg - TG node
57 | | ... | - tg_if1 - TG interface towards DUT1.
58 | | ... | - tg_if2 - TG interface towards DUT2.
59 | | ... | - dut1 - DUT1 node
60 | | ... | - dut1_if1 - DUT1 interface towards TG.
61 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
62 | | ... | - dut2 - DUT2 node
63 | | ... | - dut2_if1 - DUT2 interface towards DUT1.
64 | | ... | - dut2_if2 - DUT2 interface towards TG.
65 | | ...
66 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
67 | | ... | ${nodes['TG']}
68 | | Compute Path
69 | | ${tg_if1} | ${tg}= | Next Interface
70 | | ${dut1_if1} | ${dut1}= | Next Interface
71 | | ${dut1_if2} | ${dut1}= | Next Interface
72 | | ${dut2_if1} | ${dut2}= | Next Interface
73 | | ${dut2_if2} | ${dut2}= | Next Interface
74 | | ${tg_if2} | ${tg}= | Next Interface
75 | | Set Suite Variable | ${tg}
76 | | Set Suite Variable | ${tg_if1}
77 | | Set Suite Variable | ${tg_if2}
78 | | Set Suite Variable | ${dut1}
79 | | Set Suite Variable | ${dut1_if1}
80 | | Set Suite Variable | ${dut1_if2}
81 | | Set Suite Variable | ${dut2}
82 | | Set Suite Variable | ${dut2_if1}
83 | | Set Suite Variable | ${dut2_if2}
84
85 | Set variables in 2-node circular topology with DUT interface model
86 | | [Documentation]
87 | | ... | Compute path for testing on two given nodes in circular topology
88 | | ... | based on interface model provided as an argument and set
89 | | ... | corresponding suite variables.
90 | | ...
91 | | ... | *Arguments:*
92 | | ... | - iface_model - Interface model. Type: string
93 | | ...
94 | | ... | _NOTE:_ This KW sets following suite variables:
95 | | ... | - tg - TG node
96 | | ... | - tg_if1 - 1st TG interface towards DUT.
97 | | ... | - tg_if2 - 2nd TG interface towards DUT.
98 | | ... | - dut1 - DUT1 node
99 | | ... | - dut1_if1 - 1st DUT interface towards TG.
100 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
101 | | ...
102 | | ... | *Example:*
103 | | ...
104 | | ... | \| Set variables in 2-node circular topology with DUT interface model\
105 | | ... | \| Intel-X520-DA2 \|
106 | | ...
107 | | [Arguments] | ${iface_model}
108 | | ...
109 | | ${iface_model_list}= | Create list | ${iface_model}
110 | | Append Node | ${nodes['TG']}
111 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
112 | | Append Node | ${nodes['TG']}
113 | | Compute Path | always_same_link=${FALSE}
114 | | ${tg_if1} | ${tg}= | First Interface
115 | | ${dut1_if1} | ${dut1}= | First Ingress Interface
116 | | ${dut1_if2} | ${dut1}= | Last Egress Interface
117 | | ${tg_if2} | ${tg}= | Last Interface
118 | | Set Suite Variable | ${tg}
119 | | Set Suite Variable | ${tg_if1}
120 | | Set Suite Variable | ${tg_if2}
121 | | Set Suite Variable | ${dut1}
122 | | Set Suite Variable | ${dut1_if1}
123 | | Set Suite Variable | ${dut1_if2}
124
125 | Set variables in 3-node circular topology with DUT interface model
126 | | [Documentation]
127 | | ... | Compute path for testing on three given nodes in circular topology
128 | | ... | based on interface model provided as an argument and set
129 | | ... | corresponding suite variables.
130 | | ...
131 | | ... | *Arguments:*
132 | | ... | - iface_model - Interface model. Type: string
133 | | ...
134 | | ... | _NOTE:_ This KW sets following suite variables:
135 | | ... | - tg - TG node
136 | | ... | - tg_if1 - TG interface towards DUT1.
137 | | ... | - tg_if2 - TG interface towards DUT2.
138 | | ... | - dut1 - DUT1 node
139 | | ... | - dut1_if1 - DUT1 interface towards TG.
140 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
141 | | ... | - dut2 - DUT2 node
142 | | ... | - dut2_if1 - DUT2 interface towards TG.
143 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
144 | | ...
145 | | ... | *Example:*
146 | | ...
147 | | ... | \| Set variables in 3-node circular topology with DUT interface model\
148 | | ... | \| Intel-X520-DA2 \|
149 | | ...
150 | | [Arguments] | ${iface_model}
151 | | ...
152 | | ${iface_model_list}= | Create list | ${iface_model}
153 | | Append Node | ${nodes['TG']}
154 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
155 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
156 | | Append Node | ${nodes['TG']}
157 | | Compute Path
158 | | ${tg_if1} | ${tg}= | Next Interface
159 | | ${dut1_if1} | ${dut1}= | Next Interface
160 | | ${dut1_if2} | ${dut1}= | Next Interface
161 | | ${dut2_if1} | ${dut2}= | Next Interface
162 | | ${dut2_if2} | ${dut2}= | Next Interface
163 | | ${tg_if2} | ${tg}= | Next Interface
164 | | Set Suite Variable | ${tg}
165 | | Set Suite Variable | ${tg_if1}
166 | | Set Suite Variable | ${tg_if2}
167 | | Set Suite Variable | ${dut1}
168 | | Set Suite Variable | ${dut1_if1}
169 | | Set Suite Variable | ${dut1_if2}
170 | | Set Suite Variable | ${dut2}
171 | | Set Suite Variable | ${dut2_if1}
172 | | Set Suite Variable | ${dut2_if2}
173
174 | Tear down guest VM with dpdk-testpmd
175 | | [Documentation]
176 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
177 | | ... | Argument is dictionary of all qemu nodes running with its names.
178 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
179 | | ...
180 | | ... | *Arguments:*
181 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
182 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
183 | | ...
184 | | ... | *Example:*
185 | | ...
186 | | ... | \| Tear down guest VM with dpdk-testpmd \| ${node['DUT1']} \
187 | | ... | \| ${dut_vm_refs} \|
188 | | ...
189 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
190 | | ${vms_number}= | Get Length | ${dut_vm_refs}
191 | | ${index}= | Set Variable | ${0}
192 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
193 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
194 | | | ${index}= | Evaluate | ${index} + 1
195 | | | Dpdk Testpmd Stop | ${vm}
196 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
197 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
198 | | | Run Keyword If | '${index}' == '${vms_number}' | ${vm_name}.Qemu Kill All
199
200 | Tear down guest VM
201 | | [Documentation]
202 | | ... | Stop all qemu processes running on ${dut_node}.
203 | | ... | Argument is dictionary of all qemu nodes running with its names.
204 | | ...
205 | | ... | *Arguments:*
206 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
207 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
208 | | ...
209 | | ... | *Example:*
210 | | ...
211 | | ... | \| Tear down guest VM \| ${node['DUT1']} \
212 | | ... | \| ${dut_vm_refs} \|
213 | | ...
214 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
215 | | ${vms_number}= | Get Length | ${dut_vm_refs}
216 | | ${index}= | Set Variable | ${0}
217 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
218 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
219 | | | ${index}= | Evaluate | ${index} + 1
220 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
221 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
222 | | | Run Keyword If | '${index}' == '${vms_number}' | ${vm_name}.Qemu Kill All
223
224 # Suite setups
225
226 | Set up 2-node performance topology with DUT's NIC model
227 | | [Documentation]
228 | | ... | Suite preparation phase that setup default startup configuration of
229 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
230 | | ... | variables used in test cases based on interface model provided as an
231 | | ... | argument. Initializes traffic generator.
232 | | ...
233 | | ... | *Arguments:*
234 | | ... | - topology_type - Topology type. Type: string
235 | | ... | - nic_model - Interface model. Type: string
236 | | ...
237 | | ... | *Example:*
238 | | ...
239 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
240 | | ...
241 | | [Arguments] | ${topology_type} | ${nic_model}
242 | | ...
243 | | Show vpp version on all DUTs
244 | | Set variables in 2-node circular topology with DUT interface model
245 | | ... | ${nic_model}
246 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
247 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
248
249 | Set up 2-node-switched performance topology with DUT's NIC model
250 | | [Documentation]
251 | | ... | Suite preparation phase that setup default startup configuration of
252 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
253 | | ... | variables used in test cases based on interface model provided as an
254 | | ... | argument. Initializes traffic generator.
255 | | ...
256 | | ... | *Arguments:*
257 | | ... | - topology_type - Topology type. Type: string
258 | | ... | - nic_model - Interface model. Type: string
259 | | ... | - tg_if1_dest_mac - Interface 1 destination MAC address. Type: string
260 | | ... | - tg_if2_dest_mac - Interface 2 destination MAC address. Type: string
261 | | ...
262 | | ... | *Example:*
263 | | ...
264 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \
265 | | ... | \| 22:22:33:44:55:66 \| 22:22:33:44:55:55 \|
266 | | ...
267 | | [Arguments] | ${topology_type} | ${nic_model} | ${tg_if1_dest_mac}
268 | | ... | ${tg_if2_dest_mac}
269 | | ...
270 | | Show vpp version on all DUTs
271 | | Set variables in 2-node circular topology with DUT interface model
272 | | ... | ${nic_model}
273 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
274 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
275 | | ... | ${tg_if1_dest_mac} | ${tg_if2_dest_mac}
276
277 | Set up 3-node performance topology with DUT's NIC model
278 | | [Documentation]
279 | | ... | Suite preparation phase that setup default startup configuration of
280 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
281 | | ... | variables used in test cases based on interface model provided as an
282 | | ... | argument. Initializes traffic generator.
283 | | ...
284 | | ... | *Arguments:*
285 | | ... | - topology_type - Topology type. Type: string
286 | | ... | - nic_model - Interface model. Type: string
287 | | ...
288 | | ... | *Example:*
289 | | ...
290 | | ... | \| Set up 3-node performance topology with DUT's NIC model \| L2 \
291 | | ... | \| Intel-X520-DA2 \|
292 | | ...
293 | | [Arguments] | ${topology_type} | ${nic_model}
294 | | ...
295 | | Show vpp version on all DUTs
296 | | Set variables in 3-node circular topology with DUT interface model
297 | | ... | ${nic_model}
298 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
299 | | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${topology_type}
300
301 | Set up DPDK 2-node performance topology with DUT's NIC model
302 | | [Documentation]
303 | | ... | Updates interfaces on all nodes and setup global
304 | | ... | variables used in test cases based on interface model provided as an
305 | | ... | argument. Initializes traffic generator. Initializes DPDK test
306 | | ... | environment.
307 | | ...
308 | | ... | *Arguments:*
309 | | ... | - topology_type - Topology type. Type: string
310 | | ... | - nic_model - Interface model. Type: string
311 | | ...
312 | | ... | *Example:*
313 | | ...
314 | | ... | \| Set up DPDK 2-node performance topology with DUT's NIC model \
315 | | ... | \| L2 \| Intel-X520-DA2 \|
316 | | ...
317 | | [Arguments] | ${topology_type} | ${nic_model}
318 | | ...
319 | | Set variables in 2-node circular topology with DUT interface model
320 | | ... | ${nic_model}
321 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
322 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
323 | | Initialize DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
324
325 | Set up DPDK 3-node performance topology with DUT's NIC model
326 | | [Documentation]
327 | | ... | Updates interfaces on all nodes and setup global
328 | | ... | variables used in test cases based on interface model provided as an
329 | | ... | argument. Initializes traffic generator. Initializes DPDK test
330 | | ... | environment.
331 | | ...
332 | | ... | *Arguments:*
333 | | ... | - topology_type - Topology type. Type: string
334 | | ... | - nic_model - Interface model. Type: string
335 | | ...
336 | | ... | *Example:*
337 | | ...
338 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
339 | | ...
340 | | [Arguments] | ${topology_type} | ${nic_model}
341 | | ...
342 | | Set variables in 3-node circular topology with DUT interface model
343 | | ... | ${nic_model}
344 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
345 | | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${topology_type}
346 | | Initialize DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
347 | | Initialize DPDK Environment | ${dut2} | ${dut2_if1} | ${dut2_if2}
348
349 | Set up IPSec performance test suite
350 | | [Documentation]
351 | | ... | Suite preparation phase that sets default startup configuration of
352 | | ... | VPP on all DUTs. Updates interfaces on all nodes and sets global
353 | | ... | variables used in test cases based on interface model provided as an
354 | | ... | argument. Initializes traffic generator.
355 | | ... | Then it configures crypto device and kernel module on all DUTs.
356 | | ...
357 | | ... | *Arguments:*
358 | | ... | - topology_type - Topology type. Type: string
359 | | ... | - nic_model - Interface model. Type: string
360 | | ...
361 | | ... | *Example:*
362 | | ...
363 | | ... | \| Set up IPSec performance test suite \| L2 \
364 | | ... | \| Intel-X520-DA2 \|
365 | | ...
366 | | [Arguments] | ${topology_type} | ${nic_model}
367 | | ...
368 | | Set up 3-node performance topology with DUT's NIC model
369 | | ... | ${topology_type} | ${nic_model}
370 | | Configure crypto device on all DUTs | force_init=${True}
371 | | Configure kernel module on all DUTs | igb_uio | force_load=${True}
372
373 # Suite teardowns
374
375 | Tear down 3-node performance topology
376 | | [Documentation]
377 | | ... | Suite teardown phase with traffic generator teardown.
378 | | ...
379 | | Teardown traffic generator | ${tg}
380
381 | Tear down 3-node performance topology with LXC
382 | | [Documentation]
383 | | ... | Suite teardown phase with traffic generator teardown and LXC destroy.
384 | | ...
385 | | Teardown traffic generator | ${tg}
386 | | Destroy '${lxc_count}' LXC containers on all DUT nodes
387
388 | Tear down 2-node performance topology
389 | | [Documentation]
390 | | ... | Suite teardown phase with traffic generator teardown.
391 | | ...
392 | | Teardown traffic generator | ${tg}
393
394 | Tear down 2-node performance topology with LXC
395 | | [Documentation]
396 | | ... | Suite teardown phase with traffic generator teardown and LXC destroy.
397 | | ...
398 | | Teardown traffic generator | ${tg}
399 | | Destroy '${lxc_count}' LXC containers on all DUT nodes
400
401 # Tests setups
402
403 | Set up performance test
404 | | [Documentation] | Common test setup for performance tests.
405 | | ...
406 | | Reset VAT History On All DUTs | ${nodes}
407 | | Create base startup configuration of VPP on all DUTs
408
409 # Tests teardowns
410
411 | Tear down performance discovery test
412 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
413 | | ... | tests.
414 | | ...
415 | | ... | *Arguments:*
416 | | ... | - rate - Rate for sending packets. Type: string
417 | | ... | - framesize - L2 Frame Size [B]. Type: integer
418 | | ... | - topology_type - Topology type. Type: string
419 | | ...
420 | | ... | *Example:*
421 | | ...
422 | | ... | \| Tear down performance discovery test \| 4.0mpps \| 64 \
423 | | ... | \| 3-node-IPv4 \|
424 | | ...
425 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
426 | | ...
427 | | Show VAT History On All DUTs | ${nodes}
428 | | Show statistics on all DUTs
429 | | Run Keyword If Test Failed
430 | | ... | Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
431 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
432
433 | Tear down performance ndrchk test
434 | | [Documentation] | Common test teardown for ndrchk performance tests.
435 | | ...
436 | | Show VAT History On All DUTs | ${nodes}
437 | | Show statistics on all DUTs
438
439 | Tear down performance pdrchk test
440 | | [Documentation] | Common test teardown for pdrchk performance tests.
441 | | ...
442 | | Show VAT History On All DUTs | ${nodes}
443 | | Show statistics on all DUTs
444
445 | Tear down performance test with vhost and VM with dpdk-testpmd
446 | | [Documentation] | Common test teardown for performance tests which use
447 | | ... | vhost(s) and VM(s) with dpdk-testpmd.
448 | | ...
449 | | ... | *Arguments:*
450 | | ... | - rate - Rate for sending packets. Type: string
451 | | ... | - framesize - L2 Frame Size [B]. Type: integer
452 | | ... | - topology_type - Topology type. Type: string
453 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
454 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
455 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
456 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
457 | | ...
458 | | ... | *Example:*
459 | | ...
460 | | ... | \| Tear down performance test with vhost and VM with dpdk-testpmd \
461 | | ... | \| 4.0mpps \| 64 \| 3-node-IPv4 \| ${node['DUT1']} \| ${dut_vm_refs} \
462 | | ... | \| ${node['DUT2']} \| ${dut_vm_refs} \|
463 | | ...
464 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
465 | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
466 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
467 | | ...
468 | | Show VAT History On All DUTs | ${nodes}
469 | | Show VPP vhost on all DUTs
470 | | Show statistics on all DUTs
471 | | Run Keyword If Test Failed
472 | | ... | Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
473 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
474 | | Run keyword unless | ${dut1_node}==${None}
475 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
476 | | Run keyword unless | ${dut2_node}==${None}
477 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
478
479 | Tear down performance pdrchk test with vhost and VM with dpdk-testpmd
480 | | [Documentation] | Common test teardown for performance pdrchk tests which \
481 | | ... | use vhost(s) and VM(s) with dpdk-testpmd.
482 | | ...
483 | | ... | *Arguments:*
484 | | ... | - rate - Rate for sending packets. Type: string
485 | | ... | - framesize - L2 Frame Size [B]. Type: integer
486 | | ... | - topology_type - Topology type. Type: string
487 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
488 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
489 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
490 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
491 | | ...
492 | | ... | *Example:*
493 | | ...
494 | | ... | \| Tear down performance pdrchk test with vhost and VM with \
495 | | ... | dpdk-testpmd \| 4.0mpps \| 64 \| 3-node-IPv4 \| ${node['DUT1']} \
496 | | ... | \| ${dut_vm_refs} \| ${node['DUT2']} \| ${dut_vm_refs} \|
497 | | ...
498 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
499 | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
500 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
501 | | ...
502 | | Show VAT History On All DUTs | ${nodes}
503 | | Show VPP vhost on all DUTs
504 | | Show statistics on all DUTs
505 | | Run keyword unless | ${dut1_node}==${None}
506 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
507 | | Run keyword unless | ${dut2_node}==${None}
508 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
509
510 | Tear down DPDK 3-node performance topology
511 | | [Documentation]
512 | | ... | Suite teardown phase with traffic generator teardown.
513 | | ... | Cleanup DPDK test environment.
514 | | ...
515 | | Teardown traffic generator | ${tg}
516 | | Cleanup DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
517 | | Cleanup DPDK Environment | ${dut2} | ${dut2_if1} | ${dut2_if2}
518
519 | Tear down DPDK 2-node performance topology
520 | | [Documentation]
521 | | ... | Suite teardown phase with traffic generator teardown.
522 | | ... | Cleanup DPDK test environment.
523 | | ...
524 | | Teardown traffic generator | ${tg}
525 | | Cleanup DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
526
527 | Tear down performance discovery test with SNAT
528 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
529 | | ... | tests with SNAT feature used.
530 | | ...
531 | | ... | *Arguments:*
532 | | ... | - rate - Rate for sending packets. Type: string
533 | | ... | - framesize - L2 Frame Size [B]. Type: integer
534 | | ... | - topology_type - Topology type. Type: string
535 | | ...
536 | | ... | *Example:*
537 | | ...
538 | | ... | \| Tear down performance discovery test with SNAT \| 4.0mpps \| 64 \
539 | | ... | \| ${traffic_profile} \|
540 | | ...
541 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
542 | | ...
543 | | Tear down performance discovery test | ${rate}pps | ${framesize}
544 | | ... | ${traffic_profile}
545 | | Show SNAT verbose | ${dut1}
546 | | Show SNAT verbose | ${dut2}