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