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