CSIT-1459: Migrate IP libraries from VAT to PAPI
[csit.git] / tests / vpp / func / ip6_tunnels / lisp / eth2p-ethip6lisp-l2bdbasemaclrn-func.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 | Library | resources.libraries.python.IPUtil
16 | Library | resources.libraries.python.L2Util
17 | Library | resources.libraries.python.LispUtil
18 | Library | resources.libraries.python.NodePath
19 | Library | resources.libraries.python.topology.Topology
20 | Library | resources.libraries.python.Trace
21 | ...
22 | Resource | resources/libraries/robot/ip/ip4.robot
23 | Resource | resources/libraries/robot/overlay/l2lisp.robot
24 | Resource | resources/libraries/robot/shared/default.robot
25 | Resource | resources/libraries/robot/shared/interfaces.robot
26 | Resource | resources/libraries/robot/shared/traffic.robot
27 | Resource | resources/libraries/robot/shared/testing_path.robot
28 | ...
29 # Import configuration and test data:
30 | Variables | resources/test_data/lisp/l2/l2_ipv6.py
31 | ...
32 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | VM_ENV | LISP
33 | ...
34 | Test Setup | Set up functional test
35 | ...
36 | Test Teardown | Tear down functional test
37 | ...
38 | Documentation | *l2-lispgpe-ip6 encapsulation test cases*
39 | ...
40 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
41 | ... | with single links between nodes.
42 | ... | *[Enc] Packet Encapsulations:* Eth-IP6-ICMPv6-LISPGpe-IP6
43 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge\
44 | ... | domains and neighbors. LISPoIPv6 tunnel is configured between\
45 | ... | DUT1 and DUT2.
46 | ... | *[Ver] TG verification:* Test ICMPv6 Echo Request packets are sent in\
47 | ... | both directions by TG on links to DUT1 and DUT2; on receive\
48 | ... | TG verifies packets for correctness and their IPv6 src-addr, dst-addr\
49 | ... | and MAC addresses.
50 | ... | *[Ref] Applicable standard specifications:* RFC6830.
51
52 *** Test Cases ***
53 | TC01: Route IPv6 packet through LISP with Bridge Domain setup.
54 | | [Documentation]
55 | | ... | [Top] TG-DUT1-DUT2-TG.
56 | | ... | [Enc] Eth-IP6-ICMPv6-LISPGpe-IP6
57 | | ... | [Cfg] Configure IPv6 LISP static adjacencies on DUT1 and DUT2. Also\
58 | | ... | configure BD and assign it to LISP VNI.
59 | | ... | [Ver] Make TG send ICMPv6 Echo Req between its interfaces across both\
60 | | ... | DUTs and LISP tunnel between them; verify IPv6, Ether headers on\
61 | | ... | received packets are correct.
62 | | ... | [Ref] RFC6830.
63 | | ...
64 | | Given Configure path in 3-node circular topology
65 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
66 | | And Set interfaces in 3-node circular topology up
67 | | And Configure IP addresses on interfaces
68 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${dut1_to_dut2_ip6} | ${prefix6}
69 | | ... | ${dut1_node} | ${dut1_to_tg} | ${dut1_to_tg_ip6} | ${prefix6}
70 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${dut2_to_dut1_ip6} | ${prefix6}
71 | | ... | ${dut2_node} | ${dut2_to_tg} | ${dut2_to_tg_ip6} | ${prefix6}
72 | | VPP Add IP Neighbor
73 | | ... | ${dut2_node} | ${dut2_to_tg} | ${tg2_ip6} | ${tg_to_dut2_mac}
74 | | VPP Add IP Neighbor
75 | | ... | ${dut1_node} | ${dut1_to_tg} | ${tg1_ip6} | ${tg_to_dut1_mac}
76 | | VPP Add IP Neighbor | ${dut1_node}
77 | | ... | ${dut1_to_dut2} | ${dut2_to_dut1_ip6} | ${dut2_to_dut1_mac}
78 | | VPP Add IP Neighbor | ${dut2_node}
79 | | ... | ${dut2_to_dut1} | ${dut1_to_dut2_ip6} | ${dut1_to_dut2_mac}
80 | | And Vpp All RA Suppress Link Layer | ${nodes}
81 | | When Create L2 BD | ${dut1_node} | ${vpp_bd_id}
82 | | And Add Interface To L2 BD | ${dut1_node} | ${dut1_to_tg} | ${vpp_bd_id}
83 | | And Create L2 BD | ${dut2_node} | ${vpp_bd_id}
84 | | And Add Interface To L2 BD | ${dut2_node} | ${dut2_to_tg} | ${vpp_bd_id}
85 | | And Configure L2 LISP on DUT | ${dut1_node}
86 | | ... | ${dut1_to_dut2_ip6_static_adjacency}
87 | | ... | ${lisp_dut_settings}
88 | | And Configure L2 LISP on DUT | ${dut2_node}
89 | | ... | ${dut2_to_dut1_ip6_static_adjacency}
90 | | ... | ${lisp_dut_settings}
91 | | Then Send packet and verify headers
92 | | ... | ${tg_node} | ${tg1_ip6} | ${tg2_ip6}
93 | | ... | ${tg_to_dut1} | ${tg_if1_mac} | ${tg_if2_mac}
94 | | ... | ${tg_to_dut2} | ${tg_if1_mac} | ${tg_if2_mac}
95 | | And Send packet and verify headers
96 | | ... | ${tg_node} | ${tg2_ip6} | ${tg1_ip6}
97 | | ... | ${tg_to_dut2} | ${tg_if2_mac} | ${tg_if1_mac}
98 | | ... | ${tg_to_dut1} | ${tg_if2_mac} | ${tg_if1_mac}