7fd6caeea8583183d671fa154b2346da26cc85d6
[csit.git] / tests / suites / vxlan / vxlan_bd_untagged.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 | Library  | resources.libraries.python.Trace
20 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | VM_ENV | HW_ENV
21 | Test Setup | Run Keywords | Setup all DUTs before test
22 | ...        | AND          | Setup all TGs before traffic script
23 | Test Teardown | Show Packet Trace on All DUTs | ${nodes}
24 | Documentation | *RFC7348 VXLAN: Bridge-domain with VXLAN test cases*
25 | ...
26 | ... | *[Top] Network topologies:* TG-DUT1-DUT2-TG 3-node circular topology
27 | ... | with single links between nodes; TG=DUT1=DUT2=TG 3-node circular
28 | ... | topology with double parallel links.
29 | ... | *[Enc] Packet encapsulations:* Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on
30 | ... | DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for L2 switching of IPv4;
31 | ... | Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on
32 | ... | TG-DUTn for L2 switching of IPv6.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2
34 | ... | bridge-domain (L2BD) switching combined with static MACs, MAC learning
35 | ... | enabled and Split Horizon Groups (SHG) depending on test case; VXLAN
36 | ... | tunnels are configured between L2BDs on DUT1 and DUT2.
37 | ... | *[Ver] TG verification:* Test ICMPv4 (or ICMPv6) Echo Request packets
38 | ... | are sent in both directions by TG on links to DUT1 and DUT2; on receive
39 | ... | TG verifies packets for correctness and their IPv4 (IPv6) src-addr,
40 | ... | dst-addr and MAC addresses.
41 | ... | *[Ref] Applicable standard specifications:* RFC7348.
42
43 *** Variables ***
44 | ${vni_1}= | 23
45 | ${vni_2}= | 35
46
47 | ${bd_id1}= | 10
48 | ${bd_id2}= | 20
49 | ${bd_id3}= | 30
50 | ${shg1}= | 1
51 | ${shg2}= | 2
52
53 | ${ip4_addr1}= | 172.16.0.1
54 | ${ip4_addr2}= | 172.16.0.2
55 | ${ip4_prefix}= | 24
56
57 | ${ip6_addr1}= | 3ffe:64::1
58 | ${ip6_addr2}= | 3ffe:64::2
59 | ${ip6_prefix}= | 64
60
61 *** Test Cases ***
62 | TC01: DUT1 and DUT2 with L2BD and VXLANoIPv4 tunnels switch ICMPv4 between TG links
63 | | [Documentation]
64 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on \
65 | | ... | DUT1-DUT2; Eth-IPv4-ICMPv4 on TG-DUTn. [Cfg] On DUT1 and DUT2
66 | | ... | configure two i/fs into L2BD with MAC learning. [Ver] Make TG
67 | | ... | verify ICMPv4 Echo Req pkts are switched thru DUT1 and DUT2 in
68 | | ... | both directions and are correct on receive. [Ref] RFC7348.
69 | | Given Path for 3-node testing is set
70 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
71 | | And Interfaces in 3-node path are up
72 | | ${dut1_to_dut2_name}= | Get interface name | ${dut1_node} | ${dut1_to_dut2}
73 | | ${dut2_to_dut1_name}= | Get interface name | ${dut2_node} | ${dut2_to_dut1}
74 | | And IP addresses are set on interfaces | ${dut1_node} | ${dut1_to_dut2_name} | ${NONE}
75 | | ...                                    | ${dut2_node} | ${dut2_to_dut1_name} | ${NONE}
76 | | ${dut1s_vxlan}= | When Create VXLAN interface     | ${dut1_node} | ${vni_1}
77 | |                 | ... | ${dut1s_ip_address} | ${dut2s_ip_address}
78 | | And  Interfaces are added to BD | ${dut1_node} | ${bd_id1}
79 | | ...                             | ${dut1_to_tg} | ${dut1s_vxlan}
80 | | ${dut2s_vxlan}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
81 | |                 | ... | ${dut2s_ip_address} | ${dut1s_ip_address}
82 | | And  Interfaces are added to BD | ${dut2_node} | ${bd_id1}
83 | | ...                             | ${dut2_to_tg} | ${dut2s_vxlan}
84 | | Then Send and receive ICMPv4 bidirectionally
85 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2}
86
87 | TC02: DUT1 and DUT2 with L2BD and VXLANoIPv4 tunnels in SHG switch ICMPv4 between TG links
88 | | [Documentation]
89 | | ... | [Top] TG=DUT1=DUT2=TG. [Enc] Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on \
90 | | ... | DUT1-DUT2; Eth-IPv4-ICMPv4 on TG-DUTn. [Cfg] On DUT1 configure L2
91 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
92 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
93 | | ... | interfaces into the same Split-Horizon-Group (SHG). On DUT2 configure
94 | | ... | two L2 bridge-domain (MAC learning enabled), each with one untagged
95 | | ... | interface to TG and one VXLAN interface towards the DUT1. [Ver] Make
96 | | ... | TG send ICMPv4 Echo Reqs between all four of its interfaces to be
97 | | ... | switched by DUT1 and DUT2; verify packets are not switched between
98 | | ... | TG interfaces connected to DUT2 that are isolated by SHG on DUT1.
99 | | ... | [Ref] RFC7348.
100 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
101 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
102 | | ...                                         | ${nodes['DUT1']}
103 | | ...                                         | ${nodes['DUT2']}
104 | | And Interfaces in 3-node BD-SHG testing are up
105 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr1}
106 | | ...                       | ${ip4_prefix}
107 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr2}
108 | | ...                       | ${ip4_prefix}
109 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr2}
110 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr1}
111 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
112 | | | ...                                          | ${ip4_addr1} | ${ip4_addr2}
113 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
114 | | | ...                                         | ${ip4_addr1} | ${ip4_addr2}
115 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
116 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
117 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
118 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
119 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
120 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
121 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
122 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
123 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
124 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
125 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
126 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
127 | | ...                                     | ${bd_id1}
128 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
129 | | ...                                     | ${bd_id1}
130 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
131 | | ...                                     | ${bd_id1} | ${shg1}
132 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
133 | | ...                                     | ${bd_id1} | ${shg1}
134 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
135 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
136 | | ...                                     | ${bd_id2}
137 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
138 | | ...                                     | ${bd_id2}
139 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
140 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
141 | | ...                                     | ${bd_id3}
142 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
143 | | ...                                     | ${bd_id3}
144 | | Then Send and receive ICMPv4 bidirectionally | ${tg_node}
145 | | ...                                          | ${tg_to_dut1_if1}
146 | | ...                                          | ${tg_to_dut2_if1}
147 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
148 | | ...                                         | ${tg_to_dut1_if1}
149 | | ...                                         | ${tg_to_dut2_if2}
150 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
151 | | ...                                         | ${tg_to_dut1_if2}
152 | | ...                                         | ${tg_to_dut2_if1}
153 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
154 | | ...                                         | ${tg_to_dut1_if2}
155 | | ...                                         | ${tg_to_dut2_if2}
156 | | And Run Keyword And Expect Error | ICMP echo Rx timeout
157 | | ...                              | Send and receive ICMPv4 bidirectionally
158 | | | ...                            | ${tg_node} | ${tg_to_dut2_if1}
159 | | | ...                            | ${tg_to_dut2_if2}
160
161 | TC03: DUT1 and DUT2 with L2BD and VXLANoIPv4 tunnels in different SHGs switch ICMPv4 between TG links
162 | | [Documentation]
163 | | ... | [Top] TG=DUT1=DUT2=TG.[Enc] Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on \
164 | | ... | DUT1-DUT2; Eth-IPv4-ICMPv4 on TG-DUTn. [Cfg] On DUT1 configure L2
165 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
166 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
167 | | ... | interfaces into the different Split-Horizon-Group (SHGs). On DUT2
168 | | ... | configure two L2 bridge-domain (MAC learning enabled), each with one
169 | | ... | untagged interface to TG and one VXLAN interface towards the DUT1.
170 | | ... | [Ver] Make TG send ICMPv4 Echo Req between all four of its interfaces
171 | | ... | to be switched by DUT1 and DUT2; verify packets are switched between
172 | | ... | all TG interfaces. [Ref] RFC7348.
173 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
174 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
175 | | ...                                         | ${nodes['DUT1']}
176 | | ...                                         | ${nodes['DUT2']}
177 | | And Interfaces in 3-node BD-SHG testing are up
178 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr1}
179 | | ...                       | ${ip4_prefix}
180 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr2}
181 | | ...                       | ${ip4_prefix}
182 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr2}
183 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr1}
184 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
185 | | | ...                                          | ${ip4_addr1} | ${ip4_addr2}
186 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
187 | | | ...                                         | ${ip4_addr1} | ${ip4_addr2}
188 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
189 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
190 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
191 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
192 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
193 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
194 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
195 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
196 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
197 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
198 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
199 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
200 | | ...                                     | ${bd_id1}
201 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
202 | | ...                                     | ${bd_id1}
203 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
204 | | ...                                     | ${bd_id1} | ${shg1}
205 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
206 | | ...                                     | ${bd_id1} | ${shg2}
207 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
208 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
209 | | ...                                     | ${bd_id2}
210 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
211 | | ...                                     | ${bd_id2}
212 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
213 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
214 | | ...                                     | ${bd_id3}
215 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
216 | | ...                                     | ${bd_id3}
217 | | Then Send and receive ICMPv4 bidirectionally | ${tg_node}
218 | | ...                                          | ${tg_to_dut1_if1}
219 | | ...                                          | ${tg_to_dut2_if1}
220 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
221 | | ...                                         | ${tg_to_dut1_if1}
222 | | ...                                         | ${tg_to_dut2_if2}
223 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
224 | | ...                                         | ${tg_to_dut1_if2}
225 | | ...                                         | ${tg_to_dut2_if1}
226 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
227 | | ...                                         | ${tg_to_dut1_if2}
228 | | ...                                         | ${tg_to_dut2_if2}
229 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
230 | | ...                                         | ${tg_to_dut2_if1}
231 | | ...                                         | ${tg_to_dut2_if2}
232
233 | TC04: DUT1 and DUT2 with L2BD and VXLANoIPv6 tunnels switch ICMPv6 between TG links
234 | | [Documentation]
235 | | ... | [Top] TG=DUT1=DUT2=TG.[Enc] Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on \
236 | | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn. [Cfg] On DUT1 and DUT2
237 | | ... | configure L2 bridge-domain (MAC learning enabled), each with one
238 | | ... | interface to TG and one VXLAN tunnel interface towards the other
239 | | ... | DUT. [Ver] Make TG send ICMPv6 Echo Req between two of its
240 | | ... | interfaces to be switched by DUT1 and DUT2; verify all packets
241 | | ... | are received. [Ref] RFC7348.
242 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
243 | | Given Path for 3-node testing is set
244 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
245 | | And Interfaces in 3-node path are up
246 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr1}
247 | | ...                       | ${ip6_prefix}
248 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr2}
249 | | ...                       | ${ip6_prefix}
250 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr2}
251 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr1}
252 | | ${dut1s_vxlan}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
253 | | | ...                                         | ${ip6_addr1} | ${ip6_addr2}
254 | | And  Interfaces are added to BD | ${dut1_node} | ${bd_id1}
255 | | ...                             | ${dut1_to_tg} | ${dut1s_vxlan}
256 | | ${dut2s_vxlan}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
257 | | | ...                                        | ${ip6_addr2} | ${ip6_addr1}
258 | | And  Interfaces are added to BD | ${dut2_node} | ${bd_id1}
259 | | ...                             | ${dut2_to_tg} | ${dut2s_vxlan}
260 | | Then Send and receive ICMPv6 bidirectionally
261 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2}
262
263 | TC05: DUT1 and DUT2 with L2BD and VXLANoIPv6 tunnels in SHG switch ICMPv6 between TG links
264 | | [Documentation]
265 | | ... | [Top] TG=DUT1=DUT2=TG. [Enc] Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on \
266 | | ... | DUT1-DUT2; Eth-IPv6-ICMPv6 on TG-DUTn. [Cfg] On DUT1 configure L2
267 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
268 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
269 | | ... | interfaces into the same Split-Horizon-Group (SHG). On DUT2 configure
270 | | ... | two L2 bridge-domain (MAC learning enabled), each with one untagged
271 | | ... | interface to TG and one VXLAN interface towards the DUT1. [Ver] Make
272 | | ... | TG send ICMPv6 Echo Reqs between all four of its interfaces to be
273 | | ... | switched by DUT1 and DUT2; verify packets are not switched between
274 | | ... | TG interfaces connected to DUT2 that are isolated by SHG on DUT1.
275 | | ... | [Ref] RFC7348.
276 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
277 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
278 | | ...                                         | ${nodes['DUT1']}
279 | | ...                                         | ${nodes['DUT2']}
280 | | And Interfaces in 3-node BD-SHG testing are up
281 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr1}
282 | | ...                       | ${ip6_prefix}
283 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr2}
284 | | ...                       | ${ip6_prefix}
285 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr2}
286 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr1}
287 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
288 | | | ...                                          | ${ip6_addr1} | ${ip6_addr2}
289 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
290 | | | ...                                         | ${ip6_addr1} | ${ip6_addr2}
291 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
292 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
293 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
294 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
295 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
296 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
297 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
298 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
299 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
300 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
301 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
302 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
303 | | ...                                     | ${bd_id1}
304 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
305 | | ...                                     | ${bd_id1}
306 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
307 | | ...                                     | ${bd_id1} | ${shg1}
308 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
309 | | ...                                     | ${bd_id1} | ${shg1}
310 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
311 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
312 | | ...                                     | ${bd_id2}
313 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
314 | | ...                                     | ${bd_id2}
315 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
316 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
317 | | ...                                     | ${bd_id3}
318 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
319 | | ...                                     | ${bd_id3}
320 | | Then Send and receive ICMPv6 bidirectionally | ${tg_node}
321 | | ...                                          | ${tg_to_dut1_if1}
322 | | ...                                          | ${tg_to_dut2_if1}
323 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
324 | | ...                                         | ${tg_to_dut1_if1}
325 | | ...                                         | ${tg_to_dut2_if2}
326 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
327 | | ...                                         | ${tg_to_dut1_if2}
328 | | ...                                         | ${tg_to_dut2_if1}
329 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
330 | | ...                                         | ${tg_to_dut1_if2}
331 | | ...                                         | ${tg_to_dut2_if2}
332 | | And Run Keyword And Expect Error | ICMP echo Rx timeout
333 | | ...                              | Send and receive ICMPv6 bidirectionally
334 | | | ...                            | ${tg_node} | ${tg_to_dut2_if1}
335 | | | ...                            | ${tg_to_dut2_if2}
336
337 | TC06: DUT1 and DUT2 with L2BD and VXLANoIPv6 tunnels in different SHGs switch ICMPv6 between TG links
338 | | [Documentation]
339 | | ... | [Top] TG=DUT1=DUT2=TG.[Enc] Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on \
340 | | ... | DUT1-DUT2; Eth-IPv6-ICMPv6 on TG-DUTn. [Cfg] On DUT1 configure L2
341 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
342 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
343 | | ... | interfaces into the different Split-Horizon-Group (SHGs). On DUT2
344 | | ... | configure two L2 bridge-domain (MAC learning enabled), each with one
345 | | ... | untagged interface to TG and one VXLAN interface towards the DUT1.
346 | | ... | [Ver] Make TG send ICMPv6 Echo Req between all four of its interfaces
347 | | ... | to be switched by DUT1 and DUT2; verify packets are switched between
348 | | ... | all TG interfaces. [Ref] RFC7348.
349 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
350 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
351 | | ...                                         | ${nodes['DUT1']}
352 | | ...                                         | ${nodes['DUT2']}
353 | | And Interfaces in 3-node BD-SHG testing are up
354 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr1}
355 | | ...                       | ${ip6_prefix}
356 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr2}
357 | | ...                       | ${ip6_prefix}
358 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr2}
359 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr1}
360 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
361 | | | ...                                          | ${ip6_addr1} | ${ip6_addr2}
362 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
363 | | | ...                                         | ${ip6_addr1} | ${ip6_addr2}
364 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
365 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
366 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
367 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
368 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
369 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
370 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
371 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
372 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
373 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
374 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
375 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
376 | | ...                                     | ${bd_id1}
377 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
378 | | ...                                     | ${bd_id1}
379 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
380 | | ...                                     | ${bd_id1} | ${shg1}
381 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
382 | | ...                                     | ${bd_id1} | ${shg2}
383 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
384 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
385 | | ...                                     | ${bd_id2}
386 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
387 | | ...                                     | ${bd_id2}
388 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
389 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
390 | | ...                                     | ${bd_id3}
391 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
392 | | ...                                     | ${bd_id3}
393 | | Then Send and receive ICMPv6 bidirectionally | ${tg_node}
394 | | ...                                          | ${tg_to_dut1_if1}
395 | | ...                                          | ${tg_to_dut2_if1}
396 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
397 | | ...                                         | ${tg_to_dut1_if1}
398 | | ...                                         | ${tg_to_dut2_if2}
399 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
400 | | ...                                         | ${tg_to_dut1_if2}
401 | | ...                                         | ${tg_to_dut2_if1}
402 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
403 | | ...                                         | ${tg_to_dut1_if2}
404 | | ...                                         | ${tg_to_dut2_if2}
405 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
406 | | ...                                         | ${tg_to_dut2_if1}
407 | | ...                                         | ${tg_to_dut2_if2}