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