diff options
Diffstat (limited to 'tests/vpp/device/ip4')
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-adlalwlistbase-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4-ip4base-adlalwlistbase-dev.robot) | 42 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-adlblklistbase-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4-ip4base-adlblklistbase-dev.robot) | 42 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-iacldstbase-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4-ip4base-iacldstbase-dev.robot) | 44 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-ipolicemarkbase-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4-ip4base-ipolicemarkbase-dev.robot) | 43 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethipv4-ip4base-dev.robot) | 44 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44det-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4tcp-nat44det-dev.robot) | 52 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4tcp-nat44ed-dev.robot) | 56 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4udp-nat44det-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4udp-nat44det-dev.robot) | 52 | ||||
-rw-r--r-- | tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-scapy.robot (renamed from tests/vpp/device/ip4/eth2p-ethip4udp-nat44ed-dev.robot) | 56 | ||||
-rwxr-xr-x | tests/vpp/device/ip4/regenerate_testcases.py | 18 |
10 files changed, 262 insertions, 187 deletions
diff --git a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-adlalwlistbase-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-adlalwlistbase-scapy.robot index b839bed5a3..2dfa607276 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-adlalwlistbase-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-adlalwlistbase-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -15,44 +15,50 @@ | Resource | resources/libraries/robot/shared/default.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | ADLALWLIST | DRV_VFIO_PCI +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | ADLALWLIST | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 | ... | ethip4-ip4base-adlalwlistbase | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace +| Test Teardown | Tear down test | packet_trace | telemetry | | Test Template | Local Template | -| Documentation | *ADL Security IPv4 allowlist test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology \ +| Documentation | **ADL Security IPv4 allowlist test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4 on all links. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and \ -| ... | static routes. ADL security allowlist are applied on DUT1 ingress \ +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 on all links. +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and static routes. ADL security allowlist are applied on DUT1 ingress \ | ... | interface from TG. -| ... | *[Ver] TG verification:* Test IPv4 packets are sent in one direction \ -| ... | by TG on link to DUT1; on receive TG verifies packets for correctness \ -| ... | and drops as applicable. -| ... | *[Ref] Applicable standard specifications:* +| ... | +| ... | - **[Ver] TG verification:** Test IPv4 packets are sent in one \ +| ... | direction by TG on link to DUT1; on receive TG verifies packets for \ +| ... | correctness and drops as applicable. +| ... | +| ... | - **[Ref] Applicable standard specifications:** *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so | adl_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | adl_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 | ${nic_pfs}= | 2 | ${nic_vfs}= | 0 | ${overhead}= | ${0} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | [Documentation] -| | ... | [Ver] Make TG send IPv4 on its interface to DUT1; \ +| | ... | - **[Ver]** Make TG send IPv4 on its interface to DUT1; \ | | ... | verify received IPv4 pkts are correct. | | | | ... | *Arguments:* @@ -81,6 +87,6 @@ | | ... | ${TG_pf2}[0] | ${DUT1_vf2_mac}[0] | ${TG_pf2_mac}[0] *** Test Cases *** -| 64B-ethip4-ip4base-adlalwlistbase-dev -| | [Tags] | 64B +| 64B-0c-ethip4-ip4base-adlalwlistbase-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-adlblklistbase-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-adlblklistbase-scapy.robot index bd35ccd623..2ebb0e67a9 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-adlblklistbase-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-adlblklistbase-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -15,44 +15,50 @@ | Resource | resources/libraries/robot/shared/default.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | ADLBLKLIST | DRV_VFIO_PCI +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | ADLBLKLIST | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 | ... | ethip4-ip4base-adlblklistbase | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace +| Test Teardown | Tear down test | packet_trace | telemetry | | Test Template | Local Template | -| Documentation | *ADL Security IPv4 allowlist test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology \ +| Documentation | **ADL Security IPv4 allowlist test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4 on all links. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and \ -| ... | static routes. ADL security allowlist are applied on DUT1 ingress \ +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 on all links. +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and static routes. ADL security allowlist are applied on DUT1 ingress \ | ... | interface from TG. -| ... | *[Ver] TG verification:* Test IPv4 packets are sent in one direction \ -| ... | by TG on link to DUT1; on receive TG verifies packets for correctness \ -| ... | and drops as applicable. -| ... | *[Ref] Applicable standard specifications:* +| ... | +| ... | - **[Ver] TG verification:** Test IPv4 packets are sent in one \ +| ... | direction by TG on link to DUT1; on receive TG verifies packets for \ +| ... | correctness and drops as applicable. +| ... | +| ... | - **[Ref] Applicable standard specifications:** *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so | adl_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | adl_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 | ${nic_pfs}= | 2 | ${nic_vfs}= | 0 | ${overhead}= | ${0} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | [Documentation] -| | ... | [Ver] Make TG send IPv4 on its interface to DUT1; \ +| | ... | - **[Ver]** Make TG send IPv4 on its interface to DUT1; \ | | ... | verify received IPv4 pkts are correct. | | | | ... | *Arguments:* @@ -81,6 +87,6 @@ | | ... | ${TG_pf2}[0] | ${DUT1_vf2_mac}[0] | ${TG_pf2_mac}[0] *** Test Cases *** -| 64B-ethip4-ip4base-adlblklistbase-dev -| | [Tags] | 64B +| 64B-0c-ethip4-ip4base-adlblklistbase-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-iacldstbase-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-iacldstbase-scapy.robot index b34ad495ee..1c39e866f8 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-iacldstbase-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-iacldstbase-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -15,44 +15,50 @@ | Resource | resources/libraries/robot/shared/default.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | IACLDST | DRV_VFIO_PCI +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | IACLDST | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 | ... | ethip4-ip4base-iacldstbase | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace | classify +| Test Teardown | Tear down test | packet_trace | telemetry | classify | | Test Template | Local Template | -| Documentation | *IPv4 iAcl whitelist test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology\ +| Documentation | **IPv4 iAcl whitelist test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4 on all links. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and \ -| ... | static routes. IPv4 iAcl security whitelist is applied on DUT1 ingress \ -| ... | interface from TG. -| ... | *[Ver] TG verification:* Test IPv4 packets are sent in one direction \ -| ... | by TG on link to DUT1; on receive TG verifies packets for correctness \ -| ... | and drops as applicable. -| ... | *[Ref] Applicable standard specifications:* +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 on all links. +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and static routes. IPv4 iAcl security whitelist is applied on DUT1 \ +| ... | ingress interface from TG. +| ... | +| ... | - **[Ver] TG verification:** Test IPv4 packets are sent in one \ +| ... | direction by TG on link to DUT1; on receive TG verifies packets for \ +| ... | correctness and drops as applicable. +| ... | +| ... | - **[Ref] Applicable standard specifications:** *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 | ${nic_pfs}= | 2 | ${nic_vfs}= | 0 | ${overhead}= | ${0} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | [Documentation] -| | ... | [Ver] Make TG send IPv4 on its interface to DUT1; \ +| | ... | - **[Ver]** Make TG send IPv4 on its interface to DUT1; \ | | ... | verify received IPv4 pkts are correct. | | | | ... | *Arguments:* @@ -85,6 +91,6 @@ | | ... | ${TG_pf2}[0] | ${DUT1_vf2_mac}[0] | ${TG_pf2_mac}[0] *** Test Cases *** -| 64B-ethip4-ip4base-iacldstbase-dev -| | [Tags] | 64B +| 64B-0c-ethip4-ip4base-iacldstbase-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-ipolicemarkbase-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-ipolicemarkbase-scapy.robot index 5c1122211c..2899393b9e 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4-ip4base-ipolicemarkbase-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-ipolicemarkbase-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -15,32 +15,37 @@ | Resource | resources/libraries/robot/shared/default.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | POLICE_MARK | DRV_VFIO_PCI +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | POLICE_MARK | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 | ... | ethip4-ip4base-ipolicemarkbase | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace | classify +| Test Teardown | Tear down test | packet_trace | telemetry | classify | | Test Template | Local Template | -| Documentation | *IPv4 policer test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology\ +| Documentation | **IPv4 policer test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4 on all links. -| ... | *[Cfg] DUT configuration:* On DUT1 configure interfaces IPv4 adresses, \ -| ... | and static ARP record on the second interface. On DUT1 configure 2R3C \ -| ... | color-aware policer on the first interface. -| ... | *[Ver] TG verification:* Test packet is sent from TG on the first link \ -| ... | to DUT1. Packet is received on TG on the second link from DUT1. -| ... | *[Ref] Applicable standard specifications:* RFC2474, RFC2697, RFC2698. +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 on all links. +| ... | +| ... | - **[Cfg] DUT configuration:** On DUT1 configure interfaces IPv4 \ +| ... | addresses and static ARP record on the second interface. On DUT1 \ +| ... | configure 2R3C color-aware policer on the first interface. +| ... | +| ... | - **[Ver] TG verification:** Test packet is sent from TG on the first \ +| ... | link to DUT1. Packet is received on TG on the second link from DUT1. +| ... | +| ... | - **[Ref] Applicable standard specifications:** RFC2474, RFC2697, \ +| ... | RFC2698. *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 @@ -50,11 +55,13 @@ | ${cir}= | ${100} | ${eir}= | ${150} | ${dscp}= | AF22 +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | [Documentation] -| | ... | [Ver] Test packet is sent from TG on the first link to DUT1. \ +| | ... | - **[Ver]** Test packet is sent from TG on the first link to DUT1. \ | | ... | Packet is received on TG on the second link from DUT1. | | | | ... | *Arguments:* @@ -80,6 +87,6 @@ | | ... | 10.10.10.2 | 20.20.20.2 *** Test Cases *** -| 64B-ethip4-ip4base-ipolicemarkbase-dev -| | [Tags] | 64B +| 64B-0c-ethip4-ip4base-ipolicemarkbase-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethipv4-ip4base-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-scapy.robot index 8e4997ab67..399f780940 100644 --- a/tests/vpp/device/ip4/eth2p-ethipv4-ip4base-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4-ip4base-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -15,44 +15,52 @@ | Resource | resources/libraries/robot/shared/default.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | BASE | IP4BASE | DRV_VFIO_PCI +| ... | NIC_Intel-X710 | ETH | IP4FWD | BASE | IP4BASE | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 -| ... | ethipv4-ip4base +| ... | ethip4-ip4base | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace +| Test Teardown | Tear down test | packet_trace | telemetry | | Test Template | Local Template | -| Documentation | *IPv4 routing test cases* +| Documentation | **IPv4 routing test cases** | ... -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology \ +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing on both \ +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 for IPv4 routing on both \ | ... | links. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and \ -| ... | two static IPv4 /24 route entries. -| ... | *[Ver] TG verification:* Test IPv4 packet with IP protocol=61 is sent \ -| ... | in one direction by TG on links to DUT1; on receive TG verifies packet \ -| ... | for correctness and their IPv4 src-addr, dst-addr and MAC addresses. -| ... | *[Ref] Applicable standard specifications:* RFC791, RFC826, RFC792 +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and two static IPv4 /24 route entries. +| ... | +| ... | - **[Ver] TG verification:** Test IPv4 packet with IP protocol=61 is \ +| ... | sent in one direction by TG on links to DUT1; on receive TG verifies \ +| ... | packet for correctness and their IPv4 src-addr, dst-addr and MAC \ +| ... | addresses. +| ... | +| ... | - **[Ref] Applicable standard specifications:** RFC791, RFC826, RFC792 *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 | ${nic_pfs}= | 2 | ${nic_vfs}= | 0 | ${overhead}= | ${0} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | [Documentation] -| | ... | [Ver] Make TG send IPv4 packet routed over DUT1 interfaces.\ +| | ... | - **[Ver]** Make TG send IPv4 packet routed over DUT1 interfaces. \ | | ... | Make TG verify IPv4 packet is correct. | | | | ... | *Arguments:* @@ -78,6 +86,6 @@ | | ... | ${TG_pf2}[0] | ${DUT1_vf2_mac}[0] | ${TG_pf2_mac}[0] *** Test Cases *** -| 64B-ethipv4-ip4base-dev -| | [Tags] | 64B +| 64B-0c-ethip4-ip4base-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethip4tcp-nat44det-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44det-scapy.robot index d564c8c398..bc641af789 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4tcp-nat44det-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44det-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -17,36 +17,40 @@ | Resource | resources/libraries/robot/shared/traffic.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | NAT44 | NAT44_DETERMINISTIC +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | NAT44 | NAT44_DETERMINISTIC | ... | BASE | TCP | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 -| ... | ethip4tcp-nat44det-dev +| ... | ethip4tcp-nat44det | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace | det44 +| Test Teardown | Tear down test | packet_trace | telemetry | det44 | | Test Template | Local Template | -| Documentation | *NAT44 deterministic mode test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology +| Documentation | **NAT44 deterministic mode test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4-TCP for IPv4 routing. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and -| ... | one static IPv4 /${dest_mask} route entries. -| ... | DUT1 is tested with ${nic_name}.\ -| ... | *[Ver] TG verification:* Eth-IPv4-TCP packet is sent from TG to DUT1 in\ -| ... | one direction. Packet is received and verified for correctness on TG.\ -| ... | Then Eth-IPv4-TCP packet is sent from TG in opposite direction. Packet\ -| ... | is received and verified for correctness on TG. -| ... | *[Ref] Applicable standard specifications:* RFC791, RFC793, RFC3022, -| ... | RFC4787. +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4-TCP for IPv4 routing. +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and one static IPv4 /${dest_mask} route entries. \ +| ... | DUT1 is tested with ${nic_name}. +| ... | +| ... | - **[Ver] TG verification:** Eth-IPv4-TCP packet is sent from TG to \ +| ... | DUT1 in one direction. Packet is received and verified for correctness \ +| ... | on TG. Then Eth-IPv4-TCP packet is sent from TG in opposite direction. \ +| ... | Packet is received and verified for correctness on TG. +| ... | +| ... | - **[Ref] Applicable standard specifications:** RFC791, RFC793, \ +| ... | RFC3022 and RFC4787. *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so | det44_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | det44_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 @@ -74,13 +78,15 @@ | ${in_mask}= | ${32} | ${out_net}= | 200.0.0.0 | ${out_mask}= | ${32} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | | | [Documentation] -| | ... | [Cfg] DUT runs NAT44 ${nat_mode} configuration. -| | ... | [Ver] Make TG send IPv4 packet routed over DUT1 interfaces.\ +| | ... | - **[Cfg]** DUT runs NAT44 ${nat_mode} configuration. +| | ... | - **[Ver]** Make TG send IPv4 packet routed over DUT1 interfaces. \ | | ... | Make TG verify IPv4 packet is correct. | | | | ... | *Arguments:* @@ -106,6 +112,6 @@ | | ... | ${protocol} | ${src_port_in} | ${dst_port} *** Test Cases *** -| 64B-ethip4tcp-nat44det-dev -| | [Tags] | 64B +| 64B-0c-ethip4tcp-nat44det-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethip4tcp-nat44ed-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-scapy.robot index c72fae1870..2f6ed76f36 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4tcp-nat44ed-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -17,37 +17,41 @@ | Resource | resources/libraries/robot/shared/traffic.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | NAT44 | NAT44_ENDPOINT_DEPENDENT -| ... | BASE | TCP | DRV_VFIO_PCI +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | NAT44 +| ... | NAT44_ENDPOINT_DEPENDENT | BASE | TCP | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 -| ... | ethip4tcp-nat44ed-dev +| ... | ethip4tcp-nat44ed | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace | nat-ed +| Test Teardown | Tear down test | packet_trace | telemetry | nat-ed | | Test Template | Local Template | -| Documentation | *Connections per second NAT44 endpoint-dependent mode -| ... | performance test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology +| Documentation | **Connections per second NAT44 endpoint-dependent mode +| ... | performance test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4-TCP for IPv4 routing. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and -| ... | one static IPv4 /18 route entries. -| ... | DUT1 is tested with ${nic_name}.\ -| ... | *[Ver] TG verification:* Eth-IPv4-TCP packet is sent from TG to DUT1 in\ -| ... | one direction. Packet is received and verified for correctness on TG.\ -| ... | Then Eth-IPv4-TCP packet is sent from TG in opposite direction. Packet\ -| ... | is received and verified for correctness on TG. -| ... | *[Ref] Applicable standard specifications:* RFC791, RFC793, RFC3022, -| ... | RFC4787. +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4-TCP for IPv4 routing. +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and one static IPv4 /18 route entries. \ +| ... | DUT1 is tested with ${nic_name}. +| ... | +| ... | - **[Ver] TG verification:** Eth-IPv4-TCP packet is sent from TG to \ +| ... | DUT1 in one direction. Packet is received and verified for correctness \ +| ... | on TG. Then Eth-IPv4-TCP packet is sent from TG in opposite direction. \ +| ... | Packet is received and verified for correctness on TG. +| ... | +| ... | - **[Ref] Applicable standard specifications:** RFC791, RFC793, \ +| ... | RFC3022 and RFC4787. *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so | nat_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | nat_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 @@ -77,13 +81,15 @@ | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.0 | ${out_mask}= | ${32} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | | | [Documentation] -| | ... | [Cfg] DUT runs NAT44 ${nat_mode} configuration. -| | ... | [Ver] Make TG send IPv4 packet routed over DUT1 interfaces.\ +| | ... | - **[Cfg]** DUT runs NAT44 ${nat_mode} configuration. +| | ... | - **[Ver]** Make TG send IPv4 packet routed over DUT1 interfaces. \ | | ... | Make TG verify IPv4 packet is correct. | | | | ... | *Arguments:* @@ -109,6 +115,6 @@ | | ... | ${protocol} | ${src_port_in} | ${dst_port} *** Test Cases *** -| 64B-ethip4tcp-nat44ed-dev -| | [Tags] | 64B +| 64B-0c-ethip4tcp-nat44ed-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethip4udp-nat44det-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4udp-nat44det-scapy.robot index 5803b4e590..56ea25f313 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4udp-nat44det-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4udp-nat44det-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -17,36 +17,40 @@ | Resource | resources/libraries/robot/shared/traffic.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | NAT44 | NAT44_DETERMINISTIC +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | NAT44 | NAT44_DETERMINISTIC | ... | BASE | UDP | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 -| ... | ethip4udp-nat44det-dev +| ... | ethip4udp-nat44det | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace | det44 +| Test Teardown | Tear down test | packet_trace | telemetry | det44 | | Test Template | Local Template | -| Documentation | *NAT44 deterministic mode test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology +| Documentation | **NAT44 deterministic mode test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and -| ... | one static IPv4 /${dest_mask} route entries. -| ... | DUT1 is tested with ${nic_name}.\ -| ... | *[Ver] TG verification:* Eth-IPv4-UDP packet is sent from TG to DUT1 in\ -| ... | one direction. Packet is received and verified for correctness on TG.\ -| ... | Then Eth-IPv4-UDP packet is sent from TG in opposite direction. Packet\ -| ... | is received and verified for correctness on TG. -| ... | *[Ref] Applicable standard specifications:* RFC791, RFC768, RFC3022, -| ... | RFC4787. +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4-UDP for IPv4 routing. +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and one static IPv4 /${dest_mask} route entries. \ +| ... | DUT1 is tested with ${nic_name}. +| ... | +| ... | - **[Ver] TG verification:** Eth-IPv4-UDP packet is sent from TG to \ +| ... | DUT1 in one direction. Packet is received and verified for correctness \ +| ... | on TG. Then Eth-IPv4-UDP packet is sent from TG in opposite direction. \ +| ... | Packet is received and verified for correctness on TG. +| ... | +| ... | - **[Ref] Applicable standard specifications:** RFC791, RFC768, \ +| ... | RFC3022 and RFC4787. *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so | det44_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | det44_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 @@ -74,13 +78,15 @@ | ${in_mask}= | ${32} | ${out_net}= | 200.0.0.0 | ${out_mask}= | ${32} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | | | [Documentation] -| | ... | [Cfg] DUT runs NAT44 ${nat_mode} configuration. -| | ... | [Ver] Make TG send IPv4 packet routed over DUT1 interfaces.\ +| | ... | - **[Cfg]** DUT runs NAT44 ${nat_mode} configuration. +| | ... | - **[Ver]** Make TG send IPv4 packet routed over DUT1 interfaces. \ | | ... | Make TG verify IPv4 packet is correct. | | | | ... | *Arguments:* @@ -106,6 +112,6 @@ | | ... | ${protocol} | ${src_port_in} | ${dst_port} *** Test Cases *** -| 64B-ethip4udp-nat44det-dev -| | [Tags] | 64B +| 64B-0c-ethip4udp-nat44det-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/eth2p-ethip4udp-nat44ed-dev.robot b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-scapy.robot index 18f648f2dc..9c84afabce 100644 --- a/tests/vpp/device/ip4/eth2p-ethip4udp-nat44ed-dev.robot +++ b/tests/vpp/device/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-scapy.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -17,37 +17,41 @@ | Resource | resources/libraries/robot/shared/traffic.robot | | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY -| ... | NIC_Virtual | ETH | IP4FWD | FEATURE | NAT44 | NAT44_ENDPOINT_DEPENDENT -| ... | BASE | UDP | DRV_VFIO_PCI +| ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | NAT44 +| ... | NAT44_ENDPOINT_DEPENDENT | BASE | UDP | DRV_VFIO_PCI | ... | RXQ_SIZE_0 | TXQ_SIZE_0 -| ... | ethip4udp-nat44ed-dev +| ... | ethip4udp-nat44ed | | Suite Setup | Setup suite topology interfaces | scapy | Test Setup | Setup test -| Test Teardown | Tear down test | packet_trace | nat-ed +| Test Teardown | Tear down test | packet_trace | telemetry | nat-ed | | Test Template | Local Template | -| Documentation | *RFC2544: Pkt throughput NAT44 endpoint-dependent mode -| ... | performance test cases* -| -| ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology +| Documentation | **RFC2544: Pkt throughput NAT44 endpoint-dependent mode +| ... | performance test cases** +| ... | +| ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \ | ... | with single links between nodes. -| ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing. -| ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing and -| ... | one static IPv4 /${dest_mask} route entries. -| ... | DUT1 is tested with ${nic_name}.\ -| ... | *[Ver] TG verification:* Eth-IPv4-UDP packet is sent from TG to DUT1 in\ -| ... | one direction. Packet is received and verified for correctness on TG.\ -| ... | Then Eth-IPv4-UDP packet is sent from TG in opposite direction. Packet\ -| ... | is received and verified for correctness on TG. -| ... | *[Ref] Applicable standard specifications:* RFC791, RFC768, RFC3022, -| ... | RFC4787. +| ... | +| ... | - **[Enc] Packet Encapsulations:** Eth-IPv4-UDP for IPv4 routing. +| ... | +| ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \ +| ... | and one static IPv4 /${dest_mask} route entries. \ +| ... | DUT1 is tested with ${nic_name}. +| ... | +| ... | - **[Ver] TG verification:** Eth-IPv4-UDP packet is sent from TG to \ +| ... | DUT1 in one direction. Packet is received and verified for correctness \ +| ... | on TG. Then Eth-IPv4-UDP packet is sent from TG in opposite direction. \ +| ... | Packet is received and verified for correctness on TG. +| ... | +| ... | - **[Ref] Applicable standard specifications:** RFC791, RFC768, \ +| ... | RFC3022 and RFC4787. *** Variables *** -| @{plugins_to_enable}= | dpdk_plugin.so | nat_plugin.so +| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | nat_plugin.so | ${crypto_type}= | ${None} -| ${nic_name}= | virtual +| ${nic_name}= | Intel-X710 | ${nic_driver}= | vfio-pci | ${nic_rxq_size}= | 0 | ${nic_txq_size}= | 0 @@ -77,13 +81,15 @@ | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.0 | ${out_mask}= | ${32} +# Telemetry +| ${telemetry_profile}= | vppctl_test_teardown *** Keywords *** | Local Template | | | | [Documentation] -| | ... | [Cfg] DUT runs NAT44 ${nat_mode} configuration. -| | ... | [Ver] Make TG send IPv4 packet routed over DUT1 interfaces.\ +| | ... | - **[Cfg]** DUT runs NAT44 ${nat_mode} configuration. +| | ... | - **[Ver]** Make TG send IPv4 packet routed over DUT1 interfaces. \ | | ... | Make TG verify IPv4 packet is correct. | | | | ... | *Arguments:* @@ -109,6 +115,6 @@ | | ... | ${protocol} | ${src_port_in} | ${dst_port} *** Test Cases *** -| 64B-ethip4udp-nat44ed-dev -| | [Tags] | 64B +| 64B-0c-ethip4udp-nat44ed-scapy +| | [Tags] | 64B | 0C | | frame_size=${64} | phy_cores=${0} diff --git a/tests/vpp/device/ip4/regenerate_testcases.py b/tests/vpp/device/ip4/regenerate_testcases.py new file mode 100755 index 0000000000..51070e4864 --- /dev/null +++ b/tests/vpp/device/ip4/regenerate_testcases.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +# Copyright (c) 2022 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from resources.libraries.python.autogen.Regenerator import Regenerator + +Regenerator().regenerate_glob(u"*.robot") |