9557fb9d6b9cbeead194c55ed967c29bc70fd0af
[csit.git] / tests / func / vlan / vlan_tag_translate_l2_xconnect_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/testing_path.robot
17 | Resource | resources/libraries/robot/tagging.robot
18 | Resource | resources/libraries/robot/l2_traffic.robot
19 | Library  | resources.libraries.python.Trace
20 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | HW_ENV | VM_ENV
21 | Test Setup | Setup all DUTs before test
22 | Suite Setup | Setup all TGs before traffic script
23 | Test Teardown | Run Keywords | Show Packet Trace on All DUTs | ${nodes}
24 | ...           | AND          | Show vpp trace dump on all DUTs
25 | Documentation | *L2 cross-connect with VLAN tag rewrite test cases - IPv6*
26 | ...
27 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
28 | ... | with single links between nodes.
29 | ... | *[Enc] Packet encapsulations:* Eth-dot1q-IPv6-ICMPv6 or
30 | ... | Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv6-ICMPv6
31 | ... | on TG-DUT2 for L2 switching of IPv6.
32 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 cross-connect
33 | ... | (L2XC) switching between VLAN sub-interface with VLAN tag rewrite
34 | ... | translate-1-1 method of interface towards TG and interface towards DUT2.
35 | ... | DUT2 is configured configured with L2 cross-connect (L2XC) switching
36 | ... | between VLAN sub-interface with VLAN tag rewrite pop-1 method
37 | ... | of interface towards DUT1 and 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 | ${subid}= | 10
46
47 | ${outer_vlan_id1}= | 110
48 | ${outer_vlan_id2}= | 120
49 | ${outer_vlan_wrong}= | 150
50
51 | ${inner_vlan_id1}= | 210
52 | ${inner_vlan_id2}= | 220
53 | ${inner_vlan_wrong}= | 250
54
55 | ${src_ip}= | 3ffe:63::1
56 | ${dst_ip}= | 3ffe:63::2
57
58 *** Test Cases ***
59 | TC01: DUT1 and DUT2 with L2XC and VLAN translate-1-1 (DUT1) switch ICMPv6 between two TG links
60 | | [Documentation]
61 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1 and \
62 | | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
63 | | ... | cross-connect (L2XC) with one interface to DUT2 and one VLAN
64 | | ... | sub-interface towards TG with VLAN tag rewrite translate-1-1 method;
65 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG
66 | | ... | and one VLAN sub-interface towards DUT1 with VLAN tag rewrite pop-1
67 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req tagegd with one Dot1q tag
68 | | ... | from one of its interfaces to another one via DUT1 and DUT2; verify
69 | | ... | that packet is received. [Ref] IEEE 802.1q
70 | | Given Path for 3-node testing is set
71 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
72 | | And Interfaces in 3-node path are up
73 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
74 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
75 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
76 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
77 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
78 | | ... | ${vlan1_index} | translate-1-1 | tag1_id=${outer_vlan_id2}
79 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
80 | | ... | ${vlan2_index} | pop-1
81 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
82 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
83 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
84 | | Then Send and receive ICMP Packet
85 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
86 | | ... | dst_ip=${dst_ip} | encaps=Dot1q | vlan1=${outer_vlan_id1}
87
88 | TC02: DUT1 and DUT2 with L2XC and VLAN translate-1-1 with wrong tag used (DUT1) switch ICMPv6 between two TG links
89 | | [Documentation]
90 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1 and \
91 | | ... | DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
92 | | ... | cross-connect (L2XC) with one interface to DUT2 and one VLAN
93 | | ... | sub-interface towards TG with VLAN tag rewrite translate-1-1 method
94 | | ... | to set tag different from tag set on VLAN sub-interface of DUT2;
95 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG
96 | | ... | and one VLAN sub-interface towards DUT1 with VLAN tag rewrite pop-1
97 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req tagegd with one Dot1q tag
98 | | ... | from one of its interfaces to another one via DUT1 and DUT2; verify
99 | | ... | that packet is not received. [Ref] IEEE 802.1q
100 | | [Tags] | SKIP_PATCH
101 | | Given Path for 3-node testing is set
102 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
103 | | And Interfaces in 3-node path are up
104 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
105 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
106 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
107 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
108 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
109 | | ... | ${vlan1_index} | translate-1-1 | tag1_id=${outer_vlan_wrong}
110 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
111 | | ... | ${vlan2_index} | pop-1
112 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
113 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
114 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
115 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
116 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
117 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
118 | | ... | vlan1=${outer_vlan_id1}
119
120 | TC03: DUT1 and DUT2 with L2XC and VLAN translate-1-2 (DUT1) switch ICMPv6 between two TG links
121 | | [Documentation]
122 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
123 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
124 | | ... | [Cfg] On DUT1 configure L2 cross-connect (L2XC) with one interface to
125 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
126 | | ... | translate-1-2 method; on DUT2 configure L2 cross-connect (L2XC) with
127 | | ... | one interface to TG and one Dot1ad sub-interface towards DUT1 with
128 | | ... | VLAN tag rewrite pop-2 method. [Ver] Make TG send ICMPv6 Echo Req
129 | | ... | tagegd with one Dot1q tag from one of its interfaces to another one
130 | | ... | via DUT1 and DUT2; verify that packet is received.
131 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
132 | | Given Path for 3-node testing is set
133 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
134 | | And Interfaces in 3-node path are up
135 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
136 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
137 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
138 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
139 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
140 | | ... | type_subif=two_tags dot1ad
141 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
142 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
143 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
144 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
145 | | ... | ${vlan2_index} | pop-2
146 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
147 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
148 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
149 | | Then Send and receive ICMP Packet
150 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
151 | | ... | dst_ip=${dst_ip} | encaps=Dot1q | vlan1=${outer_vlan_id1}
152
153 | TC04: DUT1 and DUT2 with L2XC and VLAN translate-1-2 with wrong inner tag used (DUT1) switch ICMPv6 between two TG links
154 | | [Documentation]
155 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
156 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
157 | | ... | [Cfg] On DUT1 configure L2 cross-connect (L2XC) with one interface to
158 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
159 | | ... | translate-1-2 method to set inner tag different from inner tag set on
160 | | ... | Dot1ad sub-interface of DUT2; on DUT2 configure L2 cross-connect with
161 | | ... | one interface to TG and one Dot1ad sub-interface towards DUT1 with
162 | | ... | VLAN tag rewrite pop-2 method. [Ver] Make TG send ICMPv6 Echo Req
163 | | ... | tagegd with one Dot1q tag from one of its interfaces to another one
164 | | ... | via DUT1 and DUT2; verify that packet is not received.
165 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
166 | | [Tags] | SKIP_PATCH
167 | | Given Path for 3-node testing is set
168 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
169 | | And Interfaces in 3-node path are up
170 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
171 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
172 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
173 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
174 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
175 | | ... | type_subif=two_tags dot1ad
176 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
177 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
178 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
179 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
180 | | ... | ${vlan2_index} | pop-2
181 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
182 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
183 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
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} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
187 | | ... | vlan1=${outer_vlan_id1}
188
189 | TC05: DUT1 and DUT2 with L2XC and VLAN translate-1-2 with wrong outer tag used (DUT1) switch ICMPv6 between two TG links
190 | | [Documentation]
191 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
192 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
193 | | ... | [Cfg] On DUT1 configure L2 cross-connect (L2XC) with one interface to
194 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
195 | | ... | translate-1-2 method to set outer tag different from outer tag set on
196 | | ... | Dot1ad sub-interface of DUT2; on DUT2 configure L2 cross-connect with
197 | | ... | one interface to TG and one Dot1ad sub-interface towards DUT1 with
198 | | ... | VLAN tag rewrite pop-2 method. [Ver] Make TG send ICMPv6 Echo Req
199 | | ... | tagegd with one Dot1q tag from one of its interfaces to another one
200 | | ... | via DUT1 and DUT2; verify that packet is not received.
201 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
202 | | [Tags] | SKIP_PATCH
203 | | Given Path for 3-node testing is set
204 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
205 | | And Interfaces in 3-node path are up
206 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
207 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
208 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
209 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
210 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
211 | | ... | type_subif=two_tags dot1ad
212 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
213 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
214 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
215 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
216 | | ... | ${vlan2_index} | pop-2
217 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
218 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
219 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
220 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
221 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
222 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
223 | | ... | vlan1=${outer_vlan_id1}
224
225 | TC06: DUT1 and DUT2 with L2XC and VLAN translate-1-2 with wrong outer and inner tag used (DUT1) switch ICMPv6 between two TG links
226 | | [Documentation]
227 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, \
228 | | ... | Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
229 | | ... | [Cfg] On DUT1 configure L2 cross-connect (L2XC) with one interface to
230 | | ... | DUT2 and one VLAN sub-interface towards TG with VLAN tag rewrite
231 | | ... | translate-1-2 method to set outer and inner tags different from tags
232 | | ... | set on Dot1ad sub-interface of DUT2; on DUT2 configure L2
233 | | ... | cross-connect with one interface to TG and one Dot1ad sub-interface
234 | | ... | towards DUT1 with VLAN tag rewrite pop-2 method. [Ver] Make TG send
235 | | ... | ICMPv6 Echo Req tagegd with one Dot1q tag from one of its interfaces
236 | | ... | to another one via DUT1 and DUT2; verify that packet is not received.
237 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
238 | | [Tags] | SKIP_PATCH
239 | | Given Path for 3-node testing is set
240 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
241 | | And Interfaces in 3-node path are up
242 | | ${vlan1_name} | ${vlan1_index}= | When Vlan Subinterface Created
243 | | ... | ${dut1_node} | ${dut1_to_tg} | ${outer_vlan_id1}
244 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
245 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
246 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
247 | | ... | type_subif=two_tags dot1ad
248 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
249 | | ... | ${vlan1_index} | translate-1-2 | push_dot1q=${False}
250 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
251 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
252 | | ... | ${vlan2_index} | pop-2
253 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
254 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
255 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
256 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
257 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
258 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1q
259 | | ... | vlan1=${outer_vlan_id1}
260
261 | TC07: DUT1 and DUT2 with L2XC and VLAN translate-2-1 (DUT1) switch ICMPv6 between two TG links
262 | | [Documentation]
263 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1, \
264 | | ... | Eth-dot1q-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
265 | | ... | [Cfg] On DUT1 configure L2 cross-connect (L2XC) with one interface to
266 | | ... | DUT2 and one Dot1ad sub-interface towards TG with VLAN tag rewrite
267 | | ... | translate-2-1 method; on DUT2 configure L2 cross-connect (L2XC) with
268 | | ... | one interface to TG and one VLAN sub-interface towards DUT1 with
269 | | ... | VLAN tag rewrite pop-1 method. [Ver] Make TG send ICMPv6 Echo Req
270 | | ... | tagegd with Dot1ad tags from one of its interfaces to another one
271 | | ... | via DUT1 and DUT2; verify that packet is received.
272 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
273 | | Given Path for 3-node testing is set
274 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
275 | | And Interfaces in 3-node path are up
276 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
277 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
278 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
279 | | ... | type_subif=two_tags dot1ad
280 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
281 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
282 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
283 | | ... | ${vlan1_index} | translate-2-1 | tag1_id=${outer_vlan_id2}
284 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
285 | | ... | ${vlan2_index} | pop-1
286 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
287 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
288 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
289 | | Then Send and receive ICMP Packet
290 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
291 | | ... | dst_ip=${dst_ip} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
292 | | ... | vlan2=${inner_vlan_id1}
293
294 | TC08: DUT1 and DUT2 with L2XC and VLAN translate-2-1 with wrong tag used (DUT1) switch ICMPv6 between two TG links
295 | | [Documentation]
296 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1, \
297 | | ... | Eth-dot1q-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2.
298 | | ... | [Cfg] On DUT1 configure L2 cross-connect (L2XC) with one interface to
299 | | ... | DUT2 and one Dot1ad sub-interface towards TG with VLAN tag rewrite
300 | | ... | translate-2-1 method to set tag different from tag set on VLAN
301 | | ... | sub-interface of DUT2; on DUT2 configure L2 cross-connect (L2XC) with
302 | | ... | one interface to TG and one VLAN sub-interface towards DUT1 with
303 | | ... | VLAN tag rewrite pop-1 method. [Ver] Make TG send ICMPv6 Echo Req
304 | | ... | tagegd with Dot1ad tags from one of its interfaces to another one
305 | | ... | via DUT1 and DUT2; verify that packet is not received.
306 | | ... | [Ref] IEEE 802.1q, IEEE 802.1ad
307 | | [Tags] | SKIP_PATCH
308 | | Given Path for 3-node testing is set
309 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
310 | | And Interfaces in 3-node path are up
311 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
312 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
313 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
314 | | ... | type_subif=two_tags dot1ad
315 | | ${vlan2_name} | ${vlan2_index}= | And Vlan Subinterface Created
316 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${outer_vlan_id2}
317 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
318 | | ... | ${vlan1_index} | translate-2-1 | tag1_id=${outer_vlan_wrong}
319 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
320 | | ... | ${vlan2_index} | pop-1
321 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
322 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
323 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
324 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
325 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
326 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
327 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
328
329 | TC09: DUT1 and DUT2 with L2XC and VLAN translate-2-2 switch ICMPv6 between two TG links
330 | | [Documentation]
331 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
332 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
333 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
334 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method;
335 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG and
336 | | ... | one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
337 | | ... | tagegd with Dot1ad tags from one of its interfaces to another one
338 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
339 | | ... | that packet is received. [Ref] IEEE 802.1ad
340 | | Given Path for 3-node testing is set
341 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
342 | | And Interfaces in 3-node path are up
343 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
344 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
345 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
346 | | ... | type_subif=two_tags dot1ad
347 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
348 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
349 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
350 | | ... | type_subif=two_tags dot1ad
351 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
352 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
353 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_id2}
354 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
355 | | ... | ${vlan2_index} | pop-2
356 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
357 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
358 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
359 | | Then Send and receive ICMP Packet
360 | | ... | ${tg_node} | ${tg_to_dut1} | ${tg_to_dut2} | src_ip=${src_ip}
361 | | ... | dst_ip=${dst_ip} | encaps=Dot1ad | vlan1=${outer_vlan_id1}
362 | | ... | vlan2=${inner_vlan_id1}
363
364 | TC10: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong inner tag used (DUT1) switch ICMPv6 between two TG links
365 | | [Documentation]
366 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
367 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
368 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
369 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
370 | | ... | set inner tag different from inner tag set on Dot1ad sub-interface of
371 | | ... | DUT2; on DUT2 configure L2 cross-connect (L2XC) with one interface to
372 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
373 | | ... | pop-1 tagegd with Dot1ad tags from one of its interfaces to another one
374 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
375 | | ... | that packet is not received. [Ref] IEEE 802.1ad
376 | | [Tags] | SKIP_PATCH
377 | | Given Path for 3-node testing is set
378 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
379 | | And Interfaces in 3-node path are up
380 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
381 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
382 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
383 | | ... | type_subif=two_tags dot1ad
384 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
385 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
386 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
387 | | ... | type_subif=two_tags dot1ad
388 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
389 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
390 | | ... | tag1_id=${outer_vlan_id2} | tag2_id=${inner_vlan_wrong}
391 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
392 | | ... | ${vlan2_index} | pop-2
393 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
394 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
395 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
396 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
397 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
398 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
399 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
400
401 | TC11: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong outer tag used (DUT1) switch ICMPv6 between two TG links
402 | | [Documentation]
403 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
404 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
405 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
406 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
407 | | ... | set outer tag different from outer tag set on Dot1ad sub-interface of
408 | | ... | DUT2; on DUT2 configure L2 cross-connect (L2XC) with one interface to
409 | | ... | TG and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite
410 | | ... | pop-1 tagegd with Dot1ad tags from one of its interfaces to another
411 | | ... | one method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2;
412 | | ... | verify that packet is not received. [Ref] IEEE 802.1ad
413 | | [Tags] | SKIP_PATCH
414 | | Given Path for 3-node testing is set
415 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
416 | | And Interfaces in 3-node path are up
417 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
418 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
419 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
420 | | ... | type_subif=two_tags dot1ad
421 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
422 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
423 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
424 | | ... | type_subif=two_tags dot1ad
425 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
426 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
427 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_id2}
428 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
429 | | ... | ${vlan2_index} | pop-2
430 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
431 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
432 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
433 | | Then Run Keyword And Expect Error | ICMP echo Rx timeout
434 | | ... | Send and receive ICMP Packet | ${tg_node} | ${tg_to_dut1}
435 | | ... | ${tg_to_dut2} | src_ip=${src_ip} | dst_ip=${dst_ip} | encaps=Dot1ad
436 | | ... | vlan1=${outer_vlan_id1} | vlan2=${inner_vlan_id1}
437
438 | TC12: DUT1 and DUT2 with L2XC and VLAN translate-2-2 with wrong outer and inner tags used (DUT1) switch ICMPv6 between two TG links
439 | | [Documentation]
440 | | ... | [Top] TG-DUT1-DUT2-TG. [Enc] Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and \
441 | | ... | on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUT2. [Cfg] On DUT1 configure L2
442 | | ... | cross-connect (L2XC) with one interface to DUT2 and one Dot1ad
443 | | ... | sub-interface towards TG with VLAN tag rewrite translate-2-2 method to
444 | | ... | set tags different from tags set on Dot1ad sub-interface of DUT2;
445 | | ... | on DUT2 configure L2 cross-connect (L2XC) with one interface to TG
446 | | ... | and one Dot1ad sub-interface towards DUT1 with VLAN tag rewrite pop-1
447 | | ... | tagegd with Dot1ad tags from one of its interfaces to another one
448 | | ... | method. [Ver] Make TG send ICMPv6 Echo Req via DUT1 and DUT2; verify
449 | | ... | that packet is not received. [Ref] IEEE 802.1ad
450 | | [Tags] | SKIP_PATCH
451 | | Given Path for 3-node testing is set
452 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
453 | | And Interfaces in 3-node path are up
454 | | ${vlan1_name} | ${vlan1_index}= | When Tagged Subinterface Created
455 | | ... | ${dut1_node} | ${dut1_to_tg} | ${subid}
456 | | ... | outer_vlan_id=${outer_vlan_id1} | inner_vlan_id=${inner_vlan_id1}
457 | | ... | type_subif=two_tags dot1ad
458 | | ${vlan2_name} | ${vlan2_index}= | And Tagged Subinterface Created
459 | | ... | ${dut2_node} | ${dut2_to_dut1} | ${subid}
460 | | ... | outer_vlan_id=${outer_vlan_id2} | inner_vlan_id=${inner_vlan_id2}
461 | | ... | type_subif=two_tags dot1ad
462 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut1_node}
463 | | ... | ${vlan1_index} | translate-2-2 | push_dot1q=${False}
464 | | ... | tag1_id=${outer_vlan_wrong} | tag2_id=${inner_vlan_wrong}
465 | | And L2 Tag Rewrite Method Is Set On Interface | ${dut2_node}
466 | | ... | ${vlan2_index} | pop-2
467 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
468 | | ... | ${dut1_node} | ${dut1_to_dut2} | ${vlan1_index}
469 | | ... | ${dut2_node} | ${dut2_to_tg} | ${vlan2_index}
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}