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