541744847cf7cb97219f3545043b5841ef645a62
[csit.git] / tests / vpp / device / l2xc / eth2p-ethicmp-l2xcbase-dev.robot
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:
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 | Resource | resources/libraries/robot/l2/l2_xconnect.robot
17 | Resource | resources/libraries/robot/l2/l2_traffic.robot
18 | Resource | resources/libraries/robot/shared/testing_path.robot
19 | ...
20 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV
21 | ... | FUNCTEST | L2XCFWD | BASE | ETH | ICMP
22 | ...
23 | Test Setup | Set up VPP device test
24 | ...
25 | Test Teardown | Tear down VPP device test
26 | ...
27 | Documentation | *L2 cross-connect test cases*
28 | ...
29 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology\
30 | ... | with single links between nodes.
31 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-ICMPv4 for L2 switching of\
32 | ... | IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all\
33 | ... | links.
34 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 cross-connect\
35 | ... | switching.
36 | ... | *[Ver] TG verification:* Test ICMPv4 (or ICMPv6) Echo Request packets\
37 | ... | are sent in both directions by TG on links to DUT1; on receive TG\
38 | ... | verifies packets for correctness and their IPv4 (IPv6) src-addr,\
39 | ... | dst-addr and MAC addresses.
40 | ... | *[Ref] Applicable standard specifications:* RFC792
41
42 *** Test Cases ***
43 | tc01-eth2p-ethicmpv4-l2xcbase-device
44 | | [Documentation]
45 | | ... | [Top] TG-DUT1-TG. [Enc] Eth-IPv4-ICMPv4.
46 | | ... | [Cfg] Configure L2 cross-connects (L2XC) between both interfaces\
47 | | ... | towards TG on DUT1.
48 | | ... | [Ver] Make TG send ICMPv4 Echo Req in both directions between two of\
49 | | ... | its interfaces to be switched by DUT1; verify all packets are\
50 | | ... | received.
51 | | ...
52 | | Given Configure path in 2-node circular topology
53 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
54 | | And Configure interfaces in path up
55 | | And Configure L2XC | ${dut_node} | ${dut_to_tg_if1} | ${dut_to_tg_if2}
56 | | When All Vpp Interfaces Ready Wait | ${nodes}
57 | | Then Send ICMPv4 bidirectionally and verify received packets
58 | | ... | ${tg_node} | ${tg_to_dut_if1} | ${tg_to_dut_if2}
59
60 | tc02-eth2p-ethicmpv6-l2xcbase-device
61 | | [Documentation]
62 | | ... | [Top] TG-DUT1-TG. [Enc] Eth-IPv6-ICMPv6.
63 | | ... | [Cfg] Configure L2 cross-connects (L2XC) between both interfaces\
64 | | ... | towards TG on DUT1.
65 | | ... | [Ver] Make TG send ICMPv6 Echo Req in both directions between two of\
66 | | ... | its interfaces to be switched by DUT1; verify all packets are\
67 | | ... | received.
68 | | ...
69 | | Given Configure path in 2-node circular topology
70 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
71 | | And Configure interfaces in path up
72 | | And Configure L2XC | ${dut_node} | ${dut_to_tg_if1} | ${dut_to_tg_if2}
73 | | When All Vpp Interfaces Ready Wait | ${nodes}
74 | | Then Send ICMPv6 bidirectionally and verify received packets
75 | | ... | ${tg_node} | ${tg_to_dut_if1} | ${tg_to_dut_if2}