31407d2ce23b32ce22fd91024539eedf9c99cdb9
[csit.git] / tests / vpp / device / l2xc / eth2p-ethicmp-l2xcbase-dev.robot
1 # Copyright (c) 2019 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/shared/default.robot
16 | ...
17 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY
18 | ... | NIC_Virtual | ETH | L2XCFWD | BASE | ICMP
19 | ...
20 | Suite Setup | Setup suite single link | scapy
21 | Test Setup | Setup test
22 | Test Teardown | Tear down test | packet_trace
23 | ...
24 | Documentation | *L2 cross-connect test cases*
25 | ...
26 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology \
27 | ... | with single links between nodes.
28 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-ICMPv4 for L2 switching of \
29 | ... | IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all \
30 | ... | links.
31 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 cross-connect \
32 | ... | switching.
33 | ... | *[Ver] TG verification:* Test ICMPv4 (or ICMPv6) Echo Request packets \
34 | ... | are sent in both directions by TG on links to DUT1; on receive TG \
35 | ... | verifies packets for correctness and their IPv4 (IPv6) src-addr, \
36 | ... | dst-addr and MAC addresses.
37 | ... | *[Ref] Applicable standard specifications:* RFC792
38
39 *** Variables ***
40 | @{plugins_to_enable}= | dpdk_plugin.so
41 | ${nic_name}= | virtual
42 | ${overhead}= | ${0}
43
44 *** Test Cases ***
45 | tc01-eth2p-ethicmpv4-l2xcbase-dev
46 | | [Documentation]
47 | | ... | [Ver] Make TG send ICMPv4 Echo Reqs in both directions between two\
48 | | ... | of its interfaces to be switched by DUT to and from docker; verify\
49 | | ... | all packets are received.
50 | | ...
51 | | Set Test Variable | ${frame_size} | ${42}
52 | | Set Test Variable | ${rxq_count_int} | ${1}
53 | | ...
54 | | Given Add PCI devices to all DUTs
55 | | And Set Max Rate And Jumbo And Handle Multi Seg
56 | | And Apply startup configuration on all VPP DUTs
57 | | And VPP Enable Traces On All Duts | ${nodes}
58 | | When Initialize L2 xconnect in 2-node circular topology
59 | | Then Send ICMPv4 bidirectionally and verify received packets
60 | | ... | ${tg} | ${tg_if1} | ${tg_if2}
61
62 | tc02-eth2p-ethicmpv6-l2xcbase-dev
63 | | [Documentation]
64 | | ... | [Ver] Make TG send ICMPv6 Echo Reqs in both directions between two\
65 | | ... | of its interfaces to be switched by DUT to and from docker; verify\
66 | | ... | all packets are received.
67 | | ...
68 | | Set Test Variable | ${frame_size} | ${62}
69 | | Set Test Variable | ${rxq_count_int} | ${1}
70 | | ...
71 | | Given Add PCI devices to all DUTs
72 | | And Set Max Rate And Jumbo And Handle Multi Seg
73 | | And Apply startup configuration on all VPP DUTs
74 | | And VPP Enable Traces On All Duts | ${nodes}
75 | | When Initialize L2 xconnect in 2-node circular topology
76 | | Then Send ICMPv6 bidirectionally and verify received packets
77 | | ... | ${tg} | ${tg_if1} | ${tg_if2}