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