blob: dfd9dc048dbde5a5b704bf920ca33397d8c04664 [file] [log] [blame]
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001class SRBridging:
2 def __init__( self ):
3 self.default = ''
4
5 def CASE1( self, main ):
6 """
7 Tests connectivity between two untagged hosts
8 (Ports are configured as vlan-untagged)
9
10 Sets up 1 ONOS instance
11 Start 0x1 single ToR topology
12 Pingall
13 """
Devin Lim57221b02018-02-14 15:45:36 -080014 try:
15 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
16 except ImportError:
17 main.log.error( "SRBridgingTest not found. Exiting the test" )
18 main.cleanAndExit()
19 try:
20 main.funcs
21 except ( NameError, AttributeError ):
22 main.funcs = SRBridgingTest()
23 main.funcs.runTest( main,
24 test_idx=1,
25 topology='0x1',
26 onosNodes=1,
27 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -070028
29 def CASE2( self, main ):
30 """
31 Tests connectivity between two untagged hosts
32 (Ports are configured as vlan-untagged)
33
34 Sets up 1 ONOS instance
35 Start 0x2 dual-homed ToR topology
36 Pingall
37 """
Devin Lim57221b02018-02-14 15:45:36 -080038 try:
39 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
40 except ImportError:
41 main.log.error( "SRBridgingTest not found. Exiting the test" )
42 main.cleanAndExit()
43 try:
44 main.funcs
45 except ( NameError, AttributeError ):
46 main.funcs = SRBridgingTest()
47 main.funcs.runTest( main,
48 test_idx=2,
49 topology='0x2',
50 onosNodes=1,
51 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -070052
53 def CASE3( self, main ):
54 """
55 Tests connectivity between two untagged hosts
56 (Ports are configured as vlan-untagged)
57
58 Sets up 1 ONOS instance
59 Start 2x2 leaf-spine topology
60 Pingall
61 """
Devin Lim57221b02018-02-14 15:45:36 -080062 try:
63 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
64 except ImportError:
65 main.log.error( "SRBridgingTest not found. Exiting the test" )
66 main.cleanAndExit()
67 try:
68 main.funcs
69 except ( NameError, AttributeError ):
70 main.funcs = SRBridgingTest()
71 main.funcs.runTest( main,
72 test_idx=3,
Siddesh167bc882021-03-23 21:03:43 +000073 topology='2x2 dual-linked',
Devin Lim57221b02018-02-14 15:45:36 -080074 onosNodes=1,
75 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -070076
77 def CASE4( self, main ):
78 """
79 Tests connectivity between two untagged hosts
80 (Ports are configured as vlan-untagged)
81
82 Sets up 1 ONOS instance
83 Start 2x4 dual-homed leaf-spine topology
84 Pingall
85 """
Devin Lim57221b02018-02-14 15:45:36 -080086 try:
87 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
88 except ImportError:
89 main.log.error( "SRBridgingTest not found. Exiting the test" )
90 main.cleanAndExit()
91 try:
92 main.funcs
93 except ( NameError, AttributeError ):
94 main.funcs = SRBridgingTest()
95 main.funcs.runTest( main,
96 test_idx=4,
97 topology='2x4',
98 onosNodes=1,
99 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700100
101 def CASE5( self, main ):
102 """
103 Tests connectivity between two untagged hosts
104 (Ports are configured as vlan-untagged)
105
106 Sets up 3 ONOS instances
107 Start 0x1 single ToR topology
108 Pingall
109 """
Devin Lim57221b02018-02-14 15:45:36 -0800110 try:
111 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
112 except ImportError:
113 main.log.error( "SRBridgingTest not found. Exiting the test" )
114 main.cleanAndExit()
115 try:
116 main.funcs
117 except ( NameError, AttributeError ):
118 main.funcs = SRBridgingTest()
119 main.funcs.runTest( main,
120 test_idx=5,
121 topology='0x1',
122 onosNodes=3,
123 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700124
125 def CASE6( self, main ):
126 """
127 Tests connectivity between two untagged hosts
128 (Ports are configured as vlan-untagged)
129
130 Sets up 3 ONOS instances
131 Start 0x2 dual-homed ToR topology
132 Pingall
133 """
Devin Lim57221b02018-02-14 15:45:36 -0800134 try:
135 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
136 except ImportError:
137 main.log.error( "SRBridgingTest not found. Exiting the test" )
138 main.cleanAndExit()
139 try:
140 main.funcs
141 except ( NameError, AttributeError ):
142 main.funcs = SRBridgingTest()
143 main.funcs.runTest( main,
144 test_idx=6,
145 topology='0x2',
146 onosNodes=3,
147 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700148
149 def CASE7( self, main ):
150 """
151 Tests connectivity between two untagged hosts
152 (Ports are configured as vlan-untagged)
153
154 Sets up 3 ONOS instances
155 Start 2x2 leaf-spine topology
156 Pingall
157 """
Devin Lim57221b02018-02-14 15:45:36 -0800158 try:
159 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
160 except ImportError:
161 main.log.error( "SRBridgingTest not found. Exiting the test" )
162 main.cleanAndExit()
163 try:
164 main.funcs
165 except ( NameError, AttributeError ):
166 main.funcs = SRBridgingTest()
167 main.funcs.runTest( main,
168 test_idx=7,
169 topology='2x2',
170 onosNodes=3,
171 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700172
173 def CASE8( self, main ):
174 """
175 Tests connectivity between two untagged hosts
176 (Ports are configured as vlan-untagged)
177
178 Sets up 3 ONOS instances
179 Start 2x4 dual-homed leaf-spine topology
180 Pingall
181 """
Devin Lim57221b02018-02-14 15:45:36 -0800182 try:
183 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
184 except ImportError:
185 main.log.error( "SRBridgingTest not found. Exiting the test" )
186 main.cleanAndExit()
187 try:
188 main.funcs
189 except ( NameError, AttributeError ):
190 main.funcs = SRBridgingTest()
191 main.funcs.runTest( main,
192 test_idx=8,
193 topology='2x4',
194 onosNodes=3,
195 description="Bridging test between two untagged hosts on vlan-untagged port" )
Siddesh167bc882021-03-23 21:03:43 +0000196 def CASE9( self, main ):
197 """
198 Tests connectivity between two untagged hosts
199 (Ports are configured as vlan-untagged)
200
201 Sets up 3 ONOS instances
202 Start 2x2 leaf-spine topology
203 Pingall
204 """
205 try:
206 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
207 except ImportError:
208 main.log.error( "SRBridgingTest not found. Exiting the test" )
209 main.cleanAndExit()
210 try:
211 main.funcs
212 except ( NameError, AttributeError ):
213 main.funcs = SRBridgingTest()
214 main.funcs.runTest( main,
215 test_idx=7,
216 topology='2x2 dual-linked',
217 onosNodes=3,
218 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700219
220 def CASE11( self, main ):
221 """
222 Tests connectivity between two tagged hosts
223 (Ports are configured as vlan-tagged)
224
225 Sets up 1 ONOS instance
226 Start 0x1 single ToR topology
227 Pingall
228 """
Devin Lim57221b02018-02-14 15:45:36 -0800229 try:
230 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
231 except ImportError:
232 main.log.error( "SRBridgingTest not found. Exiting the test" )
233 main.cleanAndExit()
234 try:
235 main.funcs
236 except ( NameError, AttributeError ):
237 main.funcs = SRBridgingTest()
238 main.funcs.runTest( main,
239 test_idx=11,
240 topology='0x1',
241 onosNodes=1,
242 description="Bridging test between two tagged hosts",
243 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700244
245 def CASE12( self, main ):
246 """
247 Tests connectivity between two tagged hosts
248 (Ports are configured as vlan-tagged)
249
250 Sets up 1 ONOS instance
251 Start 0x2 dual-homed ToR topology
252 Pingall
253 """
Devin Lim57221b02018-02-14 15:45:36 -0800254 try:
255 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
256 except ImportError:
257 main.log.error( "SRBridgingTest not found. Exiting the test" )
258 main.cleanAndExit()
259 try:
260 main.funcs
261 except ( NameError, AttributeError ):
262 main.funcs = SRBridgingTest()
263 main.funcs.runTest( main,
264 test_idx=12,
265 topology='0x2',
266 onosNodes=1,
267 description="Bridging test between two tagged hosts",
268 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700269
270 def CASE13( self, main ):
271 """
272 Tests connectivity between two tagged hosts
273 (Ports are configured as vlan-tagged)
274
275 Sets up 1 ONOS instance
276 Start 2x2 leaf-spine topology
277 Pingall
278 """
Devin Lim57221b02018-02-14 15:45:36 -0800279 try:
280 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
281 except ImportError:
282 main.log.error( "SRBridgingTest not found. Exiting the test" )
283 main.cleanAndExit()
284 try:
285 main.funcs
286 except ( NameError, AttributeError ):
287 main.funcs = SRBridgingTest()
288 main.funcs.runTest( main,
289 test_idx=13,
290 topology='2x2',
291 onosNodes=1,
292 description="Bridging test between two tagged hosts",
293 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700294
295 def CASE14( self, main ):
296 """
297 Tests connectivity between two tagged hosts
298 (Ports are configured as vlan-tagged)
299
300 Sets up 1 ONOS instance
301 Start 2x4 dual-homed leaf-spine topology
302 Pingall
303 """
Devin Lim57221b02018-02-14 15:45:36 -0800304 try:
305 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
306 except ImportError:
307 main.log.error( "SRBridgingTest not found. Exiting the test" )
308 main.cleanAndExit()
309 try:
310 main.funcs
311 except ( NameError, AttributeError ):
312 main.funcs = SRBridgingTest()
313 main.funcs.runTest( main,
314 test_idx=14,
315 topology='2x4',
316 onosNodes=1,
317 description="Bridging test between two tagged hosts",
318 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700319
320 def CASE15( self, main ):
321 """
322 Tests connectivity between two tagged hosts
323 (Ports are configured as vlan-tagged)
324
325 Sets up 3 ONOS instances
326 Start 0x1 single ToR topology
327 Pingall
328 """
Devin Lim57221b02018-02-14 15:45:36 -0800329 try:
330 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
331 except ImportError:
332 main.log.error( "SRBridgingTest not found. Exiting the test" )
333 main.cleanAndExit()
334 try:
335 main.funcs
336 except ( NameError, AttributeError ):
337 main.funcs = SRBridgingTest()
338 main.funcs.runTest( main,
339 test_idx=15,
340 topology='0x1',
341 onosNodes=3,
342 description="Bridging test between two tagged hosts",
343 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700344
345 def CASE16( self, main ):
346 """
347 Tests connectivity between two tagged hosts
348 (Ports are configured as vlan-tagged)
349
350 Sets up 3 ONOS instances
351 Start 0x2 dual-homed ToR topology
352 Pingall
353 """
Devin Lim57221b02018-02-14 15:45:36 -0800354 try:
355 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
356 except ImportError:
357 main.log.error( "SRBridgingTest not found. Exiting the test" )
358 main.cleanAndExit()
359 try:
360 main.funcs
361 except ( NameError, AttributeError ):
362 main.funcs = SRBridgingTest()
363 main.funcs.runTest( main,
364 test_idx=16,
365 topology='0x2',
366 onosNodes=3,
367 description="Bridging test between two tagged hosts",
368 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700369
370 def CASE17( self, main ):
371 """
372 Tests connectivity between two tagged hosts
373 (Ports are configured as vlan-tagged)
374
375 Sets up 3 ONOS instances
376 Start 2x2 leaf-spine topology
377 Pingall
378 """
Devin Lim57221b02018-02-14 15:45:36 -0800379 try:
380 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
381 except ImportError:
382 main.log.error( "SRBridgingTest not found. Exiting the test" )
383 main.cleanAndExit()
384 try:
385 main.funcs
386 except ( NameError, AttributeError ):
387 main.funcs = SRBridgingTest()
388 main.funcs.runTest( main,
389 test_idx=17,
390 topology='2x2',
391 onosNodes=3,
392 description="Bridging test between two tagged hosts",
393 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700394
395 def CASE18( self, main ):
396 """
397 Tests connectivity between two tagged hosts
398 (Ports are configured as vlan-tagged)
399
400 Sets up 3 ONOS instances
401 Start 2x4 dual-homed leaf-spine topology
402 Pingall
403 """
Devin Lim57221b02018-02-14 15:45:36 -0800404 try:
405 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
406 except ImportError:
407 main.log.error( "SRBridgingTest not found. Exiting the test" )
408 main.cleanAndExit()
409 try:
410 main.funcs
411 except ( NameError, AttributeError ):
412 main.funcs = SRBridgingTest()
413 main.funcs.runTest( main,
414 test_idx=18,
415 topology='2x4',
416 onosNodes=3,
417 description="Bridging test between two tagged hosts",
418 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700419
420 def CASE21( self, main ):
421 """
422 Tests connectivity between two untagged hosts
423 (Ports are configured as vlan-native with vlan-tagged)
424
425 Sets up 1 ONOS instance
426 Start 0x1 single ToR topology
427 Pingall
428 """
Devin Lim57221b02018-02-14 15:45:36 -0800429 try:
430 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
431 except ImportError:
432 main.log.error( "SRBridgingTest not found. Exiting the test" )
433 main.cleanAndExit()
434 try:
435 main.funcs
436 except ( NameError, AttributeError ):
437 main.funcs = SRBridgingTest()
438 main.funcs.runTest( main,
439 test_idx=21,
440 topology='0x1',
441 onosNodes=1,
442 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700443
444 def CASE22( self, main ):
445 """
446 Tests connectivity between two untagged hosts
447 (Ports are configured as vlan-native with vlan-tagged)
448
449 Sets up 1 ONOS instance
450 Start 0x2 dual-homed ToR topology
451 Pingall
452 """
Devin Lim57221b02018-02-14 15:45:36 -0800453 try:
454 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
455 except ImportError:
456 main.log.error( "SRBridgingTest not found. Exiting the test" )
457 main.cleanAndExit()
458 try:
459 main.funcs
460 except ( NameError, AttributeError ):
461 main.funcs = SRBridgingTest()
462 main.funcs.runTest( main,
463 test_idx=22,
464 topology='0x2',
465 onosNodes=1,
466 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700467
468 def CASE23( self, main ):
469 """
470 Tests connectivity between two untagged hosts
471 (Ports are configured as vlan-native with vlan-tagged)
472
473 Sets up 1 ONOS instance
474 Start 2x2 leaf-spine topology
475 Pingall
476 """
Devin Lim57221b02018-02-14 15:45:36 -0800477 try:
478 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
479 except ImportError:
480 main.log.error( "SRBridgingTest not found. Exiting the test" )
481 main.cleanAndExit()
482 try:
483 main.funcs
484 except ( NameError, AttributeError ):
485 main.funcs = SRBridgingTest()
486 main.funcs.runTest( main,
487 test_idx=23,
488 topology='2x2',
489 onosNodes=1,
490 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700491
492 def CASE24( self, main ):
493 """
494 Tests connectivity between two untagged hosts
495 (Ports are configured as vlan-native with vlan-tagged)
496
497 Sets up 1 ONOS instance
498 Start 2x4 dual-homed leaf-spine topology
499 Pingall
500 """
Devin Lim57221b02018-02-14 15:45:36 -0800501 try:
502 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
503 except ImportError:
504 main.log.error( "SRBridgingTest not found. Exiting the test" )
505 main.cleanAndExit()
506 try:
507 main.funcs
508 except ( NameError, AttributeError ):
509 main.funcs = SRBridgingTest()
510 main.funcs.runTest( main,
511 test_idx=24,
512 topology='2x4',
513 onosNodes=1,
514 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700515
516 def CASE25( self, main ):
517 """
518 Tests connectivity between two untagged hosts
519 (Ports are configured as vlan-native with vlan-tagged)
520
521 Sets up 3 ONOS instances
522 Start 0x1 single ToR topology
523 Pingall
524 """
Devin Lim57221b02018-02-14 15:45:36 -0800525 try:
526 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
527 except ImportError:
528 main.log.error( "SRBridgingTest not found. Exiting the test" )
529 main.cleanAndExit()
530 try:
531 main.funcs
532 except ( NameError, AttributeError ):
533 main.funcs = SRBridgingTest()
534 main.funcs.runTest( main,
535 test_idx=25,
536 topology='0x1',
537 onosNodes=3,
538 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700539
540 def CASE26( self, main ):
541 """
542 Tests connectivity between two untagged hosts
543 (Ports are configured as vlan-native with vlan-tagged)
544
545 Sets up 3 ONOS instances
546 Start 0x2 dual-homed ToR topology
547 Pingall
548 """
Devin Lim57221b02018-02-14 15:45:36 -0800549 try:
550 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
551 except ImportError:
552 main.log.error( "SRBridgingTest not found. Exiting the test" )
553 main.cleanAndExit()
554 try:
555 main.funcs
556 except ( NameError, AttributeError ):
557 main.funcs = SRBridgingTest()
558 main.funcs.runTest( main,
559 test_idx=26,
560 topology='0x2',
561 onosNodes=3,
562 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700563
564 def CASE27( self, main ):
565 """
566 Tests connectivity between two untagged hosts
567 (Ports are configured as vlan-native with vlan-tagged)
568
569 Sets up 3 ONOS instances
570 Start 2x2 leaf-spine topology
571 Pingall
572 """
Devin Lim57221b02018-02-14 15:45:36 -0800573 try:
574 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
575 except ImportError:
576 main.log.error( "SRBridgingTest not found. Exiting the test" )
577 main.cleanAndExit()
578 try:
579 main.funcs
580 except ( NameError, AttributeError ):
581 main.funcs = SRBridgingTest()
582 main.funcs.runTest( main,
583 test_idx=27,
584 topology='2x2',
585 onosNodes=3,
586 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700587
588 def CASE28( self, main ):
589 """
590 Tests connectivity between two untagged hosts
591 (Ports are configured as vlan-native with vlan-tagged)
592
593 Sets up 3 ONOS instances
594 Start 2x4 dual-homed leaf-spine topology
595 Pingall
596 """
Devin Lim57221b02018-02-14 15:45:36 -0800597 try:
598 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
599 except ImportError:
600 main.log.error( "SRBridgingTest not found. Exiting the test" )
601 main.cleanAndExit()
602 try:
603 main.funcs
604 except ( NameError, AttributeError ):
605 main.funcs = SRBridgingTest()
606 main.funcs.runTest( main,
607 test_idx=28,
608 topology='2x4',
609 onosNodes=3,
610 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700611
612 def CASE31( self, main ):
613 """
614 Tests connectivity between two untagged hosts
615 (One port is configured as vlan-native with vlan-tagged,
616 another with vlan-untagged)
617
618 Sets up 1 ONOS instance
619 Start 0x1 single ToR topology
620 Pingall
621 """
Devin Lim57221b02018-02-14 15:45:36 -0800622 try:
623 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
624 except ImportError:
625 main.log.error( "SRBridgingTest not found. Exiting the test" )
626 main.cleanAndExit()
627 try:
628 main.funcs
629 except ( NameError, AttributeError ):
630 main.funcs = SRBridgingTest()
631 main.funcs.runTest( main,
632 test_idx=31,
633 topology='0x1',
634 onosNodes=1,
635 description="Bridging test between two untagged hosts, "
636 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700637
638 def CASE32( self, main ):
639 """
640 Tests connectivity between two untagged hosts
641 (One port is configured as vlan-native with vlan-tagged,
642 another with vlan-untagged)
643
644 Sets up 1 ONOS instance
645 Start 0x2 dual-homed ToR topology
646 Pingall
647 """
Devin Lim57221b02018-02-14 15:45:36 -0800648 try:
649 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
650 except ImportError:
651 main.log.error( "SRBridgingTest not found. Exiting the test" )
652 main.cleanAndExit()
653 try:
654 main.funcs
655 except ( NameError, AttributeError ):
656 main.funcs = SRBridgingTest()
657 main.funcs.runTest( main,
658 test_idx=32,
659 topology='0x2',
660 onosNodes=1,
661 description="Bridging test between two untagged hosts, "
662 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700663
664 def CASE33( self, main ):
665 """
666 Tests connectivity between two untagged hosts
667 (One port is configured as vlan-native with vlan-tagged,
668 another with vlan-untagged)
669
670 Sets up 1 ONOS instance
671 Start 2x2 leaf-spine topology
672 Pingall
673 """
Devin Lim57221b02018-02-14 15:45:36 -0800674 try:
675 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
676 except ImportError:
677 main.log.error( "SRBridgingTest not found. Exiting the test" )
678 main.cleanAndExit()
679 try:
680 main.funcs
681 except ( NameError, AttributeError ):
682 main.funcs = SRBridgingTest()
683 main.funcs.runTest( main,
684 test_idx=33,
685 topology='2x2',
686 onosNodes=1,
687 description="Bridging test between two untagged hosts, "
688 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700689
690 def CASE34( self, main ):
691 """
692 Tests connectivity between two untagged hosts
693 (One port is configured as vlan-native with vlan-tagged,
694 another with vlan-untagged)
695
696 Sets up 1 ONOS instance
697 Start 2x4 dual-homed leaf-spine topology
698 Pingall
699 """
Devin Lim57221b02018-02-14 15:45:36 -0800700 try:
701 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
702 except ImportError:
703 main.log.error( "SRBridgingTest not found. Exiting the test" )
704 main.cleanAndExit()
705 try:
706 main.funcs
707 except ( NameError, AttributeError ):
708 main.funcs = SRBridgingTest()
709 main.funcs.runTest( main,
710 test_idx=34,
711 topology='2x4',
712 onosNodes=1,
713 description="Bridging test between two untagged hosts, "
714 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700715
716 def CASE35( self, main ):
717 """
718 Tests connectivity between two untagged hosts
719 (One port is configured as vlan-native with vlan-tagged,
720 another with vlan-untagged)
721
722 Sets up 3 ONOS instances
723 Start 0x1 single ToR topology
724 Pingall
725 """
Devin Lim57221b02018-02-14 15:45:36 -0800726 try:
727 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
728 except ImportError:
729 main.log.error( "SRBridgingTest not found. Exiting the test" )
730 main.cleanAndExit()
731 try:
732 main.funcs
733 except ( NameError, AttributeError ):
734 main.funcs = SRBridgingTest()
735 main.funcs.runTest( main,
736 test_idx=35,
737 topology='0x1',
738 onosNodes=3,
739 description="Bridging test between two untagged hosts, "
740 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700741
742 def CASE36( self, main ):
743 """
744 Tests connectivity between two untagged hosts
745 (One port is configured as vlan-native with vlan-tagged,
746 another with vlan-untagged)
747
748 Sets up 3 ONOS instances
749 Start 0x2 dual-homed ToR topology
750 Pingall
751 """
Devin Lim57221b02018-02-14 15:45:36 -0800752 try:
753 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
754 except ImportError:
755 main.log.error( "SRBridgingTest not found. Exiting the test" )
756 main.cleanAndExit()
757 try:
758 main.funcs
759 except ( NameError, AttributeError ):
760 main.funcs = SRBridgingTest()
761 main.funcs.runTest( main,
762 test_idx=36,
763 topology='0x2',
764 onosNodes=3,
765 description="Bridging test between two untagged hosts, "
766 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700767
768 def CASE37( self, main ):
769 """
770 Tests connectivity between two untagged hosts
771 (One port is configured as vlan-native with vlan-tagged,
772 another with vlan-untagged)
773
774 Sets up 3 ONOS instances
775 Start 2x2 leaf-spine topology
776 Pingall
777 """
Devin Lim57221b02018-02-14 15:45:36 -0800778 try:
779 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
780 except ImportError:
781 main.log.error( "SRBridgingTest not found. Exiting the test" )
782 main.cleanAndExit()
783 try:
784 main.funcs
785 except ( NameError, AttributeError ):
786 main.funcs = SRBridgingTest()
787 main.funcs.runTest( main,
788 test_idx=37,
789 topology='2x2',
790 onosNodes=3,
791 description="Bridging test between two untagged hosts, "
792 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700793
794 def CASE38( self, main ):
795 """
796 Tests connectivity between two untagged hosts
797 (One port is configured as vlan-native with vlan-tagged,
798 another with vlan-untagged)
799
800 Sets up 3 ONOS instances
801 Start 2x4 dual-homed leaf-spine topology
802 Pingall
803 """
Devin Lim57221b02018-02-14 15:45:36 -0800804 try:
805 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
806 except ImportError:
807 main.log.error( "SRBridgingTest not found. Exiting the test" )
808 main.cleanAndExit()
809 try:
810 main.funcs
811 except ( NameError, AttributeError ):
812 main.funcs = SRBridgingTest()
813 main.funcs.runTest(main,
814 test_idx=38,
815 topology='2x4',
816 onosNodes=3,
817 description="Bridging test between two untagged hosts, "
818 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700819
820 def CASE41( self, main ):
821 """
822 Tests connectivity between untagged host and tagged host
823 (Ports are configured as vlan-untagged and
824 vlan-tagged with same vlan id, respectively)
825
826 Sets up 1 ONOS instance
827 Start 0x1 single ToR topology
828 Pingall
829 """
Devin Lim57221b02018-02-14 15:45:36 -0800830 try:
831 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
832 except ImportError:
833 main.log.error( "SRBridgingTest not found. Exiting the test" )
834 main.cleanAndExit()
835 try:
836 main.funcs
837 except ( NameError, AttributeError ):
838 main.funcs = SRBridgingTest()
839 main.funcs.runTest( main,
840 test_idx=41,
841 topology='0x1',
842 onosNodes=1,
843 description="Bridging test between untagged host and tagged host",
844 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700845
846 def CASE42( self, main ):
847 """
848 Tests connectivity between untagged host and tagged host
849 (Ports are configured as vlan-untagged and
850 vlan-tagged with same vlan id, respectively)
851
852 Sets up 1 ONOS instance
853 Start 0x2 dual-homed ToR topology
854 Pingall
855 """
Devin Lim57221b02018-02-14 15:45:36 -0800856 try:
857 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
858 except ImportError:
859 main.log.error( "SRBridgingTest not found. Exiting the test" )
860 main.cleanAndExit()
861 try:
862 main.funcs
863 except ( NameError, AttributeError ):
864 main.funcs = SRBridgingTest()
865 main.funcs.runTest( main,
866 test_idx=42,
867 topology='0x2',
868 onosNodes=1,
869 description="Bridging test between untagged host and tagged host",
870 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700871
872 def CASE43( self, main ):
873 """
874 Tests connectivity between untagged host and tagged host
875 (Ports are configured as vlan-untagged and
876 vlan-tagged with same vlan id, respectively)
877
878 Sets up 1 ONOS instance
879 Start 2x2 leaf-spine topology
880 Pingall
881 """
Devin Lim57221b02018-02-14 15:45:36 -0800882 try:
883 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
884 except ImportError:
885 main.log.error( "SRBridgingTest not found. Exiting the test" )
886 main.cleanAndExit()
887 try:
888 main.funcs
889 except ( NameError, AttributeError ):
890 main.funcs = SRBridgingTest()
891 main.funcs.runTest( main,
892 test_idx=43,
893 topology='2x2',
894 onosNodes=1,
895 description="Bridging test between untagged host and tagged host",
896 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700897
898 def CASE44( self, main ):
899 """
900 Tests connectivity between untagged host and tagged host
901 (Ports are configured as vlan-untagged and
902 vlan-tagged with same vlan id, respectively)
903
904 Sets up 1 ONOS instance
905 Start 2x4 dual-homed leaf-spine topology
906 Pingall
907 """
Devin Lim57221b02018-02-14 15:45:36 -0800908 try:
909 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
910 except ImportError:
911 main.log.error( "SRBridgingTest not found. Exiting the test" )
912 main.cleanAndExit()
913 try:
914 main.funcs
915 except ( NameError, AttributeError ):
916 main.funcs = SRBridgingTest()
917 main.funcs.runTest( main,
918 test_idx=44,
919 topology='2x4',
920 onosNodes=1,
921 description="Bridging test between untagged host and tagged host",
922 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700923
924 def CASE45( self, main ):
925 """
926 Tests connectivity between untagged host and tagged host
927 (Ports are configured as vlan-untagged and
928 vlan-tagged with same vlan id, respectively)
929
930 Sets up 3 ONOS instances
931 Start 0x1 single ToR topology
932 Pingall
933 """
Devin Lim57221b02018-02-14 15:45:36 -0800934 try:
935 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
936 except ImportError:
937 main.log.error( "SRBridgingTest not found. Exiting the test" )
938 main.cleanAndExit()
939 try:
940 main.funcs
941 except ( NameError, AttributeError ):
942 main.funcs = SRBridgingTest()
943 main.funcs.runTest( main,
944 test_idx=45,
945 topology='0x1',
946 onosNodes=3,
947 description="Bridging test between untagged host and tagged host",
948 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700949
950 def CASE46( self, main ):
951 """
952 Tests connectivity between untagged host and tagged host
953 (Ports are configured as vlan-untagged and
954 vlan-tagged with same vlan id, respectively)
955
956 Sets up 3 ONOS instances
957 Start 0x2 dual-homed ToR topology
958 Pingall
959 """
Devin Lim57221b02018-02-14 15:45:36 -0800960 try:
961 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
962 except ImportError:
963 main.log.error( "SRBridgingTest not found. Exiting the test" )
964 main.cleanAndExit()
965 try:
966 main.funcs
967 except ( NameError, AttributeError ):
968 main.funcs = SRBridgingTest()
969 main.funcs.runTest( main,
970 test_idx=46,
971 topology='0x2',
972 onosNodes=3,
973 description="Bridging test between untagged host and tagged host",
974 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700975
976 def CASE47( self, main ):
977 """
978 Tests connectivity between untagged host and tagged host
979 (Ports are configured as vlan-untagged and
980 vlan-tagged with same vlan id, respectively)
981
982 Sets up 3 ONOS instances
983 Start 2x2 leaf-spine topology
984 Pingall
985 """
Devin Lim57221b02018-02-14 15:45:36 -0800986 try:
987 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
988 except ImportError:
989 main.log.error( "SRBridgingTest not found. Exiting the test" )
990 main.cleanAndExit()
991 try:
992 main.funcs
993 except ( NameError, AttributeError ):
994 main.funcs = SRBridgingTest()
995 main.funcs.runTest( main,
996 test_idx=47,
997 topology='2x2',
998 onosNodes=3,
999 description="Bridging test between untagged host and tagged host",
1000 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001001
1002 def CASE48( self, main ):
1003 """
1004 Tests connectivity between untagged host and tagged host
1005 (Ports are configured as vlan-untagged and
1006 vlan-tagged with same vlan id, respectively)
1007
1008 Sets up 3 ONOS instances
1009 Start 2x4 dual-homed leaf-spine topology
1010 Pingall
1011 """
Devin Lim57221b02018-02-14 15:45:36 -08001012 try:
1013 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1014 except ImportError:
1015 main.log.error( "SRBridgingTest not found. Exiting the test" )
1016 main.cleanAndExit()
1017 try:
1018 main.funcs
1019 except ( NameError, AttributeError ):
1020 main.funcs = SRBridgingTest()
1021 main.funcs.runTest( main,
1022 test_idx=48,
1023 topology='2x4',
1024 onosNodes=3,
1025 description="Bridging test between untagged host and tagged host",
1026 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001027
1028 def CASE51( self, main ):
1029 """
1030 Tests connectivity between two untagged hosts with different vlan id
1031 (Ports are configured as vlan-untagged 10 and 20, respectively)
1032
1033 Sets up 1 ONOS instance
1034 Start 0x1 single ToR topology
1035 Pingall
1036 """
Devin Lim57221b02018-02-14 15:45:36 -08001037 try:
1038 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1039 except ImportError:
1040 main.log.error( "SRBridgingTest not found. Exiting the test" )
1041 main.cleanAndExit()
1042 try:
1043 main.funcs
1044 except ( NameError, AttributeError ):
1045 main.funcs = SRBridgingTest()
1046 main.funcs.runTest( main,
1047 test_idx=51,
1048 topology='0x1',
1049 onosNodes=1,
1050 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001051
1052 def CASE52( self, main ):
1053 """
1054 Tests connectivity between two untagged hosts with different vlan id
1055 (Ports are configured as vlan-untagged 10 and 20, respectively)
1056
1057 Sets up 1 ONOS instance
1058 Start 0x2 dual-homed ToR topology
1059 Pingall
1060 """
Devin Lim57221b02018-02-14 15:45:36 -08001061 try:
1062 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1063 except ImportError:
1064 main.log.error( "SRBridgingTest not found. Exiting the test" )
1065 main.cleanAndExit()
1066 try:
1067 main.funcs
1068 except ( NameError, AttributeError ):
1069 main.funcs = SRBridgingTest()
1070 main.funcs.runTest( main,
1071 test_idx=52,
1072 topology='0x2',
1073 onosNodes=1,
1074 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001075
1076 def CASE53( self, main ):
1077 """
1078 Tests connectivity between two untagged hosts with different vlan id
1079 (Ports are configured as vlan-untagged 10 and 20, respectively)
1080
1081 Sets up 1 ONOS instance
1082 Start 2x2 leaf-spine topology
1083 Pingall
1084 """
Devin Lim57221b02018-02-14 15:45:36 -08001085 try:
1086 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1087 except ImportError:
1088 main.log.error( "SRBridgingTest not found. Exiting the test" )
1089 main.cleanAndExit()
1090 try:
1091 main.funcs
1092 except ( NameError, AttributeError ):
1093 main.funcs = SRBridgingTest()
1094 main.funcs.runTest( main,
1095 test_idx=53,
1096 topology='2x2',
1097 onosNodes=1,
1098 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001099
1100 def CASE54( self, main ):
1101 """
1102 Tests connectivity between two untagged hosts with different vlan id
1103 (Ports are configured as vlan-untagged 10 and 20, respectively)
1104
1105 Sets up 1 ONOS instance
1106 Start 2x4 dual-homed leaf-spine topology
1107 Pingall
1108 """
Devin Lim57221b02018-02-14 15:45:36 -08001109 try:
1110 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1111 except ImportError:
1112 main.log.error( "SRBridgingTest not found. Exiting the test" )
1113 main.cleanAndExit()
1114 try:
1115 main.funcs
1116 except ( NameError, AttributeError ):
1117 main.funcs = SRBridgingTest()
1118 main.funcs.runTest( main,
1119 test_idx=54,
1120 topology='2x4',
1121 onosNodes=1,
1122 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001123
1124 def CASE55( self, main ):
1125 """
1126 Tests connectivity between two untagged hosts with different vlan id
1127 (Ports are configured as vlan-untagged 10 and 20, respectively)
1128
1129 Sets up 3 ONOS instances
1130 Start 0x1 single ToR topology
1131 Pingall
1132 """
Devin Lim57221b02018-02-14 15:45:36 -08001133 try:
1134 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1135 except ImportError:
1136 main.log.error( "SRBridgingTest not found. Exiting the test" )
1137 main.cleanAndExit()
1138 try:
1139 main.funcs
1140 except ( NameError, AttributeError ):
1141 main.funcs = SRBridgingTest()
1142 main.funcs.runTest( main,
1143 test_idx=55,
1144 topology='0x1',
1145 onosNodes=3,
1146 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001147
1148 def CASE56( self, main ):
1149 """
1150 Tests connectivity between two untagged hosts with different vlan id
1151 (Ports are configured as vlan-untagged 10 and 20, respectively)
1152
1153 Sets up 3 ONOS instances
1154 Start 0x2 dual-homed ToR topology
1155 Pingall
1156 """
Devin Lim57221b02018-02-14 15:45:36 -08001157 try:
1158 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1159 except ImportError:
1160 main.log.error( "SRBridgingTest not found. Exiting the test" )
1161 main.cleanAndExit()
1162 try:
1163 main.funcs
1164 except ( NameError, AttributeError ):
1165 main.funcs = SRBridgingTest()
1166 main.funcs.runTest( main,
1167 test_idx=56,
1168 topology='0x2',
1169 onosNodes=3,
1170 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001171
1172 def CASE57( self, main ):
1173 """
1174 Tests connectivity between two untagged hosts with different vlan id
1175 (Ports are configured as vlan-untagged 10 and 20, respectively)
1176
1177 Sets up 3 ONOS instances
1178 Start 2x2 leaf-spine topology
1179 Pingall
1180 """
Devin Lim57221b02018-02-14 15:45:36 -08001181 try:
1182 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1183 except ImportError:
1184 main.log.error( "SRBridgingTest not found. Exiting the test" )
1185 main.cleanAndExit()
1186 try:
1187 main.funcs
1188 except ( NameError, AttributeError ):
1189 main.funcs = SRBridgingTest()
1190 main.funcs.runTest( main,
1191 test_idx=57,
1192 topology='2x2',
1193 onosNodes=3,
1194 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001195
1196 def CASE58( self, main ):
1197 """
1198 Tests connectivity between two untagged hosts with different vlan id
1199 (Ports are configured as vlan-untagged 10 and 20, respectively)
1200
1201 Sets up 3 ONOS instances
1202 Start 2x4 dual-homed leaf-spine topology
1203 Pingall
1204 """
Devin Lim57221b02018-02-14 15:45:36 -08001205 try:
1206 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1207 except ImportError:
1208 main.log.error( "SRBridgingTest not found. Exiting the test" )
1209 main.cleanAndExit()
1210 try:
1211 main.funcs
1212 except ( NameError, AttributeError ):
1213 main.funcs = SRBridgingTest()
1214 main.funcs.runTest( main,
1215 test_idx=58,
1216 topology='2x4',
1217 onosNodes=3,
1218 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001219
1220 def CASE61( self, main ):
1221 """
1222 Tests connectivity between two tagged hosts with different vlan id
1223 (Ports are configured as vlan-tagged 10 and 20, respectively)
1224
1225 Sets up 1 ONOS instance
1226 Start 0x1 single ToR topology
1227 Pingall
1228 """
Devin Lim57221b02018-02-14 15:45:36 -08001229 try:
1230 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1231 except ImportError:
1232 main.log.error( "SRBridgingTest not found. Exiting the test" )
1233 main.cleanAndExit()
1234 try:
1235 main.funcs
1236 except ( NameError, AttributeError ):
1237 main.funcs = SRBridgingTest()
1238 main.funcs.runTest( main,
1239 test_idx=61,
1240 topology='0x1',
1241 onosNodes=1,
1242 description="Bridging test between two tagged hosts with different vlan id",
1243 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001244
1245 def CASE62( self, main ):
1246 """
1247 Tests connectivity between two tagged hosts with different vlan id
1248 (Ports are configured as vlan-tagged 10 and 20, respectively)
1249
1250 Sets up 1 ONOS instance
1251 Start 0x2 dual-homed ToR topology
1252 Pingall
1253 """
Devin Lim57221b02018-02-14 15:45:36 -08001254 try:
1255 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1256 except ImportError:
1257 main.log.error( "SRBridgingTest not found. Exiting the test" )
1258 main.cleanAndExit()
1259 try:
1260 main.funcs
1261 except ( NameError, AttributeError ):
1262 main.funcs = SRBridgingTest()
1263 main.funcs.runTest( main,
1264 test_idx=62,
1265 topology='0x2',
1266 onosNodes=1,
1267 description="Bridging test between two tagged hosts with different vlan id",
1268 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001269
1270 def CASE63( self, main ):
1271 """
1272 Tests connectivity between two tagged hosts with different vlan id
1273 (Ports are configured as vlan-tagged 10 and 20, respectively)
1274
1275 Sets up 1 ONOS instance
1276 Start 2x2 leaf-spine topology
1277 Pingall
1278 """
Devin Lim57221b02018-02-14 15:45:36 -08001279 try:
1280 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1281 except ImportError:
1282 main.log.error( "SRBridgingTest not found. Exiting the test" )
1283 main.cleanAndExit()
1284 try:
1285 main.funcs
1286 except ( NameError, AttributeError ):
1287 main.funcs = SRBridgingTest()
1288 main.funcs.runTest( main,
1289 test_idx=63,
1290 topology='2x2',
1291 onosNodes=1,
1292 description="Bridging test between two tagged hosts with different vlan id",
1293 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001294
1295 def CASE64( self, main ):
1296 """
1297 Tests connectivity between two tagged hosts with different vlan id
1298 (Ports are configured as vlan-tagged 10 and 20, respectively)
1299
1300 Sets up 1 ONOS instance
1301 Start 2x4 dual-homed leaf-spine topology
1302 Pingall
1303 """
Devin Lim57221b02018-02-14 15:45:36 -08001304 try:
1305 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1306 except ImportError:
1307 main.log.error( "SRBridgingTest not found. Exiting the test" )
1308 main.cleanAndExit()
1309 try:
1310 main.funcs
1311 except ( NameError, AttributeError ):
1312 main.funcs = SRBridgingTest()
1313 main.funcs.runTest( main,
1314 test_idx=64,
1315 topology='2x4',
1316 onosNodes=1,
1317 description="Bridging test between two tagged hosts with different vlan id",
1318 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001319
1320 def CASE65( self, main ):
1321 """
1322 Tests connectivity between two tagged hosts with different vlan id
1323 (Ports are configured as vlan-tagged 10 and 20, respectively)
1324
1325 Sets up 3 ONOS instances
1326 Start 0x1 single ToR topology
1327 Pingall
1328 """
Devin Lim57221b02018-02-14 15:45:36 -08001329 try:
1330 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1331 except ImportError:
1332 main.log.error( "SRBridgingTest not found. Exiting the test" )
1333 main.cleanAndExit()
1334 try:
1335 main.funcs
1336 except ( NameError, AttributeError ):
1337 main.funcs = SRBridgingTest()
1338 main.funcs.runTest( main,
1339 test_idx=65,
1340 topology='0x1',
1341 onosNodes=3,
1342 description="Bridging test between two tagged hosts with different vlan id",
1343 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001344
1345 def CASE66( self, main ):
1346 """
1347 Tests connectivity between two tagged hosts with different vlan id
1348 (Ports are configured as vlan-tagged 10 and 20, respectively)
1349
1350 Sets up 3 ONOS instances
1351 Start 0x2 dual-homed ToR topology
1352 Pingall
1353 """
Devin Lim57221b02018-02-14 15:45:36 -08001354 try:
1355 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1356 except ImportError:
1357 main.log.error( "SRBridgingTest not found. Exiting the test" )
1358 main.cleanAndExit()
1359 try:
1360 main.funcs
1361 except ( NameError, AttributeError ):
1362 main.funcs = SRBridgingTest()
1363 main.funcs.runTest( main,
1364 test_idx=66,
1365 topology='0x2',
1366 onosNodes=3,
1367 description="Bridging test between two tagged hosts with different vlan id",
1368 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001369
1370 def CASE67( self, main ):
1371 """
1372 Tests connectivity between two tagged hosts with different vlan id
1373 (Ports are configured as vlan-tagged 10 and 20, respectively)
1374
1375 Sets up 3 ONOS instances
1376 Start 2x2 leaf-spine topology
1377 Pingall
1378 """
Devin Lim57221b02018-02-14 15:45:36 -08001379 try:
1380 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1381 except ImportError:
1382 main.log.error( "SRBridgingTest not found. Exiting the test" )
1383 main.cleanAndExit()
1384 try:
1385 main.funcs
1386 except ( NameError, AttributeError ):
1387 main.funcs = SRBridgingTest()
1388 main.funcs.runTest( main,
1389 test_idx=67,
1390 topology='2x2',
1391 onosNodes=3,
1392 description="Bridging test between two tagged hosts with different vlan id",
1393 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001394
1395 def CASE68( self, main ):
1396 """
1397 Tests connectivity between two tagged hosts with different vlan id
1398 (Ports are configured as vlan-tagged 10 and 20, respectively)
1399
1400 Sets up 3 ONOS instances
1401 Start 2x4 dual-homed leaf-spine topology
1402 Pingall
1403 """
Devin Lim57221b02018-02-14 15:45:36 -08001404 try:
1405 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1406 except ImportError:
1407 main.log.error( "SRBridgingTest not found. Exiting the test" )
1408 main.cleanAndExit()
1409 try:
1410 main.funcs
1411 except ( NameError, AttributeError ):
1412 main.funcs = SRBridgingTest()
1413 main.funcs.runTest( main,
1414 test_idx=68,
1415 topology='2x4',
1416 onosNodes=3,
1417 description="Bridging test between two tagged hosts with different vlan id",
1418 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001419
1420 def CASE71( self, main ):
1421 """
1422 Tests connectivity between untagged and tagged hosts with different vlan id
1423 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1424
1425 Sets up 1 ONOS instance
1426 Start 0x1 single ToR topology
1427 Pingall
1428 """
Devin Lim57221b02018-02-14 15:45:36 -08001429 try:
1430 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1431 except ImportError:
1432 main.log.error( "SRBridgingTest not found. Exiting the test" )
1433 main.cleanAndExit()
1434 try:
1435 main.funcs
1436 except ( NameError, AttributeError ):
1437 main.funcs = SRBridgingTest()
1438 main.funcs.runTest( main,
1439 test_idx=71,
1440 topology='0x1',
1441 onosNodes=1,
1442 description="Bridging test between untagged and tagged hosts with different vlan id",
1443 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001444
1445 def CASE72( self, main ):
1446 """
1447 Tests connectivity between untagged and tagged hosts with different vlan id
1448 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1449
1450 Sets up 1 ONOS instance
1451 Start 0x2 dual-homed ToR topology
1452 Pingall
1453 """
Devin Lim57221b02018-02-14 15:45:36 -08001454 try:
1455 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1456 except ImportError:
1457 main.log.error( "SRBridgingTest not found. Exiting the test" )
1458 main.cleanAndExit()
1459 try:
1460 main.funcs
1461 except ( NameError, AttributeError ):
1462 main.funcs = SRBridgingTest()
1463 main.funcs.runTest( main,
1464 test_idx=72,
1465 topology='0x2',
1466 onosNodes=1,
1467 description="Bridging test between untagged and tagged hosts with different vlan id",
1468 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001469
1470 def CASE73( self, main ):
1471 """
1472 Tests connectivity between untagged and tagged hosts with different vlan id
1473 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1474
1475 Sets up 1 ONOS instance
1476 Start 2x2 leaf-spine topology
1477 Pingall
1478 """
Devin Lim57221b02018-02-14 15:45:36 -08001479 try:
1480 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1481 except ImportError:
1482 main.log.error( "SRBridgingTest not found. Exiting the test" )
1483 main.cleanAndExit()
1484 try:
1485 main.funcs
1486 except ( NameError, AttributeError ):
1487 main.funcs = SRBridgingTest()
1488 main.funcs.runTest( main,
1489 test_idx=73,
1490 topology='2x2',
1491 onosNodes=1,
1492 description="Bridging test between untagged and tagged hosts with different vlan id",
1493 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001494
1495 def CASE74( self, main ):
1496 """
1497 Tests connectivity between untagged and tagged hosts with different vlan id
1498 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1499
1500 Sets up 1 ONOS instance
1501 Start 2x2 dual-homed leaf-spine topology
1502 Pingall
1503 """
Devin Lim57221b02018-02-14 15:45:36 -08001504 try:
1505 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1506 except ImportError:
1507 main.log.error( "SRBridgingTest not found. Exiting the test" )
1508 main.cleanAndExit()
1509 try:
1510 main.funcs
1511 except ( NameError, AttributeError ):
1512 main.funcs = SRBridgingTest()
1513 main.funcs.runTest( main,
1514 test_idx=74,
1515 topology='2x4',
1516 onosNodes=1,
1517 description="Bridging test between untagged and tagged hosts with different vlan id",
1518 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001519
1520 def CASE75( self, main ):
1521 """
1522 Tests connectivity between untagged and tagged hosts with different vlan id
1523 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1524
1525 Sets up 3 ONOS instances
1526 Start 0x1 single ToR topology
1527 Pingall
1528 """
Devin Lim57221b02018-02-14 15:45:36 -08001529 try:
1530 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1531 except ImportError:
1532 main.log.error( "SRBridgingTest not found. Exiting the test" )
1533 main.cleanAndExit()
1534 try:
1535 main.funcs
1536 except ( NameError, AttributeError ):
1537 main.funcs = SRBridgingTest()
1538 main.funcs.runTest( main,
1539 test_idx=75,
1540 topology='0x1',
1541 onosNodes=3,
1542 description="Bridging test between untagged and tagged hosts with different vlan id",
1543 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001544
1545 def CASE76( self, main ):
1546 """
1547 Tests connectivity between untagged and tagged hosts with different vlan id
1548 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1549
1550 Sets up 3 ONOS instances
1551 Start 0x2 dual-homed ToR topology
1552 Pingall
1553 """
Devin Lim57221b02018-02-14 15:45:36 -08001554 try:
1555 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1556 except ImportError:
1557 main.log.error( "SRBridgingTest not found. Exiting the test" )
1558 main.cleanAndExit()
1559 try:
1560 main.funcs
1561 except ( NameError, AttributeError ):
1562 main.funcs = SRBridgingTest()
1563 main.funcs.runTest( main,
1564 test_idx=76,
1565 topology='0x2',
1566 onosNodes=3,
1567 description="Bridging test between untagged and tagged hosts with different vlan id",
1568 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001569
1570 def CASE77( self, main ):
1571 """
1572 Tests connectivity between untagged and tagged hosts with different vlan id
1573 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1574
1575 Sets up 3 ONOS instances
1576 Start 2x2 leaf-spine topology
1577 Pingall
1578 """
Devin Lim57221b02018-02-14 15:45:36 -08001579 try:
1580 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1581 except ImportError:
1582 main.log.error( "SRBridgingTest not found. Exiting the test" )
1583 main.cleanAndExit()
1584 try:
1585 main.funcs
1586 except ( NameError, AttributeError ):
1587 main.funcs = SRBridgingTest()
1588 main.funcs.runTest( main,
1589 test_idx=77,
1590 topology='2x2',
1591 onosNodes=3,
1592 description="Bridging test between untagged and tagged hosts with different vlan id",
1593 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001594
1595 def CASE78( self, main ):
1596 """
1597 Tests connectivity between untagged and tagged hosts with different vlan id
1598 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1599
1600 Sets up 3 ONOS instances
1601 Start 2x2 dual-homed leaf-spine topology
1602 Pingall
1603 """
Devin Lim57221b02018-02-14 15:45:36 -08001604 try:
1605 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1606 except ImportError:
1607 main.log.error( "SRBridgingTest not found. Exiting the test" )
1608 main.cleanAndExit()
1609 try:
1610 main.funcs
1611 except ( NameError, AttributeError ):
1612 main.funcs = SRBridgingTest()
1613 main.funcs.runTest( main,
1614 test_idx=78,
1615 topology='2x4',
1616 onosNodes=3,
1617 description="Bridging test between untagged and tagged hosts with different vlan id",
1618 vlan=[ 0, 20, 0, 40 ] )