X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tests%2Fvpp%2Fdevice%2Finterfaces%2Feth2p-ethicmpv4-l2bdbasemaclrn-eth-2tap-dev.robot;fp=tests%2Fvpp%2Fdevice%2Finterfaces%2Feth2p-eth-l2bdbasemaclrn-eth-2tap-dev.robot;h=0c97d983bcdd24484d87ad7c324bf4bf78378dc6;hp=3e7fd03e895592fd6b9a4ab601af23f716890e7d;hb=d2a7114de8c307c152b119d2c153e1d75df78b65;hpb=7b0e8a9dee0f874c4b7317e9132064dbab8fd34a diff --git a/tests/vpp/device/interfaces/eth2p-eth-l2bdbasemaclrn-eth-2tap-dev.robot b/tests/vpp/device/interfaces/eth2p-ethicmpv4-l2bdbasemaclrn-eth-2tap-dev.robot similarity index 78% rename from tests/vpp/device/interfaces/eth2p-eth-l2bdbasemaclrn-eth-2tap-dev.robot rename to tests/vpp/device/interfaces/eth2p-ethicmpv4-l2bdbasemaclrn-eth-2tap-dev.robot index 3e7fd03e89..0c97d983bc 100644 --- a/tests/vpp/device/interfaces/eth2p-eth-l2bdbasemaclrn-eth-2tap-dev.robot +++ b/tests/vpp/device/interfaces/eth2p-ethicmpv4-l2bdbasemaclrn-eth-2tap-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 | L2BD | BASE | TAP +| ... | NIC_Virtual | ETH | L2BD | BASE | 2TAP | ... | Suite Setup | Setup suite single link | scapy | Test Setup | Setup test | namespace | Test Teardown | Tear down test | packet_trace | namespace | linux_bridge | ... +| Test Template | Local Template +| ... | Documentation | *Tap Interface Traffic Tests* | ... | ... | *[Top] Network Topologies:* TG=DUT1 2-node topology with two links @@ -42,19 +44,25 @@ | ${overhead}= | ${0} | ${bid_TAP}= | tapBr -*** Test Cases *** -| tc01-eth2p-ethicmpv4-l2bdbasemaclrn-eth-2tap-dev_tap-simple-bd +*** Keywords *** +| Local Template | | [Documentation] | | ... | [Ver] Packet sent from TG is passed through all L2BD and received\ | | ... | back on TG. Then src_ip, dst_ip and MAC are checked. | | ... -| | 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 | | ${int2}= | And Add Tap Interface | ${dut1} | tap1 @@ -69,3 +77,8 @@ | | And Add interface to bridge domain | ${dut1} | ${dut1_if2} | 19 | 0 | | Then Send ICMP packet and verify received packet | | ... | ${tg} | ${tg_if1} | ${tg_if2} + +*** Test Cases *** +| tc01-eth2p-ethicmpv4-l2bdbasemaclrn-eth-2tap-dev +| | [Tags] | 64B +| | frame_size=${64} | phy_cores=${0}