CSIT-1459: Migrate IP libraries from VAT to PAPI
[csit.git] / tests / vpp / func / ip6_tunnels / lisp / eth2p-ethip6lispgpe-ip4base-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.Trace
17 | ...
18 | Resource | resources/libraries/robot/ip/ip4.robot
19 | Resource | resources/libraries/robot/l2/l2_traffic.robot
20 | Resource | resources/libraries/robot/overlay/lisp_static_adjacency.robot
21 | Resource | resources/libraries/robot/shared/default.robot
22 | Resource | resources/libraries/robot/shared/testing_path.robot
23 | Resource | resources/libraries/robot/shared/traffic.robot
24 | ...
25 # import additional Lisp settings from resource file
26 | Variables | resources/test_data/lisp/static_adjacency/lisp_static_adjacency.py
27 | ...
28 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | 3_NODE_DOUBLE_LINK_TOPO
29 | ... | VM_ENV | HW_ENV
30 | ...
31 | Test Setup | Set up functional test
32 | ...
33 | Test Teardown | Tear down functional test
34 | ...
35 | Documentation | *LISP static adjacency test cases*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-LISP-IPv4-ICMPv4 on\
40 | ... | DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for IPv4 routing over LISPoIPv6\
41 | ... | tunnel.
42 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4\
43 | ... | routing and static routes. LISPoIPv6 tunnel is configured\
44 | ... | between DUT1 and DUT2.
45 | ... | *[Ver] TG verification:* Test ICMPv4 Echo Request packets\
46 | ... | are sent in both directions by TG on links to DUT1 and DUT2; on receive\
47 | ... | TG verifies packets for correctness and their IPv4 src-addr,\
48 | ... | dst-addr and MAC addresses.
49 | ... | *[Ref] Applicable standard specifications:* RFC6830.
50
51 *** Test Cases ***
52 | TC01: DUT1 and DUT2 route IPv4 bidirectionally over LISPoIPv6 tunnel
53 | | [Documentation]
54 | | ... | [Top] TG-DUT1-DUT2-TG.
55 | | ... | [Enc] Eth-IPv6-LISP-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on\
56 | | ... | TG-DUTn.
57 | | ... | [Cfg] On DUT1 and DUT2 configure IPv6 LISP static adjacencies.
58 | | ... | [Ver] Make TG send ICMPv4 Echo Req between its interfaces across both\
59 | | ... | DUTs and LISP tunnel between them; verify IPv4 headers on received\
60 | | ... | packets are correct.
61 | | ... | [Cfg2] Reconf LISP.
62 | | ... | [Ver2] Verify packets are received again via LISP tunnel.
63 | | ... | [Ref] RFC6830.
64 | | ...
65 | | Given Configure path in 3-node circular topology
66 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
67 | | And Set interfaces in 3-node circular topology up
68 | | And Configure IP addresses on interfaces
69 | | ... | ${dut1_node} | ${dut1_to_dut2}
70 | | ... | ${dut1_to_dut2_ip4o6} | ${dut_prefix4o6}
71 | | ... | ${dut1_node} | ${dut1_to_tg}
72 | | ... | ${dut1_to_tg_ip4o6} | ${tg_prefix4o6}
73 | | ... | ${dut2_node} | ${dut2_to_dut1}
74 | | ... | ${dut2_to_dut1_ip4o6} | ${dut_prefix4o6}
75 | | ... | ${dut2_node} | ${dut2_to_tg}
76 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6}
77 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${dut2_to_dut1_ip4o6}
78 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${dut1_to_dut2_ip4o6}
79 | | VPP Add IP Neighbor
80 | | ... | ${dut2_node} | ${dut2_to_tg} | ${tg2_ip4o6} | ${tg_to_dut2_mac}
81 | | VPP Add IP Neighbor
82 | | ... | ${dut1_node} | ${dut1_to_tg} | ${tg1_ip4o6} | ${tg_to_dut1_mac}
83 | | And Vpp All RA Suppress Link Layer | ${nodes}
84 | | When Configure LISP topology in 3-node circular topology
85 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${NONE}
86 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${NONE}
87 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
88 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
89 | | Then Send packet and verify headers
90 | | ... | ${tg_node} | ${tg1_ip4o6} | ${tg2_ip4o6}
91 | | ... | ${tg_to_dut1} | ${tg_to_dut1_mac} | ${dut1_to_tg_mac}
92 | | ... | ${tg_to_dut2} | ${dut2_to_tg_mac} | ${tg_to_dut2_mac}
93 | | And Send packet and verify headers
94 | | ... | ${tg_node} | ${tg2_ip4o6} | ${tg1_ip4o6}
95 | | ... | ${tg_to_dut2} | ${tg_to_dut2_mac} | ${dut2_to_tg_mac}
96 | | ... | ${tg_to_dut1} | ${dut1_to_tg_mac} | ${tg_to_dut1_mac}
97 | | When Change LISP Configuration | ${dut1_node} | ${dut2_node}
98 | | ... | ${dut1_to_dut2} | ${dut2_to_dut1} | ${dut1_to_dut2_mac}
99 | | ... | ${dut2_to_dut1_mac} | ${dut1_to_dut2_ip4o6}
100 | | ... | ${dut2_to_dut1_ip4o6_reconf} | ${dut_prefix4o6}
101 | | ... | ${dut1_ip4o6_static_adjacency}
102 | | ... | ${dut1_ip4o6_static_adjacency_reconf}
103 | | Then Send packet and verify headers
104 | | ... | ${tg_node} | ${tg1_ip4o6} | ${tg2_ip4o6}
105 | | ... | ${tg_to_dut1} | ${tg_to_dut1_mac} | ${dut1_to_tg_mac}
106 | | ... | ${tg_to_dut2} | ${dut2_to_tg_mac} | ${tg_to_dut2_mac}
107 | | And Send packet and verify headers
108 | | ... | ${tg_node} | ${tg2_ip4o6} | ${tg1_ip4o6}
109 | | ... | ${tg_to_dut2} | ${tg_to_dut2_mac} | ${dut2_to_tg_mac}
110 | | ... | ${tg_to_dut1} | ${dut1_to_tg_mac} | ${tg_to_dut1_mac}