23b88d45f2df18a286264eccc5c56cd072d63dc1
[csit.git] / tests / func / vxlan / eth2p-ethip6vxlan-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 | Resource | resources/libraries/robot/default.robot
16 | Resource | resources/libraries/robot/testing_path.robot
17 | Resource | resources/libraries/robot/vxlan.robot
18 | Resource | resources/libraries/robot/l2_traffic.robot
19 | Resource | resources/libraries/robot/qemu.robot
20 | Resource | resources/libraries/robot/double_qemu_setup.robot
21 | Library  | resources.libraries.python.Trace
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | VM_ENV | HW_ENV
23 | Test Setup | Func Test Setup
24 | Test Teardown | Func Test Teardown
25 | Documentation | *Bridge-domain with VXLAN test cases - IPv6*
26 | ...
27 | ... | *[Top] Network topologies:* TG-DUT1-DUT2-TG 3-node circular topology
28 | ... | with single links between nodes.
29 | ... | *[Enc] Packet encapsulations:* Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on
30 | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for L2 switching of IPv6.
31 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2
32 | ... | bridge-domain (L2BD) switching combined with MAC learning enabled;
33 | ... | VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
34 | ... | *[Ver] TG verification:* Test ICMPv6 Echo Request packets are sent
35 | ... | in both directions by TG on links to DUT1 and DUT2; on receive TG
36 | ... | verifies packets for correctness and their IPv6 src-addr, dst-addr
37 | ... | and MAC addresses.
38 | ... | *[Ref] Applicable standard specifications:* RFC7348.
39
40 *** Variables ***
41 | ${vni_1}= | 23
42
43 | ${bd_id1}= | 10
44
45 | ${ip6_addr1}= | 3ffe:64::1
46 | ${ip6_addr2}= | 3ffe:64::2
47 | ${ip6_prefix}= | 64
48
49 *** Test Cases ***
50 | TC01: DUT1 and DUT2 with L2BD and VXLANoIPv6 tunnels switch ICMPv6 between TG links
51 | | [Documentation]
52 | | ... | [Top] TG=DUT1=DUT2=TG.[Enc] Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on \
53 | | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn. [Cfg] On DUT1 and DUT2
54 | | ... | configure L2 bridge-domain (MAC learning enabled), each with one
55 | | ... | interface to TG and one VXLAN tunnel interface towards the other
56 | | ... | DUT. [Ver] Make TG send ICMPv6 Echo Req between two of its
57 | | ... | interfaces to be switched by DUT1 and DUT2; verify all packets
58 | | ... | are received. [Ref] RFC7348.
59 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
60 | | Given Path for 3-node testing is set
61 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
62 | | And Interfaces in 3-node path are up
63 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr1}
64 | | ...                       | ${ip6_prefix}
65 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr2}
66 | | ...                       | ${ip6_prefix}
67 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr2}
68 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr1}
69 | | ${dut1s_vxlan}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
70 | | | ...                                         | ${ip6_addr1} | ${ip6_addr2}
71 | | And Interfaces are added to BD | ${dut1_node} | ${bd_id1}
72 | | ...                            | ${dut1_to_tg} | ${dut1s_vxlan}
73 | | ${dut2s_vxlan}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
74 | | | ...                                        | ${ip6_addr2} | ${ip6_addr1}
75 | | And Interfaces are added to BD | ${dut2_node} | ${bd_id1}
76 | | ...                            | ${dut2_to_tg} | ${dut2s_vxlan}
77 | | Then Send and receive ICMPv6 bidirectionally
78 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2}