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