Func test reorg - decrease exec time per vpp patch
[csit.git] / tests / func / vlan / eth2p-dot1ad-l2bdbasemaclrn-vlantrans22-func.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 | SKIP_VPP_PATCH
22 | Test Setup | Func Test Setup
23 | Test Teardown | Func Test Teardown
24 | Documentation | *L2BD with VLAN tag rewrite test cases - translate-2-2*
25 | ...
26 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
27 | ... | with single links between nodes.
28 | ... | *[Enc] Packet encapsulations:* Eth-dot1ad-IPv4-ICMPv4 or
29 | ... | Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv4-ICMPv4 or
30 | ... | Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/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-2-2 method of interface
34 | ... | towards TG and interface towards DUT2. DUT2 is configured with L2
35 | ... | bridge domain (L2BD) switching between VLAN sub-interface with VLAN tag
36 | ... | rewrite pop-2 method of interface towards DUT1 and interface towards TG.
37 | ... | *[Ver] TG verification:* Test ICMPv4 Echo Request packets are
38 | ... | sent from TG on link to DUT1 and received in TG on link form DUT2;
39 | ... | on receive TG verifies packets for correctness and their IPv4 src-addr,
40 | ... | dst-addr and MAC addresses.
41 | ... | *[Ref] Applicable standard specifications:* IEEE 802.1q, IEEE 802.1ad.
42
43 *** Variables ***
44 | ${bd_id1}= | 1
45
46 | ${subid}= | 10
47
48 | ${outer_vlan_id1}= | 110
49 | ${outer_vlan_id2}= | 120
50 | ${outer_vlan_wrong}= | 150
51
52 | ${inner_vlan_id1}= | 210
53 | ${inner_vlan_id2}= | 220
54 | ${inner_vlan_wrong}= | 250
55
56 | ${src_ip6}= | 3ffe:63::1
57 | ${dst_ip6}= | 3ffe:63::2
58
59 *** Test Cases ***
60 | TC01: DUT1 and DUT2 with L2BD and VLAN translate-2-2 switch ICMPv4 between two TG links
61 | | [Documentation]
62 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
63 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
64 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
65 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method;
66 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG and
67 | | ... | one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-2
68 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
69 | | ... | method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2; verify
70 | | ... | that packet is received. [Ref] IEEE 802.1ad
71 | | Given Path for 3-node testing is set
72 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
73 | | And Interfaces in 3-node path are up
74 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
75 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
76 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
77 | | ... | type_subif=two_tags dot1ad
78 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
79 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
80 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
81 | | ... | type_subif=two_tags dot1ad
82 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
83 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
84 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
85 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
86 | | ... | ${vlan2_index} | pop-2
87 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
88 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
89 | | ...                                     | ${bd_id1}
90 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
91 | | ...                                     | ${bd_id1}
92 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
93 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
94 | | ...                                     | ${bd_id1}
95 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
96 | | ...                                     | ${bd_id1}
97 | | Then Send and receive ICMP Packet
98 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | encaps=Dot1ad
99 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
100
101 | TC02: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong inner tag used (DUT1) switch ICMPv4 between two TG links
102 | | [Documentation]
103 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
104 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
105 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
106 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
107 | | ... | set inner tag different from inner tag set on Dot1ad sub-interface of
108 | | ... | DUT2; on DUT2 configure L2 bridge domain (L2BD) with one interface to
109 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
110 | | ... | pop-2 tagged with Dot1ad tags from one of its interfaces to another
111 | | ... | one method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2;
112 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
113 | | [Tags] | SKIP_PATCH
114 | | Given Path for 3-node testing is set
115 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
116 | | And Interfaces in 3-node path are up
117 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
118 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
119 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
120 | | ... | type_subif=two_tags dot1ad
121 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
122 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
123 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
124 | | ... | type_subif=two_tags dot1ad
125 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
126 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
127 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
128 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
129 | | ... | ${vlan2_index} | pop-2
130 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
131 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
132 | | ...                                     | ${bd_id1}
133 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
134 | | ...                                     | ${bd_id1}
135 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
136 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
137 | | ...                                     | ${bd_id1}
138 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
139 | | ...                                     | ${bd_id1}
140 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
141 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
142 | | ... | ${tg_to_dut2} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
143 | | ... | vlan2=${inner_vlan_id1}
144
145 | TC03: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong outer tag used (DUT1) switch ICMPv4 between two TG links
146 | | [Documentation]
147 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
148 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
149 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
150 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
151 | | ... | set outer tag different from outer tag set on Dot1ad sub-interface of
152 | | ... | DUT2; on DUT2 configure L2 bridge domain (L2BD) with one interface to
153 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
154 | | ... | pop-2 tagged with Dot1ad tags from one of its interfaces to another
155 | | ... | one method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2;
156 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
157 | | [Tags] | SKIP_PATCH
158 | | Given Path for 3-node testing is set
159 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
160 | | And Interfaces in 3-node path are up
161 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
162 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
163 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
164 | | ... | type_subif=two_tags dot1ad
165 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
166 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
167 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
168 | | ... | type_subif=two_tags dot1ad
169 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
170 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
171 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
172 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
173 | | ... | ${vlan2_index} | pop-2
174 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
175 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
176 | | ...                                     | ${bd_id1}
177 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
178 | | ...                                     | ${bd_id1}
179 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
180 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
181 | | ...                                     | ${bd_id1}
182 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
183 | | ...                                     | ${bd_id1}
184 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
185 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
186 | | ... | ${tg_to_dut2} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
187 | | ... | vlan2=${inner_vlan_id1}
188
189 | TC04: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong outer and inner tags used (DUT1) switch ICMPv4 between two TG links
190 | | [Documentation]
191 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
192 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
193 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
194 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
195 | | ... | set tags different from tags set on Dot1ad sub-interface of DUT2;
196 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG
197 | | ... | and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-2
198 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
199 | | ... | method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2; verify
200 | | ... | that packet is not received. [Ref] IEEE 802.1ad
201 | | [Tags] | SKIP_PATCH
202 | | Given Path for 3-node testing is set
203 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
204 | | And Interfaces in 3-node path are up
205 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
206 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
207 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
208 | | ... | type_subif=two_tags dot1ad
209 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
210 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
211 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
212 | | ... | type_subif=two_tags dot1ad
213 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
214 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
215 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
216 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
217 | | ... | ${vlan2_index} | pop-2
218 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
219 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
220 | | ...                                     | ${bd_id1}
221 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
222 | | ...                                     | ${bd_id1}
223 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
224 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
225 | | ...                                     | ${bd_id1}
226 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
227 | | ...                                     | ${bd_id1}
228 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
229 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
230 | | ... | ${tg_to_dut2} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
231 | | ... | vlan2=${inner_vlan_id1}
232
233 | TC05: DUT1 and DUT2 with L2BD and VLAN translate-2-2 switch ICMPv6 between two TG links
234 | | [Documentation]
235 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
236 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
237 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
238 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method;
239 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG and
240 | | ... | one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
241 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
242 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
243 | | ... | that packet is received. [Ref] IEEE 802.1ad
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 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
248 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
249 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
250 | | ... | type_subif=two_tags dot1ad
251 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
252 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
253 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
254 | | ... | type_subif=two_tags dot1ad
255 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
256 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
257 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
258 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
259 | | ... | ${vlan2_index} | pop-2
260 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
261 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
262 | | ...                                     | ${bd_id1}
263 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
264 | | ...                                     | ${bd_id1}
265 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
266 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
267 | | ...                                     | ${bd_id1}
268 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
269 | | ...                                     | ${bd_id1}
270 | | Then Send and receive ICMP Packet
271 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip6}
272 | | ... | dst_ip=${dst_ip6} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
273 | | ... | vlan2=${inner_vlan_id1}
274
275 | TC06: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong inner tag used (DUT1) switch ICMPv6 between two TG links
276 | | [Documentation]
277 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
278 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
279 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
280 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
281 | | ... | set inner tag different from inner tag set on Dot1ad sub-interface of
282 | | ... | DUT2; on DUT2 configure L2 bridge domain (L2BD) with one interface to
283 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
284 | | ... | pop-1 tagged with Dot1ad tags from one of its interfaces to another
285 | | ... | one method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2;
286 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
287 | | [Tags] | SKIP_PATCH
288 | | Given Path for 3-node testing is set
289 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
290 | | And Interfaces in 3-node path are up
291 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
292 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
293 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
294 | | ... | type_subif=two_tags dot1ad
295 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
296 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
297 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
298 | | ... | type_subif=two_tags dot1ad
299 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
300 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
301 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
302 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
303 | | ... | ${vlan2_index} | pop-2
304 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
305 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
306 | | ...                                     | ${bd_id1}
307 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
308 | | ...                                     | ${bd_id1}
309 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
310 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
311 | | ...                                     | ${bd_id1}
312 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
313 | | ...                                     | ${bd_id1}
314 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
315 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
316 | | ... | ${tg_to_dut2} | src_ip=${src_ip6} | dst_ip=${dst_ip6} | encaps=Dot1ad
317 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
318
319 | TC07: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong outer tag used (DUT1) switch ICMPv6 between two TG links
320 | | [Documentation]
321 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
322 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
323 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
324 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
325 | | ... | set outer tag different from outer tag set on Dot1ad sub-interface of
326 | | ... | DUT2; on DUT2 configure L2 bridge domain (L2BD) with one interface to
327 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
328 | | ... | pop-1 tagged with Dot1ad tags from one of its interfaces to another
329 | | ... | one method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2;
330 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
331 | | [Tags] | SKIP_PATCH
332 | | Given Path for 3-node testing is set
333 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
334 | | And Interfaces in 3-node path are up
335 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
336 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
337 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
338 | | ... | type_subif=two_tags dot1ad
339 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
340 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
341 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
342 | | ... | type_subif=two_tags dot1ad
343 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
344 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
345 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
346 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
347 | | ... | ${vlan2_index} | pop-2
348 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
349 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
350 | | ...                                     | ${bd_id1}
351 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
352 | | ...                                     | ${bd_id1}
353 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
354 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
355 | | ...                                     | ${bd_id1}
356 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
357 | | ...                                     | ${bd_id1}
358 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
359 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
360 | | ... | ${tg_to_dut2} | src_ip=${src_ip6} | dst_ip=${dst_ip6} | encaps=Dot1ad
361 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
362
363 | TC08: DUT1 and DUT2 with L2BD and VLAN translate-2-2 with wrong outer and inner tags used (DUT1) switch ICMPv6 between two TG links
364 | | [Documentation]
365 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
366 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
367 | | ... | bridge domain (L2BD) with one interface to DUT2 and one Dot1ad
368 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
369 | | ... | set tags different from tags set on Dot1ad sub-interface of DUT2;
370 | | ... | on DUT2 configure L2 bridge domain (L2BD) with one interface to TG
371 | | ... | and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
372 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
373 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
374 | | ... | that packet is not received. [Ref] IEEE 802.1ad
375 | | [Tags] | SKIP_PATCH
376 | | Given Path for 3-node testing is set
377 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
378 | | And Interfaces in 3-node path are up
379 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
380 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
381 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
382 | | ... | type_subif=two_tags dot1ad
383 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
384 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
385 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
386 | | ... | type_subif=two_tags dot1ad
387 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
388 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
389 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
390 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
391 | | ... | ${vlan2_index} | pop-2
392 | | And Bridge domain on DUT node is created | ${dut1_node} | ${bd_id1}
393 | | And Interface is added to bridge domain | ${dut1_node} | ${dut1_to_dut2}
394 | | ...                                     | ${bd_id1}
395 | | And Interface is added to bridge domain | ${dut1_node} | ${vlan1_index}
396 | | ...                                     | ${bd_id1}
397 | | And Bridge domain on DUT node is created | ${dut2_node} | ${bd_id1}
398 | | And Interface is added to bridge domain | ${dut2_node} | ${dut2_to_tg}
399 | | ...                                     | ${bd_id1}
400 | | And Interface is added to bridge domain | ${dut2_node} | ${vlan2_index}
401 | | ...                                     | ${bd_id1}
402 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
403 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
404 | | ... | ${tg_to_dut2} | src_ip=${src_ip6} | dst_ip=${dst_ip6} | encaps=Dot1ad
405 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}