CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / vpp / func / l2xc / eth2p-dot1ad-l2xcbase-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/shared/default.robot
16 | Resource | resources/libraries/robot/shared/testing_path.robot
17 | Resource | resources/libraries/robot/l2/tagging.robot
18 | Resource | resources/libraries/robot/l2/l2_traffic.robot
19 | Library  | resources.libraries.python.Trace
20 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | HW_ENV | VM_ENV | SKIP_VPP_PATCH
21 | Test Setup | Set up functional test
22 | Test Teardown | Tear down functional test
23 | Documentation | *L2XC with VLAN tag rewrite test cases - translate-2-2*
24 | ...
25 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
26 | ... | with single links between nodes.
27 | ... | *[Enc] Packet encapsulations:* Eth-dot1ad-IPv4-ICMPv4 or
28 | ... | Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv4-ICMPv4 or
29 | ... | Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/IPv6.
30 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 cross-connect
31 | ... | (L2XC) switching between VLAN sub-interface with VLAN tag rewrite
32 | ... | translate-2-2 method of interface towards TG and interface towards DUT2.
33 | ... | DUT2 is configured configured with L2 cross-connect (L2XC) switching
34 | ... | between VLAN sub-interface with VLAN tag rewrite pop-2 method
35 | ... | of interface towards DUT1 and interface towards TG.
36 | ... | *[Ver] TG verification:* Test ICMPv4 Echo Request packets are
37 | ... | sent from TG on link to DUT1 and received in TG on link form DUT2;
38 | ... | on receive TG verifies packets for correctness and their IPv4 src-addr,
39 | ... | dst-addr and MAC addresses.
40 | ... | *[Ref] Applicable standard specifications:* IEEE 802.1q, IEEE 802.1ad.
41
42 *** Variables ***
43 | ${subid}= | 10
44
45 | ${outer_vlan_id1}= | 110
46 | ${outer_vlan_id2}= | 120
47 | ${outer_vlan_wrong}= | 150
48
49 | ${inner_vlan_id1}= | 210
50 | ${inner_vlan_id2}= | 220
51 | ${inner_vlan_wrong}= | 250
52
53 | ${src_ip}= | 3ffe:63::1
54 | ${dst_ip}= | 3ffe:63::2
55
56 *** Test Cases ***
57 | TC01: DUT1 and DUT2 with L2XC and VLAN translate-2-2 switch ICMPv4 between two TG links
58 | | [Documentation]
59 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
60 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
61 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
62 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method;
63 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG and
64 | | ... | one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
65 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
66 | | ... | method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2; verify
67 | | ... | that packet is received. [Ref] IEEE 802.1ad
68 | | Given Configure path in 3-node circular topology
69 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
70 | | And Set interfaces in 3-node circular topology up
71 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
72 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
73 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
74 | | ... | type_subif=two_tags dot1ad
75 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
76 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
77 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
78 | | ... | type_subif=two_tags dot1ad
79 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
80 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
81 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
82 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
83 | | ... | ${vlan2_index} | pop-2
84 | | And Connect interfaces and VLAN sub-interfaces using L2XC
85 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
86 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
87 | | Then Send ICMP packet and verify received packet
88 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | encaps=Dot1ad
89 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
90
91 | TC02: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong inner tag used (DUT1) switch ICMPv4 between two TG links
92 | | [Documentation]
93 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
94 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
95 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
96 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
97 | | ... | set inner tag different from inner tag set on Dot1ad sub-interface of
98 | | ... | DUT2; on DUT2 configure L2 cross-connect (L2XC) with one interface to
99 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
100 | | ... | pop-1 tagged with Dot1ad tags from one of its interfaces to another one
101 | | ... | method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2; verify
102 | | ... | that packet is not received. [Ref] IEEE 802.1ad
103 | | [Tags] | SKIP_PATCH
104 | | Given Configure path in 3-node circular topology
105 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
106 | | And Set interfaces in 3-node circular topology up
107 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
108 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
109 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
110 | | ... | type_subif=two_tags dot1ad
111 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
112 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
113 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
114 | | ... | type_subif=two_tags dot1ad
115 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
116 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
117 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
118 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
119 | | ... | ${vlan2_index} | pop-2
120 | | And Connect interfaces and VLAN sub-interfaces using L2XC
121 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
122 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
123 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
124 | | ... | Send ICMP packet and verify received packet | ${tg_node} | ${tg_to_dut1}
125 | | ... | ${tg_to_dut2} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
126 | | ... | vlan2=${inner_vlan_id1}
127
128 | TC03: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong outer tag used (DUT1) switch ICMPv4 between two TG links
129 | | [Documentation]
130 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
131 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
132 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
133 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
134 | | ... | set outer tag different from outer tag set on Dot1ad sub-interface of
135 | | ... | DUT2; on DUT2 configure L2 cross-connect (L2XC) with one interface to
136 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
137 | | ... | pop-1 tagged with Dot1ad tags from one of its interfaces to another
138 | | ... | one method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2;
139 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
140 | | [Tags] | SKIP_PATCH
141 | | Given Configure path in 3-node circular topology
142 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
143 | | And Set interfaces in 3-node circular topology up
144 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
145 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
146 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
147 | | ... | type_subif=two_tags dot1ad
148 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
149 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
150 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
151 | | ... | type_subif=two_tags dot1ad
152 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
153 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
154 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
155 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
156 | | ... | ${vlan2_index} | pop-2
157 | | And Connect interfaces and VLAN sub-interfaces using L2XC
158 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
159 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
160 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
161 | | ... | Send ICMP packet and verify received packet | ${tg_node} | ${tg_to_dut1}
162 | | ... | ${tg_to_dut2} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
163 | | ... | vlan2=${inner_vlan_id1}
164
165 | TC04: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong outer and inner tags used (DUT1) switch ICMPv4 between two TG links
166 | | [Documentation]
167 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv4-ICMPv4 on TG-DUT1 and \
168 | | ... | on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2. [Cfg] On DUT1 configure L2
169 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
170 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
171 | | ... | set tags different from tags set on Dot1ad sub-interface of DUT2;
172 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG
173 | | ... | and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
174 | | ... | tagged with Dot1ad tags from one of its interfaces to another one
175 | | ... | method. [Ver] Make TG send ICMPv4 Echo Req via DUT1 and DUT2; verify
176 | | ... | that packet is not received. [Ref] IEEE 802.1ad
177 | | [Tags] | SKIP_PATCH
178 | | Given Configure path in 3-node circular topology
179 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
180 | | And Set interfaces in 3-node circular topology up
181 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
182 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
183 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
184 | | ... | type_subif=two_tags dot1ad
185 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
186 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
187 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
188 | | ... | type_subif=two_tags dot1ad
189 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
190 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
191 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
192 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
193 | | ... | ${vlan2_index} | pop-2
194 | | And Connect interfaces and VLAN sub-interfaces using L2XC
195 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
196 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
197 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
198 | | ... | Send ICMP packet and verify received packet | ${tg_node} | ${tg_to_dut1}
199 | | ... | ${tg_to_dut2} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
200 | | ... | vlan2=${inner_vlan_id1}
201
202 | TC05: DUT1 and DUT2 with L2XC and VLAN translate-2-2 switch ICMPv6 between two TG links
203 | | [Documentation]
204 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
205 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
206 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
207 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method;
208 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG and
209 | | ... | one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
210 | | ... | tagegd with Dot1ad tags from one of its interfaces to another one
211 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
212 | | ... | that packet is received. [Ref] IEEE 802.1ad
213 | | Given Configure path in 3-node circular topology
214 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
215 | | And Set interfaces in 3-node circular topology up
216 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
217 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
218 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
219 | | ... | type_subif=two_tags dot1ad
220 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
221 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
222 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
223 | | ... | type_subif=two_tags dot1ad
224 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
225 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
226 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
227 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
228 | | ... | ${vlan2_index} | pop-2
229 | | And Connect interfaces and VLAN sub-interfaces using L2XC
230 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
231 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
232 | | Then Send ICMP packet and verify received packet
233 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
234 | | ... | dst_ip=${dst_ip} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
235 | | ... | vlan2=${inner_vlan_id1}
236
237 | TC06: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong inner tag used (DUT1) switch ICMPv6 between two TG links
238 | | [Documentation]
239 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
240 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
241 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
242 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
243 | | ... | set inner tag different from inner tag set on Dot1ad sub-interface of
244 | | ... | DUT2; on DUT2 configure L2 cross-connect (L2XC) with one interface to
245 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
246 | | ... | pop-1 tagegd with Dot1ad tags from one of its interfaces to another one
247 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
248 | | ... | that packet is not received. [Ref] IEEE 802.1ad
249 | | [Tags] | SKIP_PATCH
250 | | Given Configure path in 3-node circular topology
251 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
252 | | And Set interfaces in 3-node circular topology up
253 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
254 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
255 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
256 | | ... | type_subif=two_tags dot1ad
257 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
258 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
259 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
260 | | ... | type_subif=two_tags dot1ad
261 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
262 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
263 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
264 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
265 | | ... | ${vlan2_index} | pop-2
266 | | And Connect interfaces and VLAN sub-interfaces using L2XC
267 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
268 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
269 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
270 | | ... | Send ICMP packet and verify received packet | ${tg_node} | ${tg_to_dut1}
271 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
272 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
273
274 | TC07: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong outer tag used (DUT1) switch ICMPv6 between two TG links
275 | | [Documentation]
276 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
277 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
278 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
279 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
280 | | ... | set outer tag different from outer tag set on Dot1ad sub-interface of
281 | | ... | DUT2; on DUT2 configure L2 cross-connect (L2XC) with one interface to
282 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
283 | | ... | pop-1 tagegd with Dot1ad tags from one of its interfaces to another
284 | | ... | one method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2;
285 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
286 | | [Tags] | SKIP_PATCH
287 | | Given Configure path in 3-node circular topology
288 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
289 | | And Set interfaces in 3-node circular topology up
290 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
291 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
292 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
293 | | ... | type_subif=two_tags dot1ad
294 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
295 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
296 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
297 | | ... | type_subif=two_tags dot1ad
298 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
299 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
300 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
301 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
302 | | ... | ${vlan2_index} | pop-2
303 | | And Connect interfaces and VLAN sub-interfaces using L2XC
304 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
305 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
306 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
307 | | ... | Send ICMP packet and verify received packet | ${tg_node} | ${tg_to_dut1}
308 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
309 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
310
311 | TC08: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong outer and inner tags used (DUT1) switch ICMPv6 between two TG links
312 | | [Documentation]
313 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
314 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
315 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
316 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
317 | | ... | set tags different from tags set on Dot1ad sub-interface of DUT2;
318 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG
319 | | ... | and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
320 | | ... | tagegd with Dot1ad tags from one of its interfaces to another one
321 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
322 | | ... | that packet is not received. [Ref] IEEE 802.1ad
323 | | [Tags] | SKIP_PATCH
324 | | Given Configure path in 3-node circular topology
325 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
326 | | And Set interfaces in 3-node circular topology up
327 | | ${vlan1_name} | ${vlan1_index}= | When Create tagged sub-interface
328 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
329 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
330 | | ... | type_subif=two_tags dot1ad
331 | | ${vlan2_name} | ${vlan2_index}= | And Create tagged sub-interface
332 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
333 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
334 | | ... | type_subif=two_tags dot1ad
335 | | And Configure L2 tag rewrite method on interface | ${dut1_node}
336 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
337 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
338 | | And Configure L2 tag rewrite method on interface | ${dut2_node}
339 | | ... | ${vlan2_index} | pop-2
340 | | And Connect interfaces and VLAN sub-interfaces using L2XC
341 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
342 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
343 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
344 | | ... | Send ICMP packet and verify received packet | ${tg_node} | ${tg_to_dut1}
345 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
346 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}