blob: 78e25c2970b835ff626960fd981e219b44708322 [file] [log] [blame]
Jonghwan Hyun812c70f2018-02-16 16:33:16 -08001"""
2Copyright 2017 Open Networking Foundation ( ONF )
3
4Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>,
5the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>,
6or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg>
7
8 TestON is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 2 of the License, or
11 ( at your option ) any later version.
12
13 TestON is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with TestON. If not, see <http://www.gnu.org/licenses/>.
20"""
21class SRDynamicConf:
22 def __init__( self ):
23 self.default = ''
24
25 # TODO: Reduce the number of test cases by multiplying different types of parameters in a single test case
26 # (e.g., topology, onosNodes, vlan)
27
28 def CASE11( self, main ):
29 """
30 Tests connectivity after changing vlan configuration of P1 from untagged 10 to tagged [10].
31 A vlan configuration of the host connected to P1 is also changed to tagged 10.
32
33 Sets up 3 ONOS instances
34 Starts 0x1 single ToR topology
35 Pingall
36 Changes host vlan configuration
37 Changes interface vlan configuration
38 Pingall
39 """
40 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
41 SRDynamicConfTest.runTest( main,
42 testIndex=11,
43 topology='0x1',
44 onosNodes=3,
45 description='Changing port configuration from untagged 10 to tagged 10' )
46
47 def CASE12( self, main ):
48 """
49 Tests connectivity after changing vlan configuration of P1 from untagged 10 to tagged [10].
50 A vlan configuration of the host connected to P1 is also changed to tagged 10.
51
52 Sets up 3 ONOS instances
53 Starts 0x2 dual-homed ToR topology
54 Pingall
55 Changes host vlan configuration
56 Changes interface vlan configuration
57 Pingall
58 """
59 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
60 SRDynamicConfTest.runTest( main,
61 testIndex=12,
62 topology='0x2',
63 onosNodes=3,
64 description='Changing port configuration from untagged 10 to tagged 10' )
65
66 def CASE13( self, main ):
67 """
68 Tests connectivity after changing vlan configuration of P1 from untagged 10 to tagged [10].
69 A vlan configuration of the host connected to P1 is also changed to tagged 10.
70
71 Sets up 3 ONOS instances
72 Starts 2x2 leaf-spine topology
73 Pingall
74 Changes host vlan configuration
75 Changes interface vlan configuration
76 Pingall
77 """
78 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
79 SRDynamicConfTest.runTest( main,
80 testIndex=13,
81 topology='2x2',
82 onosNodes=3,
83 description='Changing port configuration from untagged 10 to tagged 10' )
84
85 def CASE14( self, main ):
86 """
87 Tests connectivity after changing vlan configuration of P1 from untagged 10 to tagged [10].
88 A vlan configuration of the host connected to P1 is also changed to tagged 10.
89
90 Sets up 3 ONOS instances
91 Starts 2x4 dual-homed leaf-spine topology
92 Pingall
93 Changes host vlan configuration
94 Changes interface vlan configuration
95 Pingall
96 """
97 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
98 SRDynamicConfTest.runTest( main,
99 testIndex=14,
100 topology='2x4',
101 onosNodes=3,
102 description='Changing port configuration from untagged 10 to tagged 10' )
103
104 def CASE21( self, main ):
105 """
106 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to untagged 20.
107 Port P2 is configured as untagged 10 and another port P3 and P4 as tagged 20 and native 10.
108
109 Sets up 3 ONOS instances
110 Starts 0x1 single ToR topology
111 Pingall
112 Changes interface vlan configuration
113 Pingall
114 """
115 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
116 SRDynamicConfTest.runTest( main,
117 testIndex=21,
118 topology='0x1',
119 onosNodes=3,
120 description='Changing port configuration from untagged 10 to '
121 'tagged 20 and native 10',
122 vlan=( 0, 0, 20, 20 ) )
123
124 def CASE22( self, main ):
125 """
126 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to untagged 20.
127 Port P2 is configured as untagged 10 and another port P3 and P4 as tagged 20 and native 10.
128
129 Sets up 3 ONOS instances
130 Starts 0x2 dual-homed ToR topology
131 Pingall
132 Changes interface vlan configuration
133 Pingall
134 """
135 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
136 SRDynamicConfTest.runTest( main,
137 testIndex=22,
138 topology='0x2',
139 onosNodes=3,
140 description='Changing port configuration from untagged 10 to '
141 'tagged 20 and native 10',
142 vlan=( 0, 0, 20, 20 ) )
143
144 def CASE23( self, main ):
145 """
146 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to untagged 20.
147 Port P2 is configured as untagged 10 and another port P3 and P4 as tagged 20 and native 10.
148
149 Sets up 3 ONOS instances
150 Starts 2x2 leaf-spine topology
151 Pingall
152 Changes interface vlan configuration
153 Pingall
154 """
155 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
156 SRDynamicConfTest.runTest( main,
157 testIndex=23,
158 topology='2x2',
159 onosNodes=3,
160 description='Changing port configuration from untagged 10 to '
161 'tagged 20 and native 10',
162 vlan=( 0, 0, 20, 20 ) )
163
164 def CASE24( self, main ):
165 """
166 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to untagged 20.
167 Port P2 is configured as untagged 10 and another port P3 and P4 as tagged 20 and native 10.
168
169 Sets up 3 ONOS instances
170 Starts 2x4 dual-homed leaf-spine topology
171 Pingall
172 Changes interface vlan configuration
173 Pingall
174 """
175 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
176 SRDynamicConfTest.runTest( main,
177 testIndex=24,
178 topology='2x4',
179 onosNodes=3,
180 description='Changing port configuration from untagged 10 to '
181 'tagged 20 and native 10',
182 vlan=( 0, 0, 20, 20 ) )
183
184 def CASE31( self, main ):
185 """
186 Tests connectivity after changing vlan configuration of port P1 and P2 from untagged 10 to untagged 110,
187 newly introduced vlan id.
188 Port P3 and P4 are configured as untagged 20.
189
190 Sets up 3 ONOS instances
191 Starts 0x1 single ToR topology
192 Pingall
193 Changes interface vlan configurations
194 Pingall
195 """
196 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
197 SRDynamicConfTest.runTest( main,
198 testIndex=31,
199 topology='0x1',
200 onosNodes=3,
201 description='Changing port configuration from untagged 10 to untagged 110' )
202
203 def CASE32( self, main ):
204 """
205 Tests connectivity after changing vlan configuration of port P1 and P2 from untagged 10 to untagged 110,
206 newly introduced vlan id.
207 Port P3 and P4 are configured as untagged 20.
208
209 Sets up 3 ONOS instances
210 Starts 0x2 dual-homed ToR topology
211 Pingall
212 Changes interface vlan configurations
213 Pingall
214 """
215 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
216 SRDynamicConfTest.runTest( main,
217 testIndex=32,
218 topology='0x2',
219 onosNodes=3,
220 description='Changing port configuration from untagged 10 to untagged 110' )
221
222 def CASE33( self, main ):
223 """
224 Tests connectivity after changing vlan configuration of port P1 and P2 from untagged 10 to untagged 110,
225 newly introduced vlan id.
226 Port P3 and P4 are configured as untagged 20.
227
228 Sets up 3 ONOS instances
229 Starts 2x2 leaf-spine topology
230 Pingall
231 Changes interface vlan configurations
232 Pingall
233 """
234 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
235 SRDynamicConfTest.runTest( main,
236 testIndex=33,
237 topology='2x2',
238 onosNodes=3,
239 description='Changing port configuration from untagged 10 to untagged 110' )
240
241 def CASE34( self, main ):
242 """
243 Tests connectivity after changing vlan configuration of port P1 and P2 from untagged 10 to untagged 110,
244 newly introduced vlan id.
245 Port P3 and P4 are configured as untagged 20.
246
247 Sets up 3 ONOS instances
248 Starts 2x4 dual-homed leaf-spine topology
249 Pingall
250 Changes interface vlan configurations
251 Pingall
252 """
253 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
254 SRDynamicConfTest.runTest( main,
255 testIndex=34,
256 topology='2x4',
257 onosNodes=3,
258 description='Changing port configuration from untagged 10 to untagged 110' )
259
260 def CASE41( self, main ):
261 """
262 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
263 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
264
265 Sets up 3 ONOS instances
266 Starts 0x1 single ToR topology
267 Pingall
268 Changes host vlan configuration
269 Changes interface vlan configuration
270 Pingall
271 """
272 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
273 SRDynamicConfTest.runTest( main,
274 testIndex=41,
275 topology='0x1',
276 onosNodes=3,
277 description='Changing port configuration from untagged 10 to tagged 20' )
278
279 def CASE42( self, main ):
280 """
281 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
282 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
283
284 Sets up 3 ONOS instances
285 Starts 0x2 dual-homed ToR topology
286 Pingall
287 Changes host vlan configuration
288 Changes interface vlan configuration
289 Pingall
290 """
291 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
292 SRDynamicConfTest.runTest( main,
293 testIndex=42,
294 topology='0x2',
295 onosNodes=3,
296 description='Changing port configuration from untagged 10 to tagged 20' )
297
298 def CASE43( self, main ):
299 """
300 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
301 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
302
303 Sets up 3 ONOS instances
304 Starts 2x2 leaf-spine topology
305 Pingall
306 Changes host vlan configuration
307 Changes interface vlan configuration
308 Pingall
309 """
310 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
311 SRDynamicConfTest.runTest( main,
312 testIndex=43,
313 topology='2x2',
314 onosNodes=3,
315 description='Changing port configuration from untagged 10 to tagged 20' )
316
317 def CASE44( self, main ):
318 """
319 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
320 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
321
322 Sets up 3 ONOS instances
323 Starts 2x4 dual-homed leaf-spine topology
324 Pingall
325 Changes host vlan configuration
326 Changes interface vlan configuration
327 Pingall
328 """
329 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
330 SRDynamicConfTest.runTest( main,
331 testIndex=44,
332 topology='2x4',
333 onosNodes=3,
334 description='Changing port configuration from untagged 10 to tagged 20' )
335
336 def CASE51( self, main ):
337 """
338 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20 with native 10.
339 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
340
341 Sets up 3 ONOS instances
342 Starts 0x1 single ToR topology
343 Pingall
344 Changes interface vlan configuration
345 Pingall
346 """
347 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
348 SRDynamicConfTest.runTest( main,
349 testIndex=51,
350 topology='0x1',
351 onosNodes=3,
352 description='Changing port configuration from untagged 10 to '
353 'tagged 20 with native 10' )
354
355 def CASE52( self, main ):
356 """
357 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20 with native 10.
358 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
359
360 Sets up 3 ONOS instances
361 Starts 0x2 dual-homed ToR topology
362 Pingall
363 Changes interface vlan configuration
364 Pingall
365 """
366 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
367 SRDynamicConfTest.runTest( main,
368 testIndex=52,
369 topology='0x2',
370 onosNodes=3,
371 description='Changing port configuration from untagged 10 to '
372 'tagged 20 with native 10' )
373
374 def CASE53( self, main ):
375 """
376 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20 with native 10.
377 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
378
379 Sets up 3 ONOS instances
380 Starts 2x2 leaf-spine topology
381 Pingall
382 Changes interface vlan configuration
383 Pingall
384 """
385 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
386 SRDynamicConfTest.runTest( main,
387 testIndex=53,
388 topology='2x2',
389 onosNodes=3,
390 description='Changing port configuration from untagged 10 to '
391 'tagged 20 with native 10' )
392
393 def CASE54( self, main ):
394 """
395 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20 with native 10.
396 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
397
398 Sets up 3 ONOS instances
399 Starts 2x4 dual-homed leaf-spine topology
400 Pingall
401 Changes interface vlan configuration
402 Pingall
403 """
404 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
405 SRDynamicConfTest.runTest( main,
406 testIndex=54,
407 topology='2x4',
408 onosNodes=3,
409 description='Changing port configuration from untagged 10 to '
410 'tagged 20 with native 10' )
411
412 def CASE61( self, main ):
413 """
414 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120 with native 110.
415 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
416
417 Sets up 3 ONOS instances
418 Starts 0x1 single ToR topology
419 Pingall
420 Changes interface vlan configuration
421 Pingall
422 """
423 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
424 SRDynamicConfTest.runTest( main,
425 testIndex=61,
426 topology='0x1',
427 onosNodes=3,
428 description='Changing port configuration from untagged 10 to '
429 'tagged 120 with native 110' )
430
431 def CASE62( self, main ):
432 """
433 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120 with native 110.
434 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
435
436 Sets up 3 ONOS instances
437 Starts 0x2 dual-homed ToR topology
438 Pingall
439 Changes interface vlan configuration
440 Pingall
441 """
442 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
443 SRDynamicConfTest.runTest( main,
444 testIndex=62,
445 topology='0x2',
446 onosNodes=3,
447 description='Changing port configuration from untagged 10 to '
448 'tagged 120 with native 110' )
449
450 def CASE63( self, main ):
451 """
452 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120 with native 110.
453 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
454
455 Sets up 3 ONOS instances
456 Starts 2x2 leaf-spine topology
457 Pingall
458 Changes interface vlan configuration
459 Pingall
460 """
461 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
462 SRDynamicConfTest.runTest( main,
463 testIndex=63,
464 topology='2x2',
465 onosNodes=3,
466 description='Changing port configuration from untagged 10 to '
467 'tagged 120 with native 110' )
468
469 def CASE64( self, main ):
470 """
471 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120 with native 110.
472 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
473
474 Sets up 3 ONOS instances
475 Starts 2x4 dual-homed leaf-spine topology
476 Pingall
477 Changes interface vlan configuration
478 Pingall
479 """
480 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
481 SRDynamicConfTest.runTest( main,
482 testIndex=64,
483 topology='2x4',
484 onosNodes=3,
485 description='Changing port configuration from untagged 10 to '
486 'tagged 120 with native 110' )
487
488 def CASE71( self, main ):
489 """
490 Tests connectivity after changing vlan configuration of port P1 from tagged 10 to untagged 10.
491 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
492
493 Sets up 3 ONOS instances
494 Starts 0x1 single ToR topology
495 Pingall
496 Changes host vlan configuration
497 Changes interface vlan configuration
498 Pingall
499 """
500 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
501 SRDynamicConfTest.runTest( main,
502 testIndex=71,
503 topology='0x1',
504 onosNodes=3,
505 description='Changing port configuration from tagged 10 to untagged 10',
506 vlan=( 10, 0, 0, 0 ) )
507
508 def CASE72( self, main ):
509 """
510 Tests connectivity after changing vlan configuration of port P1 from tagged 10 to untagged 10.
511 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
512
513 Sets up 3 ONOS instances
514 Starts 0x2 dual-homed ToR topology
515 Pingall
516 Changes host vlan configuration
517 Changes interface vlan configuration
518 Pingall
519 """
520 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
521 SRDynamicConfTest.runTest( main,
522 testIndex=72,
523 topology='0x2',
524 onosNodes=3,
525 description='Changing port configuration from tagged 10 to untagged 10',
526 vlan=( 10, 0, 0, 0 ) )
527
528 def CASE73( self, main ):
529 """
530 Tests connectivity after changing vlan configuration of port P1 from tagged 10 to untagged 10.
531 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
532
533 Sets up 3 ONOS instances
534 Starts 2x2 leaf-spine topology
535 Pingall
536 Changes host vlan configuration
537 Changes interface vlan configuration
538 Pingall
539 """
540 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
541 SRDynamicConfTest.runTest( main,
542 testIndex=73,
543 topology='2x2',
544 onosNodes=3,
545 description='Changing port configuration from tagged 10 to untagged 10',
546 vlan=( 10, 0, 0, 0 ) )
547
548 def CASE74( self, main ):
549 """
550 Tests connectivity after changing vlan configuration of port P1 from tagged 10 to untagged 10.
551 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
552
553 Sets up 3 ONOS instances
554 Starts 2x4 dual-homed leaf-spine topology
555 Pingall
556 Changes host vlan configuration
557 Changes interface vlan configuration
558 Pingall
559 """
560 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
561 SRDynamicConfTest.runTest( main,
562 testIndex=74,
563 topology='2x4',
564 onosNodes=3,
565 description='Changing port configuration from tagged 10 to untagged 10',
566 vlan=( 10, 0, 0, 0 ) )
567
568 def CASE81( self, main ):
569 """
570 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 20 and native 10.
571 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
572 All hosts are not configured.
573
574 Sets up 3 ONOS instances
575 Starts 0x1 single ToR topology
576 Pingall
577 Changes interface vlan configuration
578 Pingall
579 """
580 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
581 SRDynamicConfTest.runTest( main,
582 testIndex=81,
583 topology='0x1',
584 onosNodes=3,
585 description='Changing port configuration from tagged 20 to '
586 'tagged 20 and native 10' )
587
588 def CASE82( self, main ):
589 """
590 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 20 and native 10.
591 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
592 All hosts are not configured.
593
594 Sets up 3 ONOS instances
595 Starts 0x2 dual-homed ToR topology
596 Pingall
597 Changes interface vlan configuration
598 Pingall
599 """
600 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
601 SRDynamicConfTest.runTest( main,
602 testIndex=82,
603 topology='0x2',
604 onosNodes=3,
605 description='Changing port configuration from tagged 20 to '
606 'tagged 20 and native 10' )
607
608 def CASE83( self, main ):
609 """
610 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 20 and native 10.
611 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
612 All hosts are not configured.
613
614 Sets up 3 ONOS instances
615 Starts 2x2 leaf-spine topology
616 Pingall
617 Changes interface vlan configuration
618 Pingall
619 """
620 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
621 SRDynamicConfTest.runTest( main,
622 testIndex=83,
623 topology='2x2',
624 onosNodes=3,
625 description='Changing port configuration from tagged 20 to '
626 'tagged 20 and native 10' )
627
628 def CASE84( self, main ):
629 """
630 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 20 and native 10.
631 Port P2 is configured as untagged 10 and another port P3 and P4 as untagged 20.
632 All hosts are not configured.
633
634 Sets up 3 ONOS instances
635 Starts 2x4 dual-homed leaf-spine topology
636 Pingall
637 Changes interface vlan configuration
638 Pingall
639 """
640 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
641 SRDynamicConfTest.runTest( main,
642 testIndex=84,
643 topology='2x4',
644 onosNodes=3,
645 description='Changing port configuration from tagged 20 to '
646 'tagged 20 and native 10' )
647
648 def CASE91( self, main ):
649 """
650 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 10 to
651 tagged 120 with native 110 (both newly introduced VLAN IDs).
652 Port P3 and P4 are configured as untagged 20.
653 Host h1 and h2 are congifured as VLAN 10, h3 and h4 are not configured.
654
655 Sets up 3 ONOS instances
656 Starts 0x1 single ToR topology
657 Pingall
658 Changes host vlan configuration
659 Changes interface vlan configuration
660 Pingall
661 """
662 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
663 SRDynamicConfTest.runTest( main,
664 testIndex=91,
665 topology='0x1',
666 onosNodes=3,
667 description='Changing port configuration from tagged 10 to '
668 'tagged 120 with native 110',
669 vlan=( 10, 10, 0, 0 ) )
670
671 def CASE92( self, main ):
672 """
673 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 10 to
674 tagged 120 with native 110 (both newly introduced VLAN IDs).
675 Port P3 and P4 are configured as untagged 20.
676 Host h1 and h2 are congifured as VLAN 10, h3 and h4 are not configured.
677
678 Sets up 3 ONOS instances
679 Starts 0x2 dual-homed ToR topology
680 Pingall
681 Changes host vlan configuration
682 Changes interface vlan configuration
683 Pingall
684 """
685 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
686 SRDynamicConfTest.runTest( main,
687 testIndex=92,
688 topology='0x2',
689 onosNodes=3,
690 description='Changing port configuration from tagged 10 to '
691 'tagged 120 with native 110',
692 vlan=( 10, 10, 0, 0 ) )
693
694 def CASE93( self, main ):
695 """
696 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 10 to
697 tagged 120 with native 110 (both newly introduced VLAN IDs).
698 Port P3 and P4 are configured as untagged 20.
699 Host h1 and h2 are congifured as VLAN 10, h3 and h4 are not configured.
700
701 Sets up 3 ONOS instances
702 Starts 2x2 leaf-spine topology
703 Pingall
704 Changes host vlan configuration
705 Changes interface vlan configuration
706 Pingall
707 """
708 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
709 SRDynamicConfTest.runTest( main,
710 testIndex=93,
711 topology='2x2',
712 onosNodes=3,
713 description='Changing port configuration from tagged 10 to '
714 'tagged 120 with native 110',
715 vlan=( 10, 10, 0, 0 ) )
716
717 def CASE94( self, main ):
718 """
719 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 10 to
720 tagged 120 with native 110 (both newly introduced VLAN IDs).
721 Port P3 and P4 are configured as untagged 20.
722 Host h1 and h2 are congifured as VLAN 10, h3 and h4 are not configured.
723
724 Sets up 3 ONOS instances
725 Starts 2x4 dual-homed leaf-spine topology
726 Pingall
727 Changes host vlan configuration
728 Changes interface vlan configuration
729 Pingall
730 """
731 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
732 SRDynamicConfTest.runTest( main,
733 testIndex=94,
734 topology='2x4',
735 onosNodes=3,
736 description='Changing port configuration from tagged 10 to '
737 'tagged 120 with native 110',
738 vlan=( 10, 10, 0, 0 ) )
739
740 def CASE101( self, main ):
741 """
742 Tests connectivity after changing vlan configuration of port P1 from tagged 10 and native 20 to untagged 20.
743 Port P3 and P4 are configured as untagged 20.
744 All hosts are not configured.
745
746 Sets up 3 ONOS instances
747 Starts 0x1 single ToR topology
748 Pingall
749 Changes interface vlan configuration
750 Pingall
751 """
752 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
753 SRDynamicConfTest.runTest( main,
754 testIndex=101,
755 topology='0x1',
756 onosNodes=3,
757 description='Changing port configuration from tagged 10 '
758 'and native 20 to untagged 20' )
759
760 def CASE102( self, main ):
761 """
762 Tests connectivity after changing vlan configuration of port P1 from tagged 10 and native 20 to untagged 20.
763 Port P3 and P4 are configured as untagged 20.
764 All hosts are not configured.
765
766 Sets up 3 ONOS instances
767 Starts 0x2 dual-homed ToR topology
768 Pingall
769 Changes interface vlan configuration
770 Pingall
771 """
772 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
773 SRDynamicConfTest.runTest( main,
774 testIndex=102,
775 topology='0x2',
776 onosNodes=3,
777 description='Changing port configuration from tagged 10 '
778 'and native 20 to untagged 20' )
779
780 def CASE103( self, main ):
781 """
782 Tests connectivity after changing vlan configuration of port P1 from tagged 10 and native 20 to untagged 20.
783 Port P3 and P4 are configured as untagged 20.
784 All hosts are not configured.
785
786 Sets up 3 ONOS instances
787 Starts 2x2 leaf-spine topology
788 Pingall
789 Changes interface vlan configuration
790 Pingall
791 """
792 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
793 SRDynamicConfTest.runTest( main,
794 testIndex=103,
795 topology='2x2',
796 onosNodes=3,
797 description='Changing port configuration from tagged 10 '
798 'and native 20 to untagged 20' )
799
800 def CASE104( self, main ):
801 """
802 Tests connectivity after changing vlan configuration of port P1 from tagged 10 and native 20 to untagged 20.
803 Port P3 and P4 are configured as untagged 20.
804 All hosts are not configured.
805
806 Sets up 3 ONOS instances
807 Starts 2x4 dual-homed leaf-spine topology
808 Pingall
809 Changes interface vlan configuration
810 Pingall
811 """
812 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
813 SRDynamicConfTest.runTest( main,
814 testIndex=104,
815 topology='2x4',
816 onosNodes=3,
817 description='Changing port configuration from tagged 10 '
818 'and native 20 to untagged 20' )
819
820 def CASE111( self, main ):
821 """
822 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to tagged 20.
823 Port P3 and P4 are configured as untagged 20.
824 All hosts are not configured.
825
826 Sets up 3 ONOS instances
827 Starts 0x1 single ToR topology
828 Pingall
829 Changes interface vlan configuration
830 Pingall
831 """
832 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
833 SRDynamicConfTest.runTest( main,
834 testIndex=111,
835 topology='0x1',
836 onosNodes=3,
837 description='Changing port configuration from tagged 20 '
838 'and native 10 to tagged 20' )
839
840 def CASE112( self, main ):
841 """
842 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to tagged 20.
843 Port P3 and P4 are configured as untagged 20.
844 All hosts are not configured.
845
846 Sets up 3 ONOS instances
847 Starts 0x2 dual-homed ToR topology
848 Pingall
849 Changes interface vlan configuration
850 Pingall
851 """
852 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
853 SRDynamicConfTest.runTest( main,
854 testIndex=112,
855 topology='0x2',
856 onosNodes=3,
857 description='Changing port configuration from tagged 20 '
858 'and native 10 to tagged 20' )
859
860 def CASE113( self, main ):
861 """
862 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to tagged 20.
863 Port P3 and P4 are configured as untagged 20.
864 All hosts are not configured.
865
866 Sets up 3 ONOS instances
867 Starts 2x2 leaf-spine topology
868 Pingall
869 Changes interface vlan configuration
870 Pingall
871 """
872 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
873 SRDynamicConfTest.runTest( main,
874 testIndex=113,
875 topology='2x2',
876 onosNodes=3,
877 description='Changing port configuration from tagged 20 '
878 'and native 10 to tagged 20' )
879
880 def CASE114( self, main ):
881 """
882 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to tagged 20.
883 Port P3 and P4 are configured as untagged 20.
884 All hosts are not configured.
885
886 Sets up 3 ONOS instances
887 Starts 2x4 dual-homed leaf-spine topology
888 Pingall
889 Changes interface vlan configuration
890 Pingall
891 """
892 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
893 SRDynamicConfTest.runTest( main,
894 testIndex=114,
895 topology='2x4',
896 onosNodes=3,
897 description='Changing port configuration from tagged 20 '
898 'and native 10 to tagged 20' )
899
900 def CASE121( self, main ):
901 """
902 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 20 and native 10
903 to tagged 20 and native 110.
904 Port P3 and P4 are configured as untagged 20.
905 All hosts are not configured.
906
907 Sets up 3 ONOS instances
908 Starts 0x1 single ToR topology
909 Pingall
910 Changes interface vlan configuration
911 Pingall
912 """
913 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
914 SRDynamicConfTest.runTest( main,
915 testIndex=121,
916 topology='0x1',
917 onosNodes=3,
918 description='Changing port configuration from tagged 20 and native 10 '
919 'to tagged 20 and native 110' )
920
921 def CASE122( self, main ):
922 """
923 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 20 and native 10
924 to tagged 20 and native 110.
925 Port P3 and P4 are configured as untagged 20.
926 All hosts are not configured.
927
928 Sets up 3 ONOS instances
929 Starts 0x2 dual-homed ToR topology
930 Pingall
931 Changes interface vlan configuration
932 Pingall
933 """
934 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
935 SRDynamicConfTest.runTest( main,
936 testIndex=122,
937 topology='0x2',
938 onosNodes=3,
939 description='Changing port configuration from tagged 20 and native 10 '
940 'to tagged 20 and native 110' )
941
942 def CASE123( self, main ):
943 """
944 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 20 and native 10
945 to tagged 20 and native 110.
946 Port P3 and P4 are configured as untagged 20.
947 All hosts are not configured.
948
949 Sets up 3 ONOS instances
950 Starts 2x2 leaf-spine topology
951 Pingall
952 Changes interface vlan configuration
953 Pingall
954 """
955 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
956 SRDynamicConfTest.runTest( main,
957 testIndex=123,
958 topology='2x2',
959 onosNodes=3,
960 description='Changing port configuration from tagged 20 and native 10 '
961 'to tagged 20 and native 110' )
962
963 def CASE124( self, main ):
964 """
965 Tests connectivity after changing vlan configuration of port P1 and P2 from tagged 20 and native 10
966 to tagged 20 and native 110.
967 Port P3 and P4 are configured as untagged 20.
968 All hosts are not configured.
969
970 Sets up 3 ONOS instances
971 Starts 2x4 dual-homed leaf-spine topology
972 Pingall
973 Changes interface vlan configuration
974 Pingall
975 """
976 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
977 SRDynamicConfTest.runTest( main,
978 testIndex=124,
979 topology='2x4',
980 onosNodes=3,
981 description='Changing port configuration from tagged 20 and native 10 '
982 'to tagged 20 and native 110' )
983
984 def CASE131( self, main ):
985 """
986 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10
987 to tagged 120 and native 10.
988 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
989 All hosts are not configured.
990
991 Sets up 3 ONOS instances
992 Starts 0x1 single ToR topology
993 Pingall
994 Changes interface vlan configuration
995 Pingall
996 """
997 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
998 SRDynamicConfTest.runTest( main,
999 testIndex=131,
1000 topology='0x1',
1001 onosNodes=3,
1002 description='Changing port configuration from tagged 20 and native 10 '
1003 'to tagged 120 and native 10' )
1004
1005 def CASE132( self, main ):
1006 """
1007 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10
1008 to tagged 120 and native 10.
1009 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1010 All hosts are not configured.
1011
1012 Sets up 3 ONOS instances
1013 Starts 0x2 dual-homed ToR topology
1014 Pingall
1015 Changes interface vlan configuration
1016 Pingall
1017 """
1018 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1019 SRDynamicConfTest.runTest( main,
1020 testIndex=132,
1021 topology='0x2',
1022 onosNodes=3,
1023 description='Changing port configuration from tagged 20 and native 10 '
1024 'to tagged 120 and native 10' )
1025
1026 def CASE133( self, main ):
1027 """
1028 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10
1029 to tagged 120 and native 10.
1030 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1031 All hosts are not configured.
1032
1033 Sets up 3 ONOS instances
1034 Starts 2x2 leaf-spine topology
1035 Pingall
1036 Changes interface vlan configuration
1037 Pingall
1038 """
1039 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1040 SRDynamicConfTest.runTest( main,
1041 testIndex=133,
1042 topology='2x2',
1043 onosNodes=3,
1044 description='Changing port configuration from tagged 20 and native 10 '
1045 'to tagged 120 and native 10' )
1046
1047 def CASE134( self, main ):
1048 """
1049 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10
1050 to tagged 120 and native 10.
1051 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1052 All hosts are not configured.
1053
1054 Sets up 3 ONOS instances
1055 Starts 2x4 dual-homed leaf-spine topology
1056 Pingall
1057 Changes interface vlan configuration
1058 Pingall
1059 """
1060 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1061 SRDynamicConfTest.runTest( main,
1062 testIndex=134,
1063 topology='2x4',
1064 onosNodes=3,
1065 description='Changing port configuration from tagged 20 and native 10 '
1066 'to tagged 120 and native 10' )
1067
1068 def CASE141( self, main ):
1069 """
1070 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
1071 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1072 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1073
1074 Sets up 3 ONOS instances
1075 Starts 0x1 single ToR topology
1076 Pingall
1077 Changes interface vlan configuration
1078 Pingall
1079 """
1080 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1081 SRDynamicConfTest.runTest( main,
1082 testIndex=141,
1083 topology='0x1',
1084 onosNodes=3,
1085 description='Changing port configuration from untagged 10 to tagged 20',
1086 vlan=( 20, 0, 0, 0 ) )
1087
1088 def CASE142( self, main ):
1089 """
1090 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
1091 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1092 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1093
1094 Sets up 3 ONOS instances
1095 Starts 0x2 dual-homed ToR topology
1096 Pingall
1097 Changes interface vlan configuration
1098 Pingall
1099 """
1100 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1101 SRDynamicConfTest.runTest( main,
1102 testIndex=142,
1103 topology='0x2',
1104 onosNodes=3,
1105 description='Changing port configuration from untagged 10 to tagged 20',
1106 vlan=( 20, 0, 0, 0 ) )
1107
1108 def CASE143( self, main ):
1109 """
1110 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
1111 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1112 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1113
1114 Sets up 3 ONOS instances
1115 Starts 2x2 leaf-spine topology
1116 Pingall
1117 Changes interface vlan configuration
1118 Pingall
1119 """
1120 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1121 SRDynamicConfTest.runTest( main,
1122 testIndex=143,
1123 topology='2x2',
1124 onosNodes=3,
1125 description='Changing port configuration from untagged 10 to tagged 20',
1126 vlan=( 20, 0, 0, 0 ) )
1127
1128 def CASE144( self, main ):
1129 """
1130 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 20.
1131 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1132 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1133
1134 Sets up 3 ONOS instances
1135 Starts 2x4 dual-homed leaf-spine topology
1136 Pingall
1137 Changes interface vlan configuration
1138 Pingall
1139 """
1140 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1141 SRDynamicConfTest.runTest( main,
1142 testIndex=144,
1143 topology='2x4',
1144 onosNodes=3,
1145 description='Changing port configuration from untagged 10 to tagged 20',
1146 vlan=( 20, 0, 0, 0 ) )
1147
1148 def CASE151( self, main ):
1149 """
1150 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120.
1151 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1152 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1153
1154 Sets up 3 ONOS instances
1155 Starts 0x1 single ToR topology
1156 Pingall
1157 Changes interface vlan configuration
1158 Pingall
1159 """
1160 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1161 SRDynamicConfTest.runTest( main,
1162 testIndex=151,
1163 topology='0x1',
1164 onosNodes=3,
1165 description='Changing port configuration from untagged 10 to tagged 120',
1166 vlan=( 20, 0, 0, 0 ) )
1167
1168 def CASE152( self, main ):
1169 """
1170 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120.
1171 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1172 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1173
1174 Sets up 3 ONOS instances
1175 Starts 0x2 dual-homed ToR topology
1176 Pingall
1177 Changes interface vlan configuration
1178 Pingall
1179 """
1180 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1181 SRDynamicConfTest.runTest( main,
1182 testIndex=152,
1183 topology='0x2',
1184 onosNodes=3,
1185 description='Changing port configuration from untagged 10 to tagged 120',
1186 vlan=( 20, 0, 0, 0 ) )
1187
1188 def CASE153( self, main ):
1189 """
1190 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120.
1191 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1192 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1193
1194 Sets up 3 ONOS instances
1195 Starts 2x2 leaf-spine topology
1196 Pingall
1197 Changes interface vlan configuration
1198 Pingall
1199 """
1200 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1201 SRDynamicConfTest.runTest( main,
1202 testIndex=153,
1203 topology='2x2',
1204 onosNodes=3,
1205 description='Changing port configuration from untagged 10 to tagged 120',
1206 vlan=( 20, 0, 0, 0 ) )
1207
1208 def CASE154( self, main ):
1209 """
1210 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to tagged 120.
1211 Port P2 is configured as untagged 10 and port P3 and P4 are configured as untagged 20.
1212 Host h1 is configured as VLAN ID 20 and all other hosts are not configured.
1213
1214 Sets up 3 ONOS instances
1215 Starts 2x4 dual-homed leaf-spine topology
1216 Pingall
1217 Changes interface vlan configuration
1218 Pingall
1219 """
1220 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1221 SRDynamicConfTest.runTest( main,
1222 testIndex=154,
1223 topology='2x4',
1224 onosNodes=3,
1225 description='Changing port configuration from untagged 10 to tagged 120',
1226 vlan=( 20, 0, 0, 0 ) )
1227
1228 def CASE161( self, main ):
1229 """
1230 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to
1231 tagged 20 and native 10.
1232 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1233 Host h1, h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1234
1235 Sets up 3 ONOS instances
1236 Starts 0x1 single ToR topology
1237 Pingall
1238 Changes interface vlan configuration
1239 Pingall
1240 """
1241 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1242 SRDynamicConfTest.runTest( main,
1243 testIndex=161,
1244 topology='0x1',
1245 onosNodes=3,
1246 description='Changing port configuration from untagged 10 to '
1247 'tagged 20 and native 10',
1248 vlan=( 20, 0, 20, 20 ) )
1249
1250 def CASE162( self, main ):
1251 """
1252 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to
1253 tagged 20 and native 10.
1254 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1255 Host h1, h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1256
1257 Sets up 3 ONOS instances
1258 Starts 0x2 dual-homed ToR topology
1259 Pingall
1260 Changes interface vlan configuration
1261 Pingall
1262 """
1263 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1264 SRDynamicConfTest.runTest( main,
1265 testIndex=162,
1266 topology='0x2',
1267 onosNodes=3,
1268 description='Changing port configuration from untagged 10 to '
1269 'tagged 20 and native 10',
1270 vlan=( 20, 0, 20, 20 ) )
1271
1272 def CASE163( self, main ):
1273 """
1274 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to
1275 tagged 20 and native 10.
1276 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1277 Host h1, h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1278
1279 Sets up 3 ONOS instances
1280 Starts 2x2 leaf-spine topology
1281 Pingall
1282 Changes interface vlan configuration
1283 Pingall
1284 """
1285 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1286 SRDynamicConfTest.runTest( main,
1287 testIndex=163,
1288 topology='2x2',
1289 onosNodes=3,
1290 description='Changing port configuration from untagged 10 to '
1291 'tagged 20 and native 10',
1292 vlan=( 20, 0, 20, 20 ) )
1293
1294 def CASE164( self, main ):
1295 """
1296 Tests connectivity after changing vlan configuration of port P1 from untagged 10 to
1297 tagged 20 and native 10.
1298 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1299 Host h1, h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1300
1301 Sets up 3 ONOS instances
1302 Starts 2x4 dual-homed leaf-spine topology
1303 Pingall
1304 Changes interface vlan configuration
1305 Pingall
1306 """
1307 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1308 SRDynamicConfTest.runTest( main,
1309 testIndex=164,
1310 topology='2x4',
1311 onosNodes=3,
1312 description='Changing port configuration from untagged 10 to '
1313 'tagged 20 and native 10',
1314 vlan=( 20, 0, 20, 20 ) )
1315
1316 def CASE171( self, main ):
1317 """
1318 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 120.
1319 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1320 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1321
1322 Sets up 3 ONOS instances
1323 Starts 0x1 single ToR topology
1324 Pingall
1325 Changes interface vlan configuration
1326 Pingall
1327 """
1328 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1329 SRDynamicConfTest.runTest( main,
1330 testIndex=171,
1331 topology='0x1',
1332 onosNodes=3,
1333 description='Changing port configuration from tagged 20 to tagged 120',
1334 vlan=( 20, 0, 20, 20 ) )
1335
1336 def CASE172( self, main ):
1337 """
1338 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 120.
1339 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1340 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1341
1342 Sets up 3 ONOS instances
1343 Starts 0x2 dual-homed ToR topology
1344 Pingall
1345 Changes interface vlan configuration
1346 Pingall
1347 """
1348 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1349 SRDynamicConfTest.runTest( main,
1350 testIndex=172,
1351 topology='0x2',
1352 onosNodes=3,
1353 description='Changing port configuration from tagged 20 to tagged 120',
1354 vlan=( 20, 0, 20, 20 ) )
1355
1356 def CASE173( self, main ):
1357 """
1358 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 120.
1359 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1360 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1361
1362 Sets up 3 ONOS instances
1363 Starts 2x2 leaf-spine topology
1364 Pingall
1365 Changes interface vlan configuration
1366 Pingall
1367 """
1368 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1369 SRDynamicConfTest.runTest( main,
1370 testIndex=173,
1371 topology='2x2',
1372 onosNodes=3,
1373 description='Changing port configuration from tagged 20 to tagged 120',
1374 vlan=( 20, 0, 20, 20 ) )
1375
1376 def CASE174( self, main ):
1377 """
1378 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to tagged 120.
1379 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1380 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1381
1382 Sets up 3 ONOS instances
1383 Starts 2x4 dual-homed leaf-spine topology
1384 Pingall
1385 Changes interface vlan configuration
1386 Pingall
1387 """
1388 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1389 SRDynamicConfTest.runTest( main,
1390 testIndex=174,
1391 topology='2x4',
1392 onosNodes=3,
1393 description='Changing port configuration from tagged 20 to tagged 120',
1394 vlan=( 20, 0, 20, 20 ) )
1395
1396 def CASE181( self, main ):
1397 """
1398 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to
1399 tagged 20 and native 10.
1400 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1401 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1402
1403 Sets up 3 ONOS instances
1404 Starts 0x1 single ToR topology
1405 Pingall
1406 Changes interface vlan configuration
1407 Pingall
1408 """
1409 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1410 SRDynamicConfTest.runTest( main,
1411 testIndex=181,
1412 topology='0x1',
1413 onosNodes=3,
1414 description='Changing port configuration from tagged 20 to '
1415 'tagged 20 and native 10',
1416 vlan=( 20, 0, 20, 20 ) )
1417
1418 def CASE182( self, main ):
1419 """
1420 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to
1421 tagged 20 and native 10.
1422 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1423 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1424
1425 Sets up 3 ONOS instances
1426 Starts 0x2 dual-homed ToR topology
1427 Pingall
1428 Changes interface vlan configuration
1429 Pingall
1430 """
1431 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1432 SRDynamicConfTest.runTest( main,
1433 testIndex=182,
1434 topology='0x2',
1435 onosNodes=3,
1436 description='Changing port configuration from tagged 20 to '
1437 'tagged 20 and native 10',
1438 vlan=(20, 0, 20, 20) )
1439
1440 def CASE183( self, main ):
1441 """
1442 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to
1443 tagged 20 and native 10.
1444 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1445 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1446
1447 Sets up 3 ONOS instances
1448 Starts 2x2 leaf-spine topology
1449 Pingall
1450 Changes interface vlan configuration
1451 Pingall
1452 """
1453 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1454 SRDynamicConfTest.runTest( main,
1455 testIndex=183,
1456 topology='2x2',
1457 onosNodes=3,
1458 description='Changing port configuration from tagged 20 to '
1459 'tagged 20 and native 10',
1460 vlan=(20, 0, 20, 20) )
1461
1462 def CASE184( self, main ):
1463 """
1464 Tests connectivity after changing vlan configuration of port P1 from tagged 20 to
1465 tagged 20 and native 10.
1466 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1467 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1468
1469 Sets up 3 ONOS instances
1470 Starts 2x4 dual-homed leaf-spine topology
1471 Pingall
1472 Changes interface vlan configuration
1473 Pingall
1474 """
1475 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1476 SRDynamicConfTest.runTest( main,
1477 testIndex=184,
1478 topology='2x4',
1479 onosNodes=3,
1480 description='Changing port configuration from tagged 20 to '
1481 'tagged 20 and native 10',
1482 vlan=(20, 0, 20, 20) )
1483
1484 def CASE191( self, main ):
1485 """
1486 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1487 untagged 20.
1488 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1489 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1490
1491 Sets up 3 ONOS instances
1492 Starts 0x1 single ToR topology
1493 Pingall
1494 Changes interface vlan configuration
1495 Pingall
1496 """
1497 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1498 SRDynamicConfTest.runTest( main,
1499 testIndex=191,
1500 topology='0x1',
1501 onosNodes=3,
1502 description='Changing port configuration from tagged 20 and native 10 to '
1503 'untagged 20',
1504 vlan=( 20, 0, 20, 20 ) )
1505
1506 def CASE192( self, main ):
1507 """
1508 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1509 untagged 20.
1510 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1511 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1512
1513 Sets up 3 ONOS instances
1514 Starts 0x2 dual-homed ToR topology
1515 Pingall
1516 Changes interface vlan configuration
1517 Pingall
1518 """
1519 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1520 SRDynamicConfTest.runTest( main,
1521 testIndex=192,
1522 topology='0x2',
1523 onosNodes=3,
1524 description='Changing port configuration from tagged 20 and native 10 to '
1525 'untagged 20',
1526 vlan=( 20, 0, 20, 20 ) )
1527
1528 def CASE193( self, main ):
1529 """
1530 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1531 untagged 20.
1532 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1533 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1534
1535 Sets up 3 ONOS instances
1536 Starts 2x2 leaf-spine topology
1537 Pingall
1538 Changes interface vlan configuration
1539 Pingall
1540 """
1541 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1542 SRDynamicConfTest.runTest( main,
1543 testIndex=193,
1544 topology='2x2',
1545 onosNodes=3,
1546 description='Changing port configuration from tagged 20 and native 10 to '
1547 'untagged 20',
1548 vlan=( 20, 0, 20, 20 ) )
1549
1550 def CASE194( self, main ):
1551 """
1552 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1553 untagged 20.
1554 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1555 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1556
1557 Sets up 3 ONOS instances
1558 Starts 2x4 dual-homed leaf-spine topology
1559 Pingall
1560 Changes interface vlan configuration
1561 Pingall
1562 """
1563 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1564 SRDynamicConfTest.runTest( main,
1565 testIndex=194,
1566 topology='2x4',
1567 onosNodes=3,
1568 description='Changing port configuration from tagged 20 and native 10 to '
1569 'untagged 20',
1570 vlan=( 20, 0, 20, 20 ) )
1571
1572 def CASE201( self, main ):
1573 """
1574 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1575 tagged 20.
1576 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1577 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1578
1579 Sets up 3 ONOS instances
1580 Starts 0x1 single ToR topology
1581 Pingall
1582 Changes interface vlan configuration
1583 Pingall
1584 """
1585 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1586 SRDynamicConfTest.runTest( main,
1587 testIndex=201,
1588 topology='0x1',
1589 onosNodes=3,
1590 description='Changing port configuration from tagged 20 and native 10 to '
1591 'tagged 20',
1592 vlan=( 20, 0, 20, 20 ) )
1593
1594 def CASE202( self, main ):
1595 """
1596 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1597 tagged 20.
1598 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1599 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1600
1601 Sets up 3 ONOS instances
1602 Starts 0x2 dual-homed ToR topology
1603 Pingall
1604 Changes interface vlan configuration
1605 Pingall
1606 """
1607 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1608 SRDynamicConfTest.runTest( main,
1609 testIndex=202,
1610 topology='0x2',
1611 onosNodes=3,
1612 description='Changing port configuration from tagged 20 and native 10 to '
1613 'tagged 20',
1614 vlan=( 20, 0, 20, 20 ) )
1615
1616 def CASE203( self, main ):
1617 """
1618 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1619 tagged 20.
1620 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1621 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1622
1623 Sets up 3 ONOS instances
1624 Starts 2x2 leaf-spine topology
1625 Pingall
1626 Changes interface vlan configuration
1627 Pingall
1628 """
1629 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1630 SRDynamicConfTest.runTest( main,
1631 testIndex=203,
1632 topology='2x2',
1633 onosNodes=3,
1634 description='Changing port configuration from tagged 20 and native 10 to '
1635 'tagged 20',
1636 vlan=( 20, 0, 20, 20 ) )
1637
1638 def CASE204( self, main ):
1639 """
1640 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1641 tagged 20.
1642 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1643 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1644
1645 Sets up 3 ONOS instances
1646 Starts 2x4 dual-homed leaf-spine topology
1647 Pingall
1648 Changes interface vlan configuration
1649 Pingall
1650 """
1651 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1652 SRDynamicConfTest.runTest( main,
1653 testIndex=204,
1654 topology='2x4',
1655 onosNodes=3,
1656 description='Changing port configuration from tagged 20 and native 10 to '
1657 'tagged 20',
1658 vlan=( 20, 0, 20, 20 ) )
1659
1660 def CASE211( self, main ):
1661 """
1662 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1663 tagged 20 and native 110.
1664 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1665 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1666
1667 Sets up 3 ONOS instances
1668 Starts 0x1 single ToR topology
1669 Pingall
1670 Changes interface vlan configuration
1671 Pingall
1672 """
1673 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1674 SRDynamicConfTest.runTest( main,
1675 testIndex=211,
1676 topology='0x1',
1677 onosNodes=3,
1678 description='Changing port configuration from tagged 20 and native 10 to '
1679 'tagged 20 and native 110',
1680 vlan=( 20, 0, 20, 20 ) )
1681
1682 def CASE212( self, main ):
1683 """
1684 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1685 tagged 20 and native 110.
1686 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1687 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1688
1689 Sets up 3 ONOS instances
1690 Starts 0x2 dual-homed ToR topology
1691 Pingall
1692 Changes interface vlan configuration
1693 Pingall
1694 """
1695 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1696 SRDynamicConfTest.runTest( main,
1697 testIndex=212,
1698 topology='0x2',
1699 onosNodes=3,
1700 description='Changing port configuration from tagged 20 and native 10 to '
1701 'tagged 20 and native 110',
1702 vlan=( 20, 0, 20, 20 ) )
1703
1704 def CASE213( self, main ):
1705 """
1706 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1707 tagged 20 and native 110.
1708 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1709 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1710
1711 Sets up 3 ONOS instances
1712 Starts 2x2 leaf-spine topology
1713 Pingall
1714 Changes interface vlan configuration
1715 Pingall
1716 """
1717 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1718 SRDynamicConfTest.runTest( main,
1719 testIndex=213,
1720 topology='2x2',
1721 onosNodes=3,
1722 description='Changing port configuration from tagged 20 and native 10 to '
1723 'tagged 20 and native 110',
1724 vlan=( 20, 0, 20, 20 ) )
1725
1726 def CASE214( self, main ):
1727 """
1728 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1729 tagged 20 and native 110.
1730 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1731 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1732
1733 Sets up 3 ONOS instances
1734 Starts 2x4 dual-homed leaf-spine topology
1735 Pingall
1736 Changes interface vlan configuration
1737 Pingall
1738 """
1739 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1740 SRDynamicConfTest.runTest( main,
1741 testIndex=214,
1742 topology='2x4',
1743 onosNodes=3,
1744 description='Changing port configuration from tagged 20 and native 10 to '
1745 'tagged 20 and native 110',
1746 vlan=( 20, 0, 20, 20 ) )
1747
1748 def CASE221( self, main ):
1749 """
1750 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1751 tagged 120 and native 10.
1752 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1753 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1754
1755 Sets up 3 ONOS instances
1756 Starts 0x1 single ToR topology
1757 Pingall
1758 Changes interface vlan configuration
1759 Pingall
1760 """
1761 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1762 SRDynamicConfTest.runTest( main,
1763 testIndex=221,
1764 topology='0x1',
1765 onosNodes=3,
1766 description='Changing port configuration from tagged 20 and native 10 to '
1767 'tagged 120 and native 10',
1768 vlan=( 20, 0, 20, 20 ) )
1769
1770 def CASE222( self, main ):
1771 """
1772 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1773 tagged 120 and native 10.
1774 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1775 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1776
1777 Sets up 3 ONOS instances
1778 Starts 0x2 dual-homed ToR topology
1779 Pingall
1780 Changes interface vlan configuration
1781 Pingall
1782 """
1783 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1784 SRDynamicConfTest.runTest( main,
1785 testIndex=222,
1786 topology='0x2',
1787 onosNodes=3,
1788 description='Changing port configuration from tagged 20 and native 10 to '
1789 'tagged 120 and native 10',
1790 vlan=( 20, 0, 20, 20 ) )
1791
1792 def CASE223( self, main ):
1793 """
1794 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1795 tagged 120 and native 10.
1796 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1797 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1798
1799 Sets up 3 ONOS instances
1800 Starts 2x2 leaf-spine topology
1801 Pingall
1802 Changes interface vlan configuration
1803 Pingall
1804 """
1805 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1806 SRDynamicConfTest.runTest( main,
1807 testIndex=223,
1808 topology='2x2',
1809 onosNodes=3,
1810 description='Changing port configuration from tagged 20 and native 10 to '
1811 'tagged 120 and native 10',
1812 vlan=( 20, 0, 20, 20 ) )
1813
1814 def CASE224( self, main ):
1815 """
1816 Tests connectivity after changing vlan configuration of port P1 from tagged 20 and native 10 to
1817 tagged 120 and native 10.
1818 Port P2 is configured as untagged 10 and port P3 and P4 are configured as tagged 20.
1819 Host h1 ,h3 and h4 are configured as VLAN ID 20 and h2 is not configured.
1820
1821 Sets up 3 ONOS instances
1822 Starts 2x4 dual-homed leaf-spine topology
1823 Pingall
1824 Changes interface vlan configuration
1825 Pingall
1826 """
1827 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1828 SRDynamicConfTest.runTest( main,
1829 testIndex=224,
1830 topology='2x4',
1831 onosNodes=3,
1832 description='Changing port configuration from tagged 20 and native 10 to '
1833 'tagged 120 and native 10',
1834 vlan=( 20, 0, 20, 20 ) )
1835
1836 def CASE231( self, main ):
1837 """
1838 Tests connectivity after consecutive vlan configuration changes.
1839 All hosts are not configured.
1840
1841 Sets up 3 ONOS instances
1842 Starts 0x1 single ToR topology
1843 Pingall
1844 Changes interface vlan configuration
1845 Pingall
1846 Repeat
1847 """
1848 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1849 SRDynamicConfTest.runTest( main,
1850 testIndex=231,
1851 topology='0x1',
1852 onosNodes=3,
1853 description='Consecutive configuration changes' )
1854
1855 def CASE232( self, main ):
1856 """
1857 Tests connectivity after consecutive vlan configuration changes.
1858 All hosts are not configured.
1859
1860 Sets up 3 ONOS instances
1861 Starts 0x2 dual-homed ToR topology
1862 Pingall
1863 Changes interface vlan configuration
1864 Pingall
1865 Repeat
1866 """
1867 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1868 SRDynamicConfTest.runTest( main,
1869 testIndex=232,
1870 topology='0x2',
1871 onosNodes=3,
1872 description='Consecutive configuration changes' )
1873
1874 def CASE233( self, main ):
1875 """
1876 Tests connectivity after consecutive vlan configuration changes.
1877 All hosts are not configured.
1878
1879 Sets up 3 ONOS instances
1880 Starts 2x2 leaf-spine topology
1881 Pingall
1882 Changes interface vlan configuration
1883 Pingall
1884 Repeat
1885 """
1886 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1887 SRDynamicConfTest.runTest( main,
1888 testIndex=233,
1889 topology='2x2',
1890 onosNodes=3,
1891 description='Consecutive configuration changes' )
1892
1893 def CASE234( self, main ):
1894 """
1895 Tests connectivity after consecutive vlan configuration changes.
1896 All hosts are not configured.
1897
1898 Sets up 3 ONOS instances
1899 Starts 2x4 dual-homed leaf-spine topology
1900 Pingall
1901 Changes interface vlan configuration
1902 Pingall
1903 Repeat
1904 """
1905 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1906 SRDynamicConfTest.runTest( main,
1907 testIndex=234,
1908 topology='0x1',
1909 onosNodes=1,
1910 description='Consecutive configuration changes' )
1911
1912 def CASE243( self, main ):
1913 """
1914 Tests connectivity after changing subnet configuration of port P1 from 10.0.2.254/24 to
1915 10.0.6.254/24.
1916 IP address and default GW of host h1 are also changed correspondingly.
1917
1918 Sets up 3 ONOS instances
1919 Starts 2x2 leaf-spine topology
1920 Pingall
1921 Changes host IP configuration
1922 Changes interface subnet configuration
1923 Pingall
1924 """
1925 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1926 SRDynamicConfTest.runTest( main,
1927 testIndex=243,
1928 topology='2x2',
1929 onosNodes=3,
1930 description='Changing port configuration from 10.0.2.254/24 to 10.0.6.254/24' )
1931
1932 def CASE244( self, main ):
1933 """
1934 Tests connectivity after changing subnet configuration of port P1 from 10.0.2.254/24 to
1935 10.0.6.254/24.
1936 IP address and default GW of host h1 are also changed correspondingly.
1937
1938 Sets up 3 ONOS instances
1939 Starts 2x4 dual-homed leaf-spine topology
1940 Pingall
1941 Changes host IP configuration
1942 Changes interface subnet configuration
1943 Pingall
1944 """
1945 from tests.USECASE.SegmentRouting.SRDynamicConf.dependencies.SRDynamicConfTest import SRDynamicConfTest
1946 SRDynamicConfTest.runTest( main,
1947 testIndex=244,
1948 topology='2x4',
1949 onosNodes=3,
1950 description='Changing port configuration from 10.0.2.254/24 to 10.0.6.254/24' )