Suite: vxlan.
[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 | | And IP addresses are set on interfaces | ${dut1_node} | ${dut1_to_dut2} | ${NONE}
73 | | ...                                    | ${dut2_node} | ${dut2_to_dut1} | ${NONE}
74 | | ${dut1s_vxlan}= | When Create VXLAN interface     | ${dut1_node} | ${vni_1}
75 | |                 | ... | ${dut1s_ip_address} | ${dut2s_ip_address}
76 | | And  Interfaces are added to BD | ${dut1_node} | ${bd_id1}
77 | | ...                             | ${dut1_to_tg} | ${dut1s_vxlan}
78 | | ${dut2s_vxlan}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
79 | |                 | ... | ${dut2s_ip_address} | ${dut1s_ip_address}
80 | | And  Interfaces are added to BD | ${dut2_node} | ${bd_id1}
81 | | ...                             | ${dut2_to_tg} | ${dut2s_vxlan}
82 | | Then Send and receive ICMPv4 bidirectionally
83 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2}
84
85 | TC02: DUT1 and DUT2 with L2BD and VXLANoIPv4 tunnels in SHG switch ICMPv4 between TG links
86 | | [Documentation]
87 | | ... | [Top] TG=DUT1=DUT2=TG. [Enc] Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on \
88 | | ... | DUT1-DUT2; Eth-IPv4-ICMPv4 on TG-DUTn. [Cfg] On DUT1 configure L2
89 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
90 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
91 | | ... | interfaces into the same Split-Horizon-Group (SHG). On DUT2 configure
92 | | ... | two L2 bridge-domain (MAC learning enabled), each with one untagged
93 | | ... | interface to TG and one VXLAN interface towards the DUT1. [Ver] Make
94 | | ... | TG send ICMPv4 Echo Reqs between all four of its interfaces to be
95 | | ... | switched by DUT1 and DUT2; verify packets are not switched between
96 | | ... | TG interfaces connected to DUT2 that are isolated by SHG on DUT1.
97 | | ... | [Ref] RFC7348.
98 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
99 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
100 | | ...                                         | ${nodes['DUT1']}
101 | | ...                                         | ${nodes['DUT2']}
102 | | And Interfaces in 3-node BD-SHG testing are up
103 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr1}
104 | | ...                       | ${ip4_prefix}
105 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr2}
106 | | ...                       | ${ip4_prefix}
107 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr2}
108 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr1}
109 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
110 | | | ...                                          | ${ip4_addr1} | ${ip4_addr2}
111 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
112 | | | ...                                         | ${ip4_addr1} | ${ip4_addr2}
113 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
114 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
115 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
116 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
117 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
118 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
119 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
120 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
121 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
122 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
123 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
124 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
125 | | ...                                     | ${bd_id1}
126 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
127 | | ...                                     | ${bd_id1}
128 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
129 | | ...                                     | ${bd_id1} | ${shg1}
130 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
131 | | ...                                     | ${bd_id1} | ${shg1}
132 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
133 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
134 | | ...                                     | ${bd_id2}
135 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
136 | | ...                                     | ${bd_id2}
137 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
138 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
139 | | ...                                     | ${bd_id3}
140 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
141 | | ...                                     | ${bd_id3}
142 | | Then Send and receive ICMPv4 bidirectionally | ${tg_node}
143 | | ...                                          | ${tg_to_dut1_if1}
144 | | ...                                          | ${tg_to_dut2_if1}
145 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
146 | | ...                                         | ${tg_to_dut1_if1}
147 | | ...                                         | ${tg_to_dut2_if2}
148 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
149 | | ...                                         | ${tg_to_dut1_if2}
150 | | ...                                         | ${tg_to_dut2_if1}
151 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
152 | | ...                                         | ${tg_to_dut1_if2}
153 | | ...                                         | ${tg_to_dut2_if2}
154 | | And Run Keyword And Expect Error | ICMP echo Rx timeout
155 | | ...                              | Send and receive ICMPv4 bidirectionally
156 | | | ...                            | ${tg_node} | ${tg_to_dut2_if1}
157 | | | ...                            | ${tg_to_dut2_if2}
158
159 | TC03: DUT1 and DUT2 with L2BD and VXLANoIPv4 tunnels in different SHGs switch ICMPv4 between TG links
160 | | [Documentation]
161 | | ... | [Top] TG=DUT1=DUT2=TG.[Enc] Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on \
162 | | ... | DUT1-DUT2; Eth-IPv4-ICMPv4 on TG-DUTn. [Cfg] On DUT1 configure L2
163 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
164 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
165 | | ... | interfaces into the different Split-Horizon-Group (SHGs). On DUT2
166 | | ... | configure two L2 bridge-domain (MAC learning enabled), each with one
167 | | ... | untagged interface to TG and one VXLAN interface towards the DUT1.
168 | | ... | [Ver] Make TG send ICMPv4 Echo Req between all four of its interfaces
169 | | ... | to be switched by DUT1 and DUT2; verify packets are switched between
170 | | ... | all TG interfaces. [Ref] RFC7348.
171 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
172 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
173 | | ...                                         | ${nodes['DUT1']}
174 | | ...                                         | ${nodes['DUT2']}
175 | | And Interfaces in 3-node BD-SHG testing are up
176 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr1}
177 | | ...                       | ${ip4_prefix}
178 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr2}
179 | | ...                       | ${ip4_prefix}
180 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip4_addr2}
181 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip4_addr1}
182 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
183 | | | ...                                          | ${ip4_addr1} | ${ip4_addr2}
184 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
185 | | | ...                                         | ${ip4_addr1} | ${ip4_addr2}
186 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
187 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
188 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
189 | | | ...                                         | ${ip4_addr2} | ${ip4_addr1}
190 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
191 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
192 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
193 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
194 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
195 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
196 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
197 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
198 | | ...                                     | ${bd_id1}
199 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
200 | | ...                                     | ${bd_id1}
201 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
202 | | ...                                     | ${bd_id1} | ${shg1}
203 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
204 | | ...                                     | ${bd_id1} | ${shg2}
205 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
206 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
207 | | ...                                     | ${bd_id2}
208 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
209 | | ...                                     | ${bd_id2}
210 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
211 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
212 | | ...                                     | ${bd_id3}
213 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
214 | | ...                                     | ${bd_id3}
215 | | Then Send and receive ICMPv4 bidirectionally | ${tg_node}
216 | | ...                                          | ${tg_to_dut1_if1}
217 | | ...                                          | ${tg_to_dut2_if1}
218 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
219 | | ...                                         | ${tg_to_dut1_if1}
220 | | ...                                         | ${tg_to_dut2_if2}
221 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
222 | | ...                                         | ${tg_to_dut1_if2}
223 | | ...                                         | ${tg_to_dut2_if1}
224 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
225 | | ...                                         | ${tg_to_dut1_if2}
226 | | ...                                         | ${tg_to_dut2_if2}
227 | | And Send and receive ICMPv4 bidirectionally | ${tg_node}
228 | | ...                                         | ${tg_to_dut2_if1}
229 | | ...                                         | ${tg_to_dut2_if2}
230
231 | TC04: DUT1 and DUT2 with L2BD and VXLANoIPv6 tunnels switch ICMPv6 between TG links
232 | | [Documentation]
233 | | ... | [Top] TG=DUT1=DUT2=TG.[Enc] Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on \
234 | | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn. [Cfg] On DUT1 and DUT2
235 | | ... | configure L2 bridge-domain (MAC learning enabled), each with one
236 | | ... | interface to TG and one VXLAN tunnel interface towards the other
237 | | ... | DUT. [Ver] Make TG send ICMPv6 Echo Req between two of its
238 | | ... | interfaces to be switched by DUT1 and DUT2; verify all packets
239 | | ... | are received. [Ref] RFC7348.
240 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
241 | | Given Path for 3-node testing is set
242 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
243 | | And Interfaces in 3-node path are up
244 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr1}
245 | | ...                       | ${ip6_prefix}
246 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr2}
247 | | ...                       | ${ip6_prefix}
248 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr2}
249 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr1}
250 | | ${dut1s_vxlan}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
251 | | | ...                                         | ${ip6_addr1} | ${ip6_addr2}
252 | | And  Interfaces are added to BD | ${dut1_node} | ${bd_id1}
253 | | ...                             | ${dut1_to_tg} | ${dut1s_vxlan}
254 | | ${dut2s_vxlan}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
255 | | | ...                                        | ${ip6_addr2} | ${ip6_addr1}
256 | | And  Interfaces are added to BD | ${dut2_node} | ${bd_id1}
257 | | ...                             | ${dut2_to_tg} | ${dut2s_vxlan}
258 | | Then Send and receive ICMPv6 bidirectionally
259 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2}
260
261 | TC05: DUT1 and DUT2 with L2BD and VXLANoIPv6 tunnels in SHG switch ICMPv6 between TG links
262 | | [Documentation]
263 | | ... | [Top] TG=DUT1=DUT2=TG. [Enc] Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on \
264 | | ... | DUT1-DUT2; Eth-IPv6-ICMPv6 on TG-DUTn. [Cfg] On DUT1 configure L2
265 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
266 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
267 | | ... | interfaces into the same Split-Horizon-Group (SHG). On DUT2 configure
268 | | ... | two L2 bridge-domain (MAC learning enabled), each with one untagged
269 | | ... | interface to TG and one VXLAN interface towards the DUT1. [Ver] Make
270 | | ... | TG send ICMPv6 Echo Reqs between all four of its interfaces to be
271 | | ... | switched by DUT1 and DUT2; verify packets are not switched between
272 | | ... | TG interfaces connected to DUT2 that are isolated by SHG on DUT1.
273 | | ... | [Ref] RFC7348.
274 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
275 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
276 | | ...                                         | ${nodes['DUT1']}
277 | | ...                                         | ${nodes['DUT2']}
278 | | And Interfaces in 3-node BD-SHG testing are up
279 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr1}
280 | | ...                       | ${ip6_prefix}
281 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr2}
282 | | ...                       | ${ip6_prefix}
283 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr2}
284 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr1}
285 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
286 | | | ...                                          | ${ip6_addr1} | ${ip6_addr2}
287 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
288 | | | ...                                         | ${ip6_addr1} | ${ip6_addr2}
289 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
290 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
291 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
292 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
293 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
294 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
295 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
296 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
297 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
298 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
299 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
300 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
301 | | ...                                     | ${bd_id1}
302 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
303 | | ...                                     | ${bd_id1}
304 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
305 | | ...                                     | ${bd_id1} | ${shg1}
306 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
307 | | ...                                     | ${bd_id1} | ${shg1}
308 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
309 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
310 | | ...                                     | ${bd_id2}
311 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
312 | | ...                                     | ${bd_id2}
313 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
314 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
315 | | ...                                     | ${bd_id3}
316 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
317 | | ...                                     | ${bd_id3}
318 | | Then Send and receive ICMPv6 bidirectionally | ${tg_node}
319 | | ...                                          | ${tg_to_dut1_if1}
320 | | ...                                          | ${tg_to_dut2_if1}
321 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
322 | | ...                                         | ${tg_to_dut1_if1}
323 | | ...                                         | ${tg_to_dut2_if2}
324 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
325 | | ...                                         | ${tg_to_dut1_if2}
326 | | ...                                         | ${tg_to_dut2_if1}
327 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
328 | | ...                                         | ${tg_to_dut1_if2}
329 | | ...                                         | ${tg_to_dut2_if2}
330 | | And Run Keyword And Expect Error | ICMP echo Rx timeout
331 | | ...                              | Send and receive ICMPv6 bidirectionally
332 | | | ...                            | ${tg_node} | ${tg_to_dut2_if1}
333 | | | ...                            | ${tg_to_dut2_if2}
334
335 | TC06: DUT1 and DUT2 with L2BD and VXLANoIPv6 tunnels in different SHGs switch ICMPv6 between TG links
336 | | [Documentation]
337 | | ... | [Top] TG=DUT1=DUT2=TG.[Enc] Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on \
338 | | ... | DUT1-DUT2; Eth-IPv6-ICMPv6 on TG-DUTn. [Cfg] On DUT1 configure L2
339 | | ... | bridge-domain (MAC learning enabled) with two untagged interfaces
340 | | ... | to TG and two VXLAN interfaces towards the DUT2 and put both VXLAN
341 | | ... | interfaces into the different Split-Horizon-Group (SHGs). On DUT2
342 | | ... | configure two L2 bridge-domain (MAC learning enabled), each with one
343 | | ... | untagged interface to TG and one VXLAN interface towards the DUT1.
344 | | ... | [Ver] Make TG send ICMPv6 Echo Req between all four of its interfaces
345 | | ... | to be switched by DUT1 and DUT2; verify packets are switched between
346 | | ... | all TG interfaces. [Ref] RFC7348.
347 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
348 | | Given Path for 3-node BD-SHG testing is set | ${nodes['TG']}
349 | | ...                                         | ${nodes['DUT1']}
350 | | ...                                         | ${nodes['DUT2']}
351 | | And Interfaces in 3-node BD-SHG testing are up
352 | | And Set Interface Address | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr1}
353 | | ...                       | ${ip6_prefix}
354 | | And Set Interface Address | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr2}
355 | | ...                       | ${ip6_prefix}
356 | | And VPP IP Probe | ${dut1_node} | ${dut1_to_dut2} | ${ip6_addr2}
357 | | And VPP IP Probe | ${dut2_node} | ${dut2_to_dut1} | ${ip6_addr1}
358 | | ${dut1s_vxlan1}= | When Create VXLAN interface | ${dut1_node} | ${vni_1}
359 | | | ...                                          | ${ip6_addr1} | ${ip6_addr2}
360 | | ${dut1s_vxlan2}= | And Create VXLAN interface | ${dut1_node} | ${vni_2}
361 | | | ...                                         | ${ip6_addr1} | ${ip6_addr2}
362 | | ${dut2s_vxlan1}= | And Create VXLAN interface | ${dut2_node} | ${vni_1}
363 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
364 | | ${dut2s_vxlan2}= | And Create VXLAN interface | ${dut2_node} | ${vni_2}
365 | | | ...                                         | ${ip6_addr2} | ${ip6_addr1}
366 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan1} | up
367 | | And Set Interface State | ${dut1_node} | ${dut1s_vxlan2} | up
368 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan1} | up
369 | | And Set Interface State | ${dut2_node} | ${dut2s_vxlan2} | up
370 | | And Vpp Node Interfaces Ready Wait | ${dut1_node}
371 | | And Vpp Node Interfaces Ready Wait | ${dut2_node}
372 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
373 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
374 | | ...                                     | ${bd_id1}
375 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
376 | | ...                                     | ${bd_id1}
377 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan1}
378 | | ...                                     | ${bd_id1} | ${shg1}
379 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1s_vxlan2}
380 | | ...                                     | ${bd_id1} | ${shg2}
381 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id2}
382 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
383 | | ...                                     | ${bd_id2}
384 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan1}
385 | | ...                                     | ${bd_id2}
386 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id3}
387 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
388 | | ...                                     | ${bd_id3}
389 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2s_vxlan2}
390 | | ...                                     | ${bd_id3}
391 | | Then Send and receive ICMPv6 bidirectionally | ${tg_node}
392 | | ...                                          | ${tg_to_dut1_if1}
393 | | ...                                          | ${tg_to_dut2_if1}
394 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
395 | | ...                                         | ${tg_to_dut1_if1}
396 | | ...                                         | ${tg_to_dut2_if2}
397 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
398 | | ...                                         | ${tg_to_dut1_if2}
399 | | ...                                         | ${tg_to_dut2_if1}
400 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
401 | | ...                                         | ${tg_to_dut1_if2}
402 | | ...                                         | ${tg_to_dut2_if2}
403 | | And Send and receive ICMPv6 bidirectionally | ${tg_node}
404 | | ...                                         | ${tg_to_dut2_if1}
405 | | ...                                         | ${tg_to_dut2_if2}