X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tests%2Fvpp%2Fdevice%2Finterfaces%2Feth2p-ethicmpv4-ip4base-eth-1tap-namespace-dev.robot;fp=tests%2Fvpp%2Fdevice%2Finterfaces%2Feth2p-ethip4-ip4base-eth-1tap-dev.robot;h=b0cacd1f24662cb5bbf0df3b49e53e3fc0dd4374;hp=4d7f189da4084f4d7cded2a573e0d3128cc11c1d;hb=d2a7114de8c307c152b119d2c153e1d75df78b65;hpb=7b0e8a9dee0f874c4b7317e9132064dbab8fd34a diff --git a/tests/vpp/device/interfaces/eth2p-ethip4-ip4base-eth-1tap-dev.robot b/tests/vpp/device/interfaces/eth2p-ethicmpv4-ip4base-eth-1tap-namespace-dev.robot similarity index 65% rename from tests/vpp/device/interfaces/eth2p-ethip4-ip4base-eth-1tap-dev.robot rename to tests/vpp/device/interfaces/eth2p-ethicmpv4-ip4base-eth-1tap-namespace-dev.robot index 4d7f189da4..b0cacd1f24 100644 --- a/tests/vpp/device/interfaces/eth2p-ethip4-ip4base-eth-1tap-dev.robot +++ b/tests/vpp/device/interfaces/eth2p-ethicmpv4-ip4base-eth-1tap-namespace-dev.robot @@ -15,12 +15,14 @@ | 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 | TAP +| ... | NIC_Virtual | ETH | IP4FWD | BASE | IP4BASE | 1TAP | NAMESPACE | ... | Suite Setup | Setup suite single link | scapy | Test Setup | Setup test | namespace | Test Teardown | Tear down test | packet_trace | namespace | ... +| Test Template | Local Template +| ... | Documentation | *Tap Interface Traffic Tests* | ... | *[Top] Network Topologies:* TG=DUT1 2-node topology with two links | ... | between nodes. @@ -47,41 +49,8 @@ | ${tg_ip_address_GW}= | 192.168.0.0 | ${prefix}= | 24 -*** Test Cases *** -| tc01-eth2p-ethicmpv4-ip4base-dev_tap-no-namespace -| | [Documentation] -| | ... | [Cfg] On DUT1 configure two interface addresses with IPv4 of which\ -| | ... | one is TAP interface (dut_to_tg_if and TAP) and one is linux-TAP. -| | ... | [Ver] Packet sent from TG gets to the destination and ICMP-reply is\ -| | ... | received on TG. -| | ... -| | Set Test Variable | ${frame_size} | ${42} -| | Set Test Variable | ${rxq_count_int} | ${1} -| | ... -| | Given Add PCI devices to all DUTs -| | And Set Max Rate And Jumbo And Handle Multi Seg -| | And Apply startup configuration on all VPP DUTs -| | And VPP Enable Traces On All Duts | ${nodes} -| | When Set interfaces in path up -| | ${int1}= | And Add Tap Interface | ${dut1} | tap0 -| | And VPP Interface Set IP Address -| | ... | ${dut1} | ${int1} | ${tap1_VPP_ip} | ${prefix} -| | And VPP Interface Set IP Address -| | ... | ${dut1} | ${dut1_if1} | ${dut_ip_address} | ${prefix} -| | And Set Interface State | ${dut1} | ${int1} | up -| | And Set Linux Interface MAC | ${dut1} | tap0 | ${tap1_NM_mac} -| | And Set Linux Interface IP | ${dut1} | tap0 | ${tap1_NM_ip} | ${prefix} -| | And Add Linux Route -| | ... | ${dut1} | ${tg_ip_address_GW} | ${prefix} | ${tap1_VPP_ip} -| | And VPP Add IP Neighbor -| | ... | ${dut1} | ${dut1_if1} | ${tg_ip_address} | ${tg_if1_mac} -| | And VPP Add IP Neighbor -| | ... | ${dut1} | ${int1} | ${tap1_NM_ip} | ${tap1_NM_mac} -| | Then Send ICMP echo request and verify answer -| | ... | ${tg} | ${tg_if1} | ${dut1_if1_mac} | ${tg_if1_mac} -| | ... | ${tap1_NM_ip} | ${tg_ip_address} - -| tc02-eth2p-ethicmpv4-ip4base-dev_tap-namespace +*** Keywords *** +| Local Template | | [Documentation] | | ... | [Cfg] On DUT1 configure two interface addresses with IPv4 of which\ | | ... | one is TAP interface (dut_to_tg_if and TAP) and one is linux-TAP in\ @@ -89,13 +58,19 @@ | | ... | [Ver] Packet sent from TG gets to the destination and ICMP-reply is\ | | ... | received on TG. | | ... -| | Set Test Variable | ${frame_size} | ${42} -| | Set Test Variable | ${rxq_count_int} | ${1} +| | ... | *Arguments:* +| | ... | - frame_size - Framesize in Bytes in integer. Type: integer +| | ... | - phy_cores - Number of physical cores. Type: integer +| | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer +| | ... +| | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None} | | ... -| | Given Add PCI devices to all DUTs +| | Set Test Variable | \${frame_size} +| | ... +| | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq} +| | And Add PCI devices to all DUTs | | And Set Max Rate And Jumbo And Handle Multi Seg -| | And Apply startup configuration on all VPP DUTs -| | And VPP Enable Traces On All Duts | ${nodes} +| | And Apply startup configuration on all VPP DUTs | with_trace=${True} | | When Set interfaces in path up | | ${int1}= | And Add Tap Interface | ${dut1} | tap0 | | And VPP Interface Set IP Address @@ -118,3 +93,8 @@ | | Then Send ICMP echo request and verify answer | | ... | ${tg} | ${tg_if1} | ${dut1_if1_mac} | ${tg_if1_mac} | | ... | ${tap1_NM_ip} | ${tg_ip_address} + +*** Test Cases *** +| tc01-64B-eth2p-ethicmpv4-ip4base-eth-1tap-namespace-dev +| | [Tags] | 64B +| | frame_size=${64} | phy_cores=${0}