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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
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
25 # Keywords used in setups and teardowns
27 | Set variables in 2-node circular topology
29 | | ... | Compute path for testing on two given nodes in circular
30 | | ... | topology and set corresponding suite variables.
32 | | ... | _NOTE:_ This KW sets following suite variables:
33 | | ... | - tg - TG node
34 | | ... | - tg_if1 - 1st TG interface towards DUT.
35 | | ... | - tg_if2 - 2nd TG interface towards DUT.
36 | | ... | - dut1 - DUT1 node
37 | | ... | - dut1_if1 - 1st DUT interface towards TG.
38 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
40 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
41 | | Compute Path | always_same_link=${FALSE}
42 | | ${tg_if1} | ${tg}= | First Interface
43 | | ${dut1_if1} | ${dut1}= | First Ingress Interface
44 | | ${dut1_if2} | ${dut1}= | Last Egress Interface
45 | | ${tg_if2} | ${tg}= | Last Interface
46 | | Set Suite Variable | ${tg}
47 | | Set Suite Variable | ${tg_if1}
48 | | Set Suite Variable | ${tg_if2}
49 | | Set Suite Variable | ${dut1}
50 | | Set Suite Variable | ${dut1_if1}
51 | | Set Suite Variable | ${dut1_if2}
53 | Set variables in 3-node circular topology
55 | | ... | Compute path for testing on three given nodes in circular
56 | | ... | topology and set corresponding suite variables.
58 | | ... | _NOTE:_ This KW sets following suite variables:
59 | | ... | - tg - TG node
60 | | ... | - tg_if1 - TG interface towards DUT1.
61 | | ... | - tg_if2 - TG interface towards DUT2.
62 | | ... | - dut1 - DUT1 node
63 | | ... | - dut1_if1 - DUT1 interface towards TG.
64 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
65 | | ... | - dut2 - DUT2 node
66 | | ... | - dut2_if1 - DUT2 interface towards DUT1.
67 | | ... | - dut2_if2 - DUT2 interface towards TG.
69 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
70 | | ... | ${nodes['TG']}
72 | | ${tg_if1} | ${tg}= | Next Interface
73 | | ${dut1_if1} | ${dut1}= | Next Interface
74 | | ${dut1_if2} | ${dut1}= | Next Interface
75 | | ${dut2_if1} | ${dut2}= | Next Interface
76 | | ${dut2_if2} | ${dut2}= | Next Interface
77 | | ${tg_if2} | ${tg}= | Next Interface
78 | | Set Suite Variable | ${tg}
79 | | Set Suite Variable | ${tg_if1}
80 | | Set Suite Variable | ${tg_if2}
81 | | Set Suite Variable | ${dut1}
82 | | Set Suite Variable | ${dut1_if1}
83 | | Set Suite Variable | ${dut1_if2}
84 | | Set Suite Variable | ${dut2}
85 | | Set Suite Variable | ${dut2_if1}
86 | | Set Suite Variable | ${dut2_if2}
88 | Set variables in 2-node circular topology with DUT interface model
90 | | ... | Compute path for testing on two given nodes in circular topology
91 | | ... | based on interface model provided as an argument and set
92 | | ... | corresponding suite variables.
94 | | ... | *Arguments:*
95 | | ... | - iface_model - Interface model. Type: string
97 | | ... | _NOTE:_ This KW sets following suite variables:
98 | | ... | - tg - TG node
99 | | ... | - tg_if1 - 1st TG interface towards DUT.
100 | | ... | - tg_if2 - 2nd TG interface towards DUT.
101 | | ... | - dut1 - DUT1 node
102 | | ... | - dut1_if1 - 1st DUT interface towards TG.
103 | | ... | - dut1_if2 - 2nd DUT interface towards TG.
107 | | ... | \| Set variables in 2-node circular topology with DUT interface model\
108 | | ... | \| Intel-X520-DA2 \|
110 | | [Arguments] | ${iface_model}
112 | | ${iface_model_list}= | Create list | ${iface_model}
113 | | Append Node | ${nodes['TG']}
114 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
115 | | Append Node | ${nodes['TG']}
116 | | Compute Path | always_same_link=${FALSE}
117 | | ${tg_if1} | ${tg}= | First Interface
118 | | ${dut1_if1} | ${dut1}= | First Ingress Interface
119 | | ${dut1_if2} | ${dut1}= | Last Egress Interface
120 | | ${tg_if2} | ${tg}= | Last Interface
121 | | Set Suite Variable | ${tg}
122 | | Set Suite Variable | ${tg_if1}
123 | | Set Suite Variable | ${tg_if2}
124 | | Set Suite Variable | ${dut1}
125 | | Set Suite Variable | ${dut1_if1}
126 | | Set Suite Variable | ${dut1_if2}
128 | Set variables in 3-node circular topology with DUT interface model
130 | | ... | Compute path for testing on three given nodes in circular topology
131 | | ... | based on interface model provided as an argument and set
132 | | ... | corresponding suite variables.
134 | | ... | *Arguments:*
135 | | ... | - iface_model - Interface model. Type: string
137 | | ... | _NOTE:_ This KW sets following suite variables:
138 | | ... | - tg - TG node
139 | | ... | - tg_if1 - TG interface towards DUT1.
140 | | ... | - tg_if2 - TG interface towards DUT2.
141 | | ... | - dut1 - DUT1 node
142 | | ... | - dut1_if1 - DUT1 interface towards TG.
143 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
144 | | ... | - dut2 - DUT2 node
145 | | ... | - dut2_if1 - DUT2 interface towards TG.
146 | | ... | - dut2_if2 - DUT2 interface towards DUT1.
150 | | ... | \| Set variables in 3-node circular topology with DUT interface model\
151 | | ... | \| Intel-X520-DA2 \|
153 | | [Arguments] | ${iface_model}
155 | | ${iface_model_list}= | Create list | ${iface_model}
156 | | Append Node | ${nodes['TG']}
157 | | Append Node | ${nodes['DUT1']} | filter_list=${iface_model_list}
158 | | Append Node | ${nodes['DUT2']} | filter_list=${iface_model_list}
159 | | Append Node | ${nodes['TG']}
161 | | ${tg_if1} | ${tg}= | Next Interface
162 | | ${dut1_if1} | ${dut1}= | Next Interface
163 | | ${dut1_if2} | ${dut1}= | Next Interface
164 | | ${dut2_if1} | ${dut2}= | Next Interface
165 | | ${dut2_if2} | ${dut2}= | Next Interface
166 | | ${tg_if2} | ${tg}= | Next Interface
167 | | Set Suite Variable | ${tg}
168 | | Set Suite Variable | ${tg_if1}
169 | | Set Suite Variable | ${tg_if2}
170 | | Set Suite Variable | ${dut1}
171 | | Set Suite Variable | ${dut1_if1}
172 | | Set Suite Variable | ${dut1_if2}
173 | | Set Suite Variable | ${dut2}
174 | | Set Suite Variable | ${dut2_if1}
175 | | Set Suite Variable | ${dut2_if2}
177 | Tear down guest VM with dpdk-testpmd
179 | | ... | Stop all qemu processes with dpdk-testpmd running on ${dut_node}.
180 | | ... | Argument is dictionary of all qemu nodes running with its names.
181 | | ... | Dpdk-testpmd is stopped gracefully with printing stats.
183 | | ... | *Arguments:*
184 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
185 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
189 | | ... | \| Tear down guest VM with dpdk-testpmd \| ${node['DUT1']} \
190 | | ... | \| ${dut_vm_refs} \|
192 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
193 | | ${vms_number}= | Get Length | ${dut_vm_refs}
194 | | ${index}= | Set Variable | ${0}
195 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
196 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
197 | | | ${index}= | Evaluate | ${index} + 1
198 | | | Dpdk Testpmd Stop | ${vm}
199 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
200 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
201 | | | Run Keyword If | '${index}' == '${vms_number}' | ${vm_name}.Qemu Kill All
205 | | ... | Stop all qemu processes running on ${dut_node}.
206 | | ... | Argument is dictionary of all qemu nodes running with its names.
208 | | ... | *Arguments:*
209 | | ... | - dut_node - Node where to clean qemu. Type: dictionary
210 | | ... | - dut_vm_refs - VM references on node. Type: dictionary
214 | | ... | \| Tear down guest VM \| ${node['DUT1']} \
215 | | ... | \| ${dut_vm_refs} \|
217 | | [Arguments] | ${dut_node} | ${dut_vm_refs}
218 | | ${vms_number}= | Get Length | ${dut_vm_refs}
219 | | ${index}= | Set Variable | ${0}
220 | | :FOR | ${vm_name} | IN | @{dut_vm_refs}
221 | | | ${vm}= | Get From Dictionary | ${dut_vm_refs} | ${vm_name}
222 | | | ${index}= | Evaluate | ${index} + 1
223 | | | Run Keyword | ${vm_name}.Qemu Set Node | ${dut_node}
224 | | | Run Keyword | ${vm_name}.Qemu Clear Socks
225 | | | Run Keyword If | '${index}' == '${vms_number}' | ${vm_name}.Qemu Kill All
229 | Set up 2-node performance topology with DUT's NIC model
231 | | ... | Suite preparation phase that setup default startup configuration of
232 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
233 | | ... | variables used in test cases based on interface model provided as an
234 | | ... | argument. Initializes traffic generator.
236 | | ... | *Arguments:*
237 | | ... | - topology_type - Topology type. Type: string
238 | | ... | - nic_model - Interface model. Type: string
242 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
244 | | [Arguments] | ${topology_type} | ${nic_model}
246 | | Set variables in 2-node circular topology with DUT interface model
247 | | ... | ${nic_model}
248 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
249 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
251 | Set up 2-node-switched performance topology with DUT's NIC model
253 | | ... | Suite preparation phase that setup default startup configuration of
254 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
255 | | ... | variables used in test cases based on interface model provided as an
256 | | ... | argument. Initializes traffic generator.
258 | | ... | *Arguments:*
259 | | ... | - topology_type - Topology type. Type: string
260 | | ... | - nic_model - Interface model. Type: string
261 | | ... | - tg_if1_dest_mac - Interface 1 destination MAC address. Type: string
262 | | ... | - tg_if2_dest_mac - Interface 2 destination MAC address. Type: string
266 | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \
267 | | ... | \| 22:22:33:44:55:66 \| 22:22:33:44:55:55 \|
269 | | [Arguments] | ${topology_type} | ${nic_model} | ${tg_if1_dest_mac}
270 | | ... | ${tg_if2_dest_mac}
272 | | Set variables in 2-node circular topology with DUT interface model
273 | | ... | ${nic_model}
274 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
275 | | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${topology_type}
276 | | ... | ${tg_if1_dest_mac} | ${tg_if2_dest_mac}
278 | Set up 3-node performance topology with DUT's NIC model
280 | | ... | Suite preparation phase that setup default startup configuration of
281 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
282 | | ... | variables used in test cases based on interface model provided as an
283 | | ... | argument. Initializes traffic generator.
285 | | ... | *Arguments:*
286 | | ... | - topology_type - Topology type. Type: string
287 | | ... | - nic_model - Interface model. Type: string
291 | | ... | \| Set up 3-node performance topology with DUT's NIC model \| L2 \
292 | | ... | \| Intel-X520-DA2 \|
294 | | [Arguments] | ${topology_type} | ${nic_model}
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}
301 | Set up DPDK 2-node performance topology with DUT's NIC model
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.
308 | | ... | *Arguments:*
309 | | ... | - topology_type - Topology type. Type: string
310 | | ... | - nic_model - Interface model. Type: string
314 | | ... | \| Set up DPDK 2-node performance topology with DUT's NIC model \
315 | | ... | \| L2 \| Intel-X520-DA2 \|
317 | | [Arguments] | ${topology_type} | ${nic_model}
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}
325 | Set up DPDK 3-node performance topology with DUT's NIC model
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.
332 | | ... | *Arguments:*
333 | | ... | - topology_type - Topology type. Type: string
334 | | ... | - nic_model - Interface model. Type: string
338 | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
340 | | [Arguments] | ${topology_type} | ${nic_model}
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}
349 | Set up IPSec performance test suite
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.
357 | | ... | *Arguments:*
358 | | ... | - topology_type - Topology type. Type: string
359 | | ... | - nic_model - Interface model. Type: string
360 | | ... | - crypto_type - Crypto device type - HW_cryptodev or SW_cryptodev
361 | | ... | (Optional). Type: string, default value: HW_cryptodev
365 | | ... | \| Set up IPSec performance test suite \| L2 \
366 | | ... | \| Intel-X520-DA2 \|
368 | | [Arguments] | ${topology_type} | ${nic_model} | ${crypto_type}=HW_cryptodev
370 | | Set up 3-node performance topology with DUT's NIC model
371 | | ... | ${topology_type} | ${nic_model}
372 | | ${numvfs}= | Set Variable If
373 | | ... | '${crypto_type}' == 'HW_cryptodev' | ${32}
374 | | ... | '${crypto_type}' == 'SW_cryptodev' | ${0}
375 | | Configure crypto device on all DUTs | force_init=${True} | numvfs=${numvfs}
376 | | Run Keyword If | '${crypto_type}' == 'HW_cryptodev'
377 | | ... | Configure kernel module on all DUTs | igb_uio | force_load=${True}
379 | Set up performance topology with containers
381 | | ... | Suite preparation phase that starts containers
383 | | Set Suite Variable | @{container_groups} | @{EMPTY}
384 | | Construct VNF containers on all DUTs
385 | | Acquire all 'VNF' containers
386 | | Create all 'VNF' containers
387 | | Configure VPP in all 'VNF' containers
388 | | Install VPP in all 'VNF' containers
390 | Set up performance test suite with MEMIF
392 | | ... | Append memif_plugin.so to the list of enabled plugins.
394 | | Set Suite Variable | @{plugins_to_enable}
395 | | Append To List | ${plugins_to_enable} | memif_plugin.so
397 | Set up performance test suite with NAT
399 | | ... | Append nat_plugin.so to the list of enabled plugins.
401 | | Set Suite Variable | @{plugins_to_enable}
402 | | Append To List | ${plugins_to_enable} | nat_plugin.so
404 | Set up performance test suite with ACL
406 | | ... | Append acl_plugin.so to the list of enabled plugins.
408 | | Set Suite Variable | @{plugins_to_enable}
409 | | Append To List | ${plugins_to_enable} | acl_plugin.so
411 | Set up performance test suite with Static SRv6 proxy
413 | | ... | Append srv6as_plugin.so to the list of enabled plugins.
415 | | Set Suite Variable | @{plugins_to_enable}
416 | | Append To List | ${plugins_to_enable} | srv6as_plugin.so
418 | Set up performance test suite with Dynamic SRv6 proxy
420 | | ... | Append srv6ad_plugin.so to the list of enabled plugins.
422 | | Set Suite Variable | @{plugins_to_enable}
423 | | Append To List | ${plugins_to_enable} | srv6ad_plugin.so
425 | Set up performance test suite with Masquerading SRv6 proxy
427 | | ... | Append srv6am_plugin.so to the list of enabled plugins.
429 | | Set Suite Variable | @{plugins_to_enable}
430 | | Append To List | ${plugins_to_enable} | srv6am_plugin.so
432 | Set up 3-node performance topology with wrk and DUT's NIC model
434 | | ... | Suite preparation phase that setup default startup configuration of
435 | | ... | VPP on all DUTs. Updates interfaces on all nodes and setup global
436 | | ... | variables used in test cases based on interface model provided as an
437 | | ... | argument. Installs the traffic generator.
439 | | ... | *Arguments:*
440 | | ... | - iface_model - Interface model. Type: string
444 | | ... | \| Set up 3-node performance topology with wrk and DUT's NIC model\
445 | | ... | \| Intel-X520-DA2 \|
447 | | [Arguments] | ${iface_model}
449 | | Set variables in 3-node circular topology with DUT interface model
450 | | ... | ${iface_model}
451 | | Iface update numa node | ${tg}
452 # Make sure TRex is stopped
453 | | ${running}= | Is TRex running | ${tg}
454 | | Run keyword if | ${running}==${True} | Teardown traffic generator | ${tg}
455 | | ${curr_driver}= | Get PCI dev driver | ${tg}
456 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']}
457 | | Run keyword if | '${curr_driver}'!='${None}'
458 | | ... | PCI Driver Unbind | ${tg} |
459 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']}
460 # Bind tg_if1 to driver specified in the topology
461 | | ${driver}= | Get Variable Value | ${tg['interfaces']['${tg_if1}']['driver']}
462 | | PCI Driver Bind | ${tg}
463 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']} | ${driver}
465 | | ${intf_name}= | Get Linux interface name | ${tg}
466 | | ... | ${tg['interfaces']['${tg_if1}']['pci_address']}
467 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.10.1 | 24
468 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.20.1 | 24
469 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.30.1 | 24
470 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.40.1 | 24
471 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.50.1 | 24
472 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.60.1 | 24
473 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.70.1 | 24
474 | | Set Linux interface IP | ${tg} | ${intf_name} | 192.168.80.1 | 24
475 | | Set Linux interface up | ${tg} | ${intf_name}
476 | | Install wrk | ${tg}
480 | Tear down 3-node performance topology
482 | | ... | Suite teardown phase with traffic generator teardown.
484 | | Teardown traffic generator | ${tg}
486 | Tear down 3-node performance topology with container
488 | | ... | Suite teardown phase with traffic generator teardown and container
491 | | Teardown traffic generator | ${tg}
492 | | :FOR | ${group} | IN | @{container_groups}
493 | | | Destroy all '${group}' containers
495 | Tear down 2-node performance topology
497 | | ... | Suite teardown phase with traffic generator teardown.
499 | | Teardown traffic generator | ${tg}
501 | Tear down 2-node performance topology with container
503 | | ... | Suite teardown phase with traffic generator teardown and container
506 | | Teardown traffic generator | ${tg}
507 | | :FOR | ${group} | IN | @{container_groups}
508 | | | Destroy all '${group}' containers
512 | Set up performance test
513 | | [Documentation] | Common test setup for performance tests.
515 | | Reset VAT History On All DUTs | ${nodes}
516 | | Create base startup configuration of VPP on all DUTs
518 | Set up tcp performance test
519 | | [Documentation] | Common test setup for TCP performance tests.
521 | | Reset VAT History On All DUTs | ${nodes}
522 | | Create base startup configuration of VPP for TCP tests on all DUTs
524 | Set up performance test with Ligato Kubernetes
525 | | [Documentation] | Common test setup for performance tests with Ligato \
526 | | ... | Kubernetes.
528 | | Apply Kubernetes resource on all duts | ${nodes} | namespaces/csit.yaml
529 | | Apply Kubernetes resource on all duts | ${nodes} | pods/kafka.yaml
530 | | Apply Kubernetes resource on all duts | ${nodes} | pods/etcdv3.yaml
531 | | Apply Kubernetes resource on all duts | ${nodes}
532 | | ... | configmaps/vswitch-agent-cfg.yaml
533 | | Apply Kubernetes resource on all duts | ${nodes}
534 | | ... | configmaps/vnf-agent-cfg.yaml
535 | | Apply Kubernetes resource on all duts | ${nodes}
536 | | ... | pods/contiv-sfc-controller.yaml
537 | | Apply Kubernetes resource on all duts | ${nodes}
538 | | ... | pods/contiv-vswitch.yaml
542 | Tear down performance discovery test
543 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
546 | | ... | *Arguments:*
547 | | ... | - rate - Rate for sending packets. Type: string
548 | | ... | - framesize - L2 Frame Size [B]. Type: integer
549 | | ... | - topology_type - Topology type. Type: string
553 | | ... | \| Tear down performance discovery test \| 4.0mpps \| 64 \
554 | | ... | \| 3-node-IPv4 \|
556 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
558 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
559 | | Show VAT History On All DUTs | ${nodes}
560 | | Run Keyword If Test Failed
561 | | ... | Set Test Variable | ${pkt_trace} | ${True}
562 | | Run Keyword If Test Failed
563 | | ... | Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
564 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
566 | Tear down performance ndrchk test
567 | | [Documentation] | Common test teardown for ndrchk performance tests.
569 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
570 | | Show VAT History On All DUTs | ${nodes}
572 | Tear down performance pdrchk test
573 | | [Documentation] | Common test teardown for pdrchk performance tests.
575 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
576 | | Show VAT History On All DUTs | ${nodes}
578 | Tear down performance mrr test
579 | | [Documentation] | Common test teardown for max-received-rate performance
582 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
583 | | Show VAT History On All DUTs | ${nodes}
585 | Tear down performance test with wrk
586 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
591 | | ... | \| Tear down performance test with wrk \|
593 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
594 | | Show VAT History On All DUTs | ${nodes}
595 | | Show statistics on all DUTs | ${nodes}
597 | Tear down performance test with vhost and VM with dpdk-testpmd
598 | | [Documentation] | Common test teardown for performance tests which use
599 | | ... | vhost(s) and VM(s) with dpdk-testpmd.
601 | | ... | *Arguments:*
602 | | ... | - rate - Rate for sending packets. Type: string
603 | | ... | - framesize - L2 Frame Size [B]. Type: integer
604 | | ... | - topology_type - Topology type. Type: string
605 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
606 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
607 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
608 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
612 | | ... | \| Tear down performance test with vhost and VM with dpdk-testpmd \
613 | | ... | \| 4.0mpps \| 64 \| 3-node-IPv4 \| ${node['DUT1']} \| ${dut_vm_refs} \
614 | | ... | \| ${node['DUT2']} \| ${dut_vm_refs} \|
616 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
617 | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
618 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
620 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
621 | | Show VAT History On All DUTs | ${nodes}
622 | | Show VPP vhost on all DUTs | ${nodes}
623 | | Show statistics on all DUTs | ${nodes}
624 | | Run Keyword If Test Failed
625 | | ... | Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
626 | | ... | ${framesize} | ${topology_type} | fail_on_loss=${False}
627 | | Run keyword unless | ${dut1_node}==${None}
628 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
629 | | Run keyword unless | ${dut2_node}==${None}
630 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
632 | Tear down performance pdrchk test with vhost and VM with dpdk-testpmd
633 | | [Documentation] | Common test teardown for performance pdrchk tests which \
634 | | ... | use vhost(s) and VM(s) with dpdk-testpmd.
636 | | ... | *Arguments:*
637 | | ... | - rate - Rate for sending packets. Type: string
638 | | ... | - framesize - L2 Frame Size [B]. Type: integer
639 | | ... | - topology_type - Topology type. Type: string
640 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
641 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
642 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
643 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
647 | | ... | \| Tear down performance pdrchk test with vhost and VM with \
648 | | ... | dpdk-testpmd \| 4.0mpps \| 64 \| 3-node-IPv4 \| ${node['DUT1']} \
649 | | ... | \| ${dut_vm_refs} \| ${node['DUT2']} \| ${dut_vm_refs} \|
651 | | [Arguments] | ${rate} | ${framesize} | ${topology_type}
652 | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
653 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
655 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
656 | | Show VAT History On All DUTs | ${nodes}
657 | | Show VPP vhost on all DUTs | ${nodes}
658 | | Show statistics on all DUTs | ${nodes}
659 | | Run keyword unless | ${dut1_node}==${None}
660 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
661 | | Run keyword unless | ${dut2_node}==${None}
662 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
664 | Tear down performance mrr test with vhost and VM with dpdk-testpmd
665 | | [Documentation] | Common test teardown for performance mrr tests which \
666 | | ... | use vhost(s) and VM(s) with dpdk-testpmd.
668 | | ... | *Arguments:*
669 | | ... | - dut1_node - Node where to clean qemu. Type: dictionary
670 | | ... | - dut1_vm_refs - VM references on node. Type: dictionary
671 | | ... | - dut2_node - Node where to clean qemu. Type: dictionary
672 | | ... | - dut2_vm_refs - VM references on node. Type: dictionary
676 | | ... | \| Tear down performance mrr test with vhost and VM with \
677 | | ... | dpdk-testpmd \| ${node['DUT1']} \| ${dut_vm_refs} \| ${node['DUT2']} \
678 | | ... | \| ${dut_vm_refs} \|
680 | | [Arguments] | ${dut1_node}=${None} | ${dut1_vm_refs}=${None}
681 | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None}
683 | | Remove All Added Ports On All DUTs From Topology | ${nodes}
684 | | Show VAT History On All DUTs | ${nodes}
685 | | Show VPP vhost on all DUTs | ${nodes}
686 | | Run keyword unless | ${dut1_node}==${None}
687 | | ... | Tear down guest VM with dpdk-testpmd | ${dut1} | ${dut1_vm_refs}
688 | | Run keyword unless | ${dut2_node}==${None}
689 | | ... | Tear down guest VM with dpdk-testpmd | ${dut2} | ${dut2_vm_refs}
691 | Tear down DPDK 3-node performance topology
693 | | ... | Suite teardown phase with traffic generator teardown.
694 | | ... | Cleanup DPDK test environment.
696 | | Teardown traffic generator | ${tg}
697 | | Cleanup DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
698 | | Cleanup DPDK Environment | ${dut2} | ${dut2_if1} | ${dut2_if2}
700 | Tear down DPDK 2-node performance topology
702 | | ... | Suite teardown phase with traffic generator teardown.
703 | | ... | Cleanup DPDK test environment.
705 | | Teardown traffic generator | ${tg}
706 | | Cleanup DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2}
708 | Tear down performance discovery test with NAT
709 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
710 | | ... | tests with NAT feature used.
712 | | ... | *Arguments:*
713 | | ... | - rate - Rate for sending packets. Type: string
714 | | ... | - framesize - L2 Frame Size [B]. Type: integer
715 | | ... | - traffic_profile - Traffic profile. Type: string
719 | | ... | \| Tear down performance discovery test with NAT \| 100000pps \| 64 \
720 | | ... | \| ${traffic_profile} \|
722 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
724 | | Tear down performance discovery test | ${rate} | ${framesize}
725 | | ... | ${traffic_profile}
726 | | Show NAT verbose | ${dut1}
727 | | Show NAT verbose | ${dut2}
729 | Tear down performance test with ACL
730 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
731 | | ... | tests with ACL feature used.
733 | | ... | *Arguments:*
734 | | ... | - rate - Rate for sending packets. Type: string
735 | | ... | - framesize - L2 Frame Size [B]. Type: integer
736 | | ... | - traffic_profile - Traffic profile. Type: string
740 | | ... | \| Tear down performance test with ACL \| 100000pps \| 64 \
741 | | ... | \| ${traffic_profile} \|
743 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
745 | | Tear down performance discovery test | ${rate} | ${framesize}
746 | | ... | ${traffic_profile}
747 | | Vpp Log Plugin Acl Settings | ${dut1}
748 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
749 | | ... | Vpp Log Plugin Acl Interface Assignment | ${dut1}
751 | Tear down performance test with MACIP ACL
752 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
753 | | ... | tests with MACIP ACL feature used.
755 | | ... | *Arguments:*
756 | | ... | - rate - Rate for sending packets. Type: string
757 | | ... | - framesize - L2 Frame Size [B]. Type: integer
758 | | ... | - traffic_profile - Traffic profile. Type: string
762 | | ... | \| Tear down performance test with MACIP ACL \| 100000pps \| 64 \
763 | | ... | \| ${traffic_profile} \|
765 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
767 | | Tear down performance discovery test | ${rate} | ${framesize}
768 | | ... | ${traffic_profile}
769 | | Run Keyword If Test Failed | Run Keyword And Ignore Error
770 | | ... | Vpp Log Macip Acl Settings | ${dut1}
771 | | Run Keyword And Ignore Error
772 | | ... | Vpp Log Macip Acl Interface Assignment | ${dut1}
774 | Tear down performance test with Ligato Kubernetes
775 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
776 | | ... | tests with Ligato Kubernetes.
778 | | Run Keyword If Test Failed
779 | | ... | Get Kubernetes logs on all DUTs | ${nodes} | csit
780 | | Run Keyword If Test Failed
781 | | ... | Describe Kubernetes resource on all DUTs | ${nodes} | csit
782 | | Delete Kubernetes resource on all DUTs | ${nodes} | csit
784 | Tear down performance test with SRv6 with encapsulation
785 | | [Documentation] | Common test teardown for ndrdisc and pdrdisc performance \
786 | | ... | tests with SRv6 with encapsulation feature used.
788 | | ... | *Arguments:*
789 | | ... | - rate - Rate for sending packets. Type: string
790 | | ... | - framesize - L2 Frame Size [B]. Type: integer
791 | | ... | - traffic_profile - Traffic profile. Type: string
795 | | ... | \| Tear down performance test with MACIP ACL \| 100000pps \| 64 \
796 | | ... | \| ${traffic_profile} \|
798 | | [Arguments] | ${rate} | ${framesize} | ${traffic_profile}
800 | | Tear down performance discovery test | ${rate} | ${framesize}
801 | | ... | ${traffic_profile}
802 | | Run Keyword If Test Failed | Show SR Policies on all DUTs | ${nodes}
803 | | Run Keyword If Test Failed
804 | | ... | Show SR Steering Policies on all DUTs | ${nodes}
805 | | Run Keyword If Test Failed | Show SR LocalSIDs on all DUTs | ${nodes}