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