CSIT-465: Common test setup and teardown
[csit.git] / tests / func / vlan / vlan_tag_translate_l2_bridge_domain_ipv6.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/bridge_domain.robot
17 | Resource | resources/libraries/robot/testing_path.robot
18 | Resource | resources/libraries/robot/tagging.robot
19 | Resource | resources/libraries/robot/l2_traffic.robot
20 | Library  | resources.libraries.python.Trace
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | HW_ENV | VM_ENV
22 | Test Setup | Func Test Setup
23 | Test Teardown | Func Test Teardown
24 | Documentation | *L2 bridge domain with VLAN tag rewrite test cases - IPv6*
25 | ...
26 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
27 | ... | with single links between nodes.
28 | ... | *[Enc] Packet encapsulations:* Eth-dot1q-IPv6-ICMPv6 or
29 | ... | Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv6-ICMPv6
30 | ... | on TG-DUT2 for L2 switching of IPv6.
31 | ... | *[Cfg] DUT configuration:* DUT1 is configured with bridge domain (L2BD)
32 | ... | switching combined with MAC learning enabled and added VLAN
33 | ... | sub-interface with VLAN tag rewrite translate-1-1 method
34 | ... | of interface towards TG and interface towards DUT2. DUT2 is configured
35 | ... | with L2 bridge domain (L2BD) switching between VLAN sub-interface
36 | ... | with VLAN tag rewrite pop-1 method of interface towards DUT1 and
37 | ... | interface towards TG.
38 | ... | *[Ver] TG verification:* Test ICMPv6 Echo Request packets are
39 | ... | sent from TG on link to DUT1 and received in TG on link form DUT2;
40 | ... | on receive TG verifies packets for correctness and their IPv6 src-addr,
41 | ... | dst-addr and MAC addresses.
42 | ... | *[Ref] Applicable standard specifications:* IEEE 802.1q, IEEE 802.1ad.
43
44 *** Variables ***
45 | ${bd_id1}= | 1
46
47 | ${subid}= | 10
48
49 | ${outer_vlan_id1}= | 110
50 | ${outer_vlan_id2}= | 120
51 | ${outer_vlan_wrong}= | 150
52
53 | ${inner_vlan_id1}= | 210
54 | ${inner_vlan_id2}= | 220
55 | ${inner_vlan_wrong}= | 250
56
57 | ${src_ip}= | 3ffe:63::1
58 | ${dst_ip}= | 3ffe:63::2
59
60 *** Test Cases ***
61 | TC01: DUT1 and DUT2 with L2BD and VLAN translate-1-1 (DUT1) switch ICMPv6 between two TG links
62 | | [Documentation]
63 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1 and \
64 | | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
65 | | ... | bridge domain (L2BD) with one interface to DUT2 and one VLAN
66 | | ... | sub-interface towards TG with VLAN tag rewrite translate-1-1 method;
67 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG
68 | | ... | and one VLAN sub-interface towards DUT1 with VLAN tag rewrite pop-1
69 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req tagged with one Dot1q tag
70 | | ... | from one of its interfaces to another one via DUT1 and DUT2; verify
71 | | ... | that packet is received. [Ref] IEEE 802.1q
72 | | Given Path for 3-node testing is set
73 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
74 | | And Interfaces in 3-node path are up
75 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
76 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
77 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
78 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
79 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
80 | | ... | ${vlan1_index} | translate-1-1 | tag1_id=${outer_vlan_id2}
81 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
82 | | ... | ${vlan2_index} | pop-1
83 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
84 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
85 | | ...                                     | ${bd_id1}
86 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
87 | | ...                                     | ${bd_id1}
88 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
89 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
90 | | ...                                     | ${bd_id1}
91 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
92 | | ...                                     | ${bd_id1}
93 | | Then Send and receive ICMP Packet
94 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
95 | | ... | dst_ip=${dst_ip} | encaps=Dot1q | vlan1=${outer_vlan_id1}
96
97 | TC02: DUT1 and DUT2 with L2BD and VLAN translate-1-1 with wrong tag used (DUT1) switch ICMPv6 between two TG links
98 | | [Documentation]
99 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1 and \
100 | | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
101 | | ... | bridge domain (L2BD) with one interface to DUT2 and one VLAN
102 | | ... | sub-interface towards TG with VLAN tag rewrite translate-1-1 method
103 | | ... | to set tag different from tag set on VLAN sub-interface of DUT2;
104 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG
105 | | ... | and one VLAN sub-interface towards DUT1 with VLAN tag rewrite pop-1
106 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req tagged with one Dot1q tag
107 | | ... | from one of its interfaces to another one via DUT1 and DUT2; verify
108 | | ... | that packet is not received. [Ref] IEEE 802.1q
109 | | [Tags] | SKIP_PATCH
110 | | Given Path for 3-node testing is set
111 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
112 | | And Interfaces in 3-node path are up
113 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
114 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
115 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
116 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
117 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
118 | | ... | ${vlan1_index} | translate-1-1 | tag1_id=${outer_vlan_wrong}
119 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
120 | | ... | ${vlan2_index} | pop-1
121 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
122 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
123 | | ...                                     | ${bd_id1}
124 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
125 | | ...                                     | ${bd_id1}
126 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
127 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
128 | | ...                                     | ${bd_id1}
129 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
130 | | ...                                     | ${bd_id1}
131 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
132 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
133 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
134 | | ... | vlan1=${outer_vlan_id1}
135
136 | TC03: DUT1 and DUT2 with L2BD and VLAN translate-1-2 (DUT1) switch ICMPv6 between two TG links
137 | | [Documentation]
138 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
139 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
140 | | ... | [Cfg] On DUT1 configure L2 bridge domain (L2BD) with one interface to
141 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
142 | | ... | translate-1-2 method; on DUT2 configure L2 bridge domain (L2BD) with
143 | | ... | one interface to TG and one Dot1ad sub-interface towards DUT1 with
144 | | ... | VLAN tag rewrite pop-2 method. [Ver] Make TG send ICMPv6 Echo Req
145 | | ... | tagged with one Dot1q tag from one of its interfaces to another one
146 | | ... | via DUT1 and DUT2; verify that packet is received.
147 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
148 | | Given Path for 3-node testing is set
149 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
150 | | And Interfaces in 3-node path are up
151 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
152 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
153 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
154 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
155 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
156 | | ... | type_subif=two_tags dot1ad
157 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
158 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
159 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
160 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
161 | | ... | ${vlan2_index} | pop-2
162 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
163 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
164 | | ...                                     | ${bd_id1}
165 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
166 | | ...                                     | ${bd_id1}
167 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
168 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
169 | | ...                                     | ${bd_id1}
170 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
171 | | ...                                     | ${bd_id1}
172 | | Then Send and receive ICMP Packet
173 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
174 | | ... | dst_ip=${dst_ip} | encaps=Dot1q | vlan1=${outer_vlan_id1}
175
176 | TC04: DUT1 and DUT2 with L2BD and VLAN translate-1-2 with wrong inner tag used (DUT1) switch ICMPv6 between two TG links
177 | | [Documentation]
178 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
179 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
180 | | ... | [Cfg] On DUT1 configure L2 bridge domain (L2BD) with one interface to
181 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
182 | | ... | translate-1-2 method to set inner tag different from inner tag set on
183 | | ... | Dot1ad sub-interface of DUT2; on DUT2 configure L2 bridge domain with
184 | | ... | one interface to TG and one Dot1ad sub-interface towards DUT1 with
185 | | ... | VLAN tag rewrite pop-2 method. [Ver] Make TG send ICMPv6 Echo Req
186 | | ... | tagged with one Dot1q tag from one of its interfaces to another one
187 | | ... | via DUT1 and DUT2; verify that packet is not received.
188 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
189 | | [Tags] | SKIP_PATCH
190 | | Given Path for 3-node testing is set
191 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
192 | | And Interfaces in 3-node path are up
193 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
194 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
195 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
196 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
197 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
198 | | ... | type_subif=two_tags dot1ad
199 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
200 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
201 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
202 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
203 | | ... | ${vlan2_index} | pop-2
204 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
205 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
206 | | ...                                     | ${bd_id1}
207 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
208 | | ...                                     | ${bd_id1}
209 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
210 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
211 | | ...                                     | ${bd_id1}
212 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
213 | | ...                                     | ${bd_id1}
214 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
215 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
216 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
217 | | ... | vlan1=${outer_vlan_id1}
218
219 | TC05: DUT1 and DUT2 with L2BD and VLAN translate-1-2 with wrong outer tag used (DUT1) switch ICMPv6 between two TG links
220 | | [Documentation]
221 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
222 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
223 | | ... | [Cfg] On DUT1 configure L2 bridge domain (L2BD) with one interface to
224 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
225 | | ... | translate-1-2 method to set outer tag different from outer tag set on
226 | | ... | Dot1ad sub-interface of DUT2; on DUT2 configure L2 bridge domain with
227 | | ... | one interface to TG and one Dot1ad sub-interface towards DUT1 with
228 | | ... | VLAN tag rewrite pop-2 method. [Ver] Make TG send ICMPv6 Echo Req
229 | | ... | tagged with one Dot1q tag from one of its interfaces to another one
230 | | ... | via DUT1 and DUT2; verify that packet is not received.
231 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
232 | | [Tags] | SKIP_PATCH
233 | | Given Path for 3-node testing is set
234 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
235 | | And Interfaces in 3-node path are up
236 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
237 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
238 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
239 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
240 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
241 | | ... | type_subif=two_tags dot1ad
242 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
243 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
244 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
245 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
246 | | ... | ${vlan2_index} | pop-2
247 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
248 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
249 | | ...                                     | ${bd_id1}
250 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
251 | | ...                                     | ${bd_id1}
252 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
253 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
254 | | ...                                     | ${bd_id1}
255 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
256 | | ...                                     | ${bd_id1}
257 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
258 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
259 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
260 | | ... | vlan1=${outer_vlan_id1}
261
262 | TC06: DUT1 and DUT2 with L2BD and VLAN translate-1-2 with wrong outer and inner tag used (DUT1) switch ICMPv6 between two TG links
263 | | [Documentation]
264 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
265 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
266 | | ... | [Cfg] On DUT1 configure L2 bridge domain (L2BD) with one interface to
267 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
268 | | ... | translate-1-2 method to set outer and inner tags different from tags
269 | | ... | set on Dot1ad sub-interface of DUT2; on DUT2 configure L2
270 | | ... | bridge domain with one interface to TG and one Dot1ad sub-interface
271 | | ... | towards DUT1 with VLAN tag rewrite pop-2 method. [Ver] Make TG send
272 | | ... | ICMPv6 Echo Req tagged with one Dot1q tag from one of its interfaces
273 | | ... | to another one via DUT1 and DUT2; verify that packet is not received.
274 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
275 | | [Tags] | SKIP_PATCH
276 | | Given Path for 3-node testing is set
277 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
278 | | And Interfaces in 3-node path are up
279 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
280 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
281 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
282 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
283 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
284 | | ... | type_subif=two_tags dot1ad
285 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
286 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
287 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
288 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
289 | | ... | ${vlan2_index} | pop-2
290 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
291 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
292 | | ...                                     | ${bd_id1}
293 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
294 | | ...                                     | ${bd_id1}
295 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
296 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
297 | | ...                                     | ${bd_id1}
298 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
299 | | ...                                     | ${bd_id1}
300 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
301 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
302 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
303 | | ... | vlan1=${outer_vlan_id1}
304
305 | TC07: DUT1 and DUT2 with L2BD and VLAN translate-2-1 (DUT1) switch ICMPv6 between two TG links
306 | | [Documentation]
307 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1, \
308 | | ... | Eth-dot1q-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
309 | | ... | [Cfg] On DUT1 configure L2 bridge domain (L2BD) with one interface to
310 | | ... | DUT2 and one Dot1ad sub-interface towards TG with VLAN tag rewrite
311 | | ... | translate-2-1 method; on DUT2 configure L2 bridge domain (L2BD) with
312 | | ... | one interface to TG and one VLAN sub-interface towards DUT1 with
313 | | ... | VLAN tag rewrite pop-1 method. [Ver] Make TG send ICMPv6 Echo Req
314 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
315 | | ... | via DUT1 and DUT2; verify that packet is received.
316 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
317 | | Given Path for 3-node testing is set
318 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
319 | | And Interfaces in 3-node path are up
320 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
321 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
322 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
323 | | ... | type_subif=two_tags dot1ad
324 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
325 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
326 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
327 | | ... | ${vlan1_index} | translate-2-1 | tag1_id=${outer_vlan_id2}
328 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
329 | | ... | ${vlan2_index} | pop-1
330 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
331 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
332 | | ...                                     | ${bd_id1}
333 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
334 | | ...                                     | ${bd_id1}
335 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
336 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
337 | | ...                                     | ${bd_id1}
338 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
339 | | ...                                     | ${bd_id1}
340 | | Then Send and receive ICMP Packet
341 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
342 | | ... | dst_ip=${dst_ip} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
343 | | ... | vlan2=${inner_vlan_id1}
344
345 | TC08: DUT1 and DUT2 with L2BD and VLAN translate-2-1 with wrong tag used (DUT1) switch ICMPv6 between two TG links
346 | | [Documentation]
347 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1, \
348 | | ... | Eth-dot1q-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
349 | | ... | [Cfg] On DUT1 configure L2 bridge domain (L2BD) with one interface to
350 | | ... | DUT2 and one Dot1ad sub-interface towards TG with VLAN tag rewrite
351 | | ... | translate-2-1 method to set tag different from tag set on VLAN
352 | | ... | sub-interface of DUT2; on DUT2 configure L2 bridge domain (L2BD) with
353 | | ... | one interface to TG and one VLAN sub-interface towards DUT1 with
354 | | ... | VLAN tag rewrite pop-1 method. [Ver] Make TG send ICMPv6 Echo Req
355 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
356 | | ... | via DUT1 and DUT2; verify that packet is not received.
357 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
358 | | [Tags] | SKIP_PATCH
359 | | Given Path for 3-node testing is set
360 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
361 | | And Interfaces in 3-node path are up
362 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
363 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
364 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
365 | | ... | type_subif=two_tags dot1ad
366 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
367 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
368 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
369 | | ... | ${vlan1_index} | translate-2-1 | tag1_id=${outer_vlan_wrong}
370 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
371 | | ... | ${vlan2_index} | pop-1
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_dut2}
374 | | ...                                     | ${bd_id1}
375 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
376 | | ...                                     | ${bd_id1}
377 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
378 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
379 | | ...                                     | ${bd_id1}
380 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
381 | | ...                                     | ${bd_id1}
382 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
383 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
384 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
385 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
386
387 | TC09: DUT1 and DUT2 with L2BD and VLAN translate-2-2 switch ICMPv6 between two TG links
388 | | [Documentation]
389 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
390 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
391 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
392 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method;
393 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG and
394 | | ... | one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
395 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
396 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
397 | | ... | that packet is received. [Ref] IEEE 802.1ad
398 | | Given Path for 3-node testing is set
399 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
400 | | And Interfaces in 3-node path are up
401 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
402 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
403 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
404 | | ... | type_subif=two_tags dot1ad
405 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
406 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
407 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
408 | | ... | type_subif=two_tags dot1ad
409 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
410 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
411 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
412 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
413 | | ... | ${vlan2_index} | pop-2
414 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
415 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
416 | | ...                                     | ${bd_id1}
417 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
418 | | ...                                     | ${bd_id1}
419 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
420 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
421 | | ...                                     | ${bd_id1}
422 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
423 | | ...                                     | ${bd_id1}
424 | | Then Send and receive ICMP Packet
425 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
426 | | ... | dst_ip=${dst_ip} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
427 | | ... | vlan2=${inner_vlan_id1}
428
429 | TC10: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong inner tag used (DUT1) switch ICMPv6 between two TG links
430 | | [Documentation]
431 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
432 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
433 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
434 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
435 | | ... | set inner tag different from inner tag set on Dot1ad sub-interface of
436 | | ... | DUT2; on DUT2 configure L2 bridge domain (L2BD) with one interface to
437 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
438 | | ... | pop-1 tagged with Dot1ad tags from one of its interfaces to another
439 | | ... | one method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2;
440 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
441 | | [Tags] | SKIP_PATCH
442 | | Given Path for 3-node testing is set
443 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
444 | | And Interfaces in 3-node path are up
445 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
446 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
447 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
448 | | ... | type_subif=two_tags dot1ad
449 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
450 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
451 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
452 | | ... | type_subif=two_tags dot1ad
453 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
454 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
455 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
456 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
457 | | ... | ${vlan2_index} | pop-2
458 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
459 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
460 | | ...                                     | ${bd_id1}
461 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
462 | | ...                                     | ${bd_id1}
463 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
464 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
465 | | ...                                     | ${bd_id1}
466 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
467 | | ...                                     | ${bd_id1}
468 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
469 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
470 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
471 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
472
473 | TC11: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong outer tag used (DUT1) switch ICMPv6 between two TG links
474 | | [Documentation]
475 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
476 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
477 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
478 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
479 | | ... | set outer tag different from outer tag set on Dot1ad sub-interface of
480 | | ... | DUT2; on DUT2 configure L2 bridge domain (L2BD) with one interface to
481 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
482 | | ... | pop-1 tagged with Dot1ad tags from one of its interfaces to another
483 | | ... | one method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2;
484 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
485 | | [Tags] | SKIP_PATCH
486 | | Given Path for 3-node testing is set
487 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
488 | | And Interfaces in 3-node path are up
489 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
490 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
491 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
492 | | ... | type_subif=two_tags dot1ad
493 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
494 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
495 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
496 | | ... | type_subif=two_tags dot1ad
497 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
498 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
499 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
500 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
501 | | ... | ${vlan2_index} | pop-2
502 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
503 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
504 | | ...                                     | ${bd_id1}
505 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
506 | | ...                                     | ${bd_id1}
507 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
508 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
509 | | ...                                     | ${bd_id1}
510 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
511 | | ...                                     | ${bd_id1}
512 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
513 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
514 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
515 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
516
517 | TC12: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong outer and inner tags used (DUT1) switch ICMPv6 between two TG links
518 | | [Documentation]
519 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
520 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
521 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
522 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
523 | | ... | set tags different from tags set on Dot1ad sub-interface of DUT2;
524 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG
525 | | ... | and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
526 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
527 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
528 | | ... | that packet is not received. [Ref] IEEE 802.1ad
529 | | [Tags] | SKIP_PATCH
530 | | Given Path for 3-node testing is set
531 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
532 | | And Interfaces in 3-node path are up
533 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
534 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
535 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
536 | | ... | type_subif=two_tags dot1ad
537 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
538 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
539 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
540 | | ... | type_subif=two_tags dot1ad
541 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
542 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
543 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
544 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
545 | | ... | ${vlan2_index} | pop-2
546 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
547 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
548 | | ...                                     | ${bd_id1}
549 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
550 | | ...                                     | ${bd_id1}
551 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
552 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
553 | | ...                                     | ${bd_id1}
554 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
555 | | ...                                     | ${bd_id1}
556 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
557 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
558 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
559 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}