blob: 1606e1ba820e37c581eff5cf34205e559bb296ed [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" )
Siddesha19e3c82021-06-09 22:45:27 +0000196
Siddesh167bc882021-03-23 21:03:43 +0000197 def CASE9( self, main ):
198 """
199 Tests connectivity between two untagged hosts
200 (Ports are configured as vlan-untagged)
201
202 Sets up 3 ONOS instances
203 Start 2x2 leaf-spine topology
204 Pingall
205 """
206 try:
207 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
208 except ImportError:
209 main.log.error( "SRBridgingTest not found. Exiting the test" )
210 main.cleanAndExit()
211 try:
212 main.funcs
213 except ( NameError, AttributeError ):
214 main.funcs = SRBridgingTest()
215 main.funcs.runTest( main,
Siddesha19e3c82021-06-09 22:45:27 +0000216 test_idx=9,
Siddesh167bc882021-03-23 21:03:43 +0000217 topology='2x2 dual-linked',
218 onosNodes=3,
219 description="Bridging test between two untagged hosts on vlan-untagged port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700220
221 def CASE11( self, main ):
222 """
223 Tests connectivity between two tagged hosts
224 (Ports are configured as vlan-tagged)
225
226 Sets up 1 ONOS instance
227 Start 0x1 single ToR topology
228 Pingall
229 """
Devin Lim57221b02018-02-14 15:45:36 -0800230 try:
231 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
232 except ImportError:
233 main.log.error( "SRBridgingTest not found. Exiting the test" )
234 main.cleanAndExit()
235 try:
236 main.funcs
237 except ( NameError, AttributeError ):
238 main.funcs = SRBridgingTest()
239 main.funcs.runTest( main,
240 test_idx=11,
241 topology='0x1',
242 onosNodes=1,
243 description="Bridging test between two tagged hosts",
244 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700245
246 def CASE12( self, main ):
247 """
248 Tests connectivity between two tagged hosts
249 (Ports are configured as vlan-tagged)
250
251 Sets up 1 ONOS instance
252 Start 0x2 dual-homed ToR topology
253 Pingall
254 """
Devin Lim57221b02018-02-14 15:45:36 -0800255 try:
256 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
257 except ImportError:
258 main.log.error( "SRBridgingTest not found. Exiting the test" )
259 main.cleanAndExit()
260 try:
261 main.funcs
262 except ( NameError, AttributeError ):
263 main.funcs = SRBridgingTest()
264 main.funcs.runTest( main,
265 test_idx=12,
266 topology='0x2',
267 onosNodes=1,
268 description="Bridging test between two tagged hosts",
269 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700270
271 def CASE13( self, main ):
272 """
273 Tests connectivity between two tagged hosts
274 (Ports are configured as vlan-tagged)
275
276 Sets up 1 ONOS instance
277 Start 2x2 leaf-spine topology
278 Pingall
279 """
Devin Lim57221b02018-02-14 15:45:36 -0800280 try:
281 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
282 except ImportError:
283 main.log.error( "SRBridgingTest not found. Exiting the test" )
284 main.cleanAndExit()
285 try:
286 main.funcs
287 except ( NameError, AttributeError ):
288 main.funcs = SRBridgingTest()
289 main.funcs.runTest( main,
290 test_idx=13,
291 topology='2x2',
292 onosNodes=1,
293 description="Bridging test between two tagged hosts",
294 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700295
296 def CASE14( self, main ):
297 """
298 Tests connectivity between two tagged hosts
299 (Ports are configured as vlan-tagged)
300
301 Sets up 1 ONOS instance
302 Start 2x4 dual-homed leaf-spine topology
303 Pingall
304 """
Devin Lim57221b02018-02-14 15:45:36 -0800305 try:
306 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
307 except ImportError:
308 main.log.error( "SRBridgingTest not found. Exiting the test" )
309 main.cleanAndExit()
310 try:
311 main.funcs
312 except ( NameError, AttributeError ):
313 main.funcs = SRBridgingTest()
314 main.funcs.runTest( main,
315 test_idx=14,
316 topology='2x4',
317 onosNodes=1,
318 description="Bridging test between two tagged hosts",
319 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700320
321 def CASE15( self, main ):
322 """
323 Tests connectivity between two tagged hosts
324 (Ports are configured as vlan-tagged)
325
326 Sets up 3 ONOS instances
327 Start 0x1 single ToR topology
328 Pingall
329 """
Devin Lim57221b02018-02-14 15:45:36 -0800330 try:
331 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
332 except ImportError:
333 main.log.error( "SRBridgingTest not found. Exiting the test" )
334 main.cleanAndExit()
335 try:
336 main.funcs
337 except ( NameError, AttributeError ):
338 main.funcs = SRBridgingTest()
339 main.funcs.runTest( main,
340 test_idx=15,
341 topology='0x1',
342 onosNodes=3,
343 description="Bridging test between two tagged hosts",
344 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700345
346 def CASE16( self, main ):
347 """
348 Tests connectivity between two tagged hosts
349 (Ports are configured as vlan-tagged)
350
351 Sets up 3 ONOS instances
352 Start 0x2 dual-homed ToR topology
353 Pingall
354 """
Devin Lim57221b02018-02-14 15:45:36 -0800355 try:
356 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
357 except ImportError:
358 main.log.error( "SRBridgingTest not found. Exiting the test" )
359 main.cleanAndExit()
360 try:
361 main.funcs
362 except ( NameError, AttributeError ):
363 main.funcs = SRBridgingTest()
364 main.funcs.runTest( main,
365 test_idx=16,
366 topology='0x2',
367 onosNodes=3,
368 description="Bridging test between two tagged hosts",
369 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700370
371 def CASE17( self, main ):
372 """
373 Tests connectivity between two tagged hosts
374 (Ports are configured as vlan-tagged)
375
376 Sets up 3 ONOS instances
377 Start 2x2 leaf-spine topology
378 Pingall
379 """
Devin Lim57221b02018-02-14 15:45:36 -0800380 try:
381 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
382 except ImportError:
383 main.log.error( "SRBridgingTest not found. Exiting the test" )
384 main.cleanAndExit()
385 try:
386 main.funcs
387 except ( NameError, AttributeError ):
388 main.funcs = SRBridgingTest()
389 main.funcs.runTest( main,
390 test_idx=17,
391 topology='2x2',
392 onosNodes=3,
393 description="Bridging test between two tagged hosts",
394 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700395
396 def CASE18( self, main ):
397 """
398 Tests connectivity between two tagged hosts
399 (Ports are configured as vlan-tagged)
400
401 Sets up 3 ONOS instances
402 Start 2x4 dual-homed leaf-spine topology
403 Pingall
404 """
Devin Lim57221b02018-02-14 15:45:36 -0800405 try:
406 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
407 except ImportError:
408 main.log.error( "SRBridgingTest not found. Exiting the test" )
409 main.cleanAndExit()
410 try:
411 main.funcs
412 except ( NameError, AttributeError ):
413 main.funcs = SRBridgingTest()
414 main.funcs.runTest( main,
415 test_idx=18,
416 topology='2x4',
417 onosNodes=3,
418 description="Bridging test between two tagged hosts",
419 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700420
Siddesha19e3c82021-06-09 22:45:27 +0000421 def CASE19( self, main ):
422 """
423 Tests connectivity between two tagged hosts
424 (Ports are configured as vlan-tagged)
425
426 Sets up 3 ONOS instances
427 Start 2x2 leaf-spine topology
428 Pingall
429 """
430 try:
431 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
432 except ImportError:
433 main.log.error( "SRBridgingTest not found. Exiting the test" )
434 main.cleanAndExit()
435 try:
436 main.funcs
437 except ( NameError, AttributeError ):
438 main.funcs = SRBridgingTest()
439 main.funcs.runTest( main,
440 test_idx=19,
441 topology='2x2 dual-linked',
442 onosNodes=3,
You Wangad36bc22021-06-25 17:04:20 -0700443 description="Bridging test between two tagged hosts",
Siddesha19e3c82021-06-09 22:45:27 +0000444 vlan=[ 10, 10, 20, 20 ] )
445
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700446 def CASE21( self, main ):
447 """
448 Tests connectivity between two untagged hosts
449 (Ports are configured as vlan-native with vlan-tagged)
450
451 Sets up 1 ONOS instance
452 Start 0x1 single ToR topology
453 Pingall
454 """
Devin Lim57221b02018-02-14 15:45:36 -0800455 try:
456 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
457 except ImportError:
458 main.log.error( "SRBridgingTest not found. Exiting the test" )
459 main.cleanAndExit()
460 try:
461 main.funcs
462 except ( NameError, AttributeError ):
463 main.funcs = SRBridgingTest()
464 main.funcs.runTest( main,
465 test_idx=21,
466 topology='0x1',
467 onosNodes=1,
468 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700469
470 def CASE22( self, main ):
471 """
472 Tests connectivity between two untagged hosts
473 (Ports are configured as vlan-native with vlan-tagged)
474
475 Sets up 1 ONOS instance
476 Start 0x2 dual-homed ToR topology
477 Pingall
478 """
Devin Lim57221b02018-02-14 15:45:36 -0800479 try:
480 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
481 except ImportError:
482 main.log.error( "SRBridgingTest not found. Exiting the test" )
483 main.cleanAndExit()
484 try:
485 main.funcs
486 except ( NameError, AttributeError ):
487 main.funcs = SRBridgingTest()
488 main.funcs.runTest( main,
489 test_idx=22,
490 topology='0x2',
491 onosNodes=1,
492 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700493
494 def CASE23( self, main ):
495 """
496 Tests connectivity between two untagged hosts
497 (Ports are configured as vlan-native with vlan-tagged)
498
499 Sets up 1 ONOS instance
500 Start 2x2 leaf-spine topology
501 Pingall
502 """
Devin Lim57221b02018-02-14 15:45:36 -0800503 try:
504 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
505 except ImportError:
506 main.log.error( "SRBridgingTest not found. Exiting the test" )
507 main.cleanAndExit()
508 try:
509 main.funcs
510 except ( NameError, AttributeError ):
511 main.funcs = SRBridgingTest()
512 main.funcs.runTest( main,
513 test_idx=23,
514 topology='2x2',
515 onosNodes=1,
516 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700517
518 def CASE24( self, main ):
519 """
520 Tests connectivity between two untagged hosts
521 (Ports are configured as vlan-native with vlan-tagged)
522
523 Sets up 1 ONOS instance
524 Start 2x4 dual-homed leaf-spine topology
525 Pingall
526 """
Devin Lim57221b02018-02-14 15:45:36 -0800527 try:
528 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
529 except ImportError:
530 main.log.error( "SRBridgingTest not found. Exiting the test" )
531 main.cleanAndExit()
532 try:
533 main.funcs
534 except ( NameError, AttributeError ):
535 main.funcs = SRBridgingTest()
536 main.funcs.runTest( main,
537 test_idx=24,
538 topology='2x4',
539 onosNodes=1,
540 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700541
542 def CASE25( self, main ):
543 """
544 Tests connectivity between two untagged hosts
545 (Ports are configured as vlan-native with vlan-tagged)
546
547 Sets up 3 ONOS instances
548 Start 0x1 single ToR topology
549 Pingall
550 """
Devin Lim57221b02018-02-14 15:45:36 -0800551 try:
552 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
553 except ImportError:
554 main.log.error( "SRBridgingTest not found. Exiting the test" )
555 main.cleanAndExit()
556 try:
557 main.funcs
558 except ( NameError, AttributeError ):
559 main.funcs = SRBridgingTest()
560 main.funcs.runTest( main,
561 test_idx=25,
562 topology='0x1',
563 onosNodes=3,
564 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700565
566 def CASE26( self, main ):
567 """
568 Tests connectivity between two untagged hosts
569 (Ports are configured as vlan-native with vlan-tagged)
570
571 Sets up 3 ONOS instances
572 Start 0x2 dual-homed ToR topology
573 Pingall
574 """
Devin Lim57221b02018-02-14 15:45:36 -0800575 try:
576 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
577 except ImportError:
578 main.log.error( "SRBridgingTest not found. Exiting the test" )
579 main.cleanAndExit()
580 try:
581 main.funcs
582 except ( NameError, AttributeError ):
583 main.funcs = SRBridgingTest()
584 main.funcs.runTest( main,
585 test_idx=26,
586 topology='0x2',
587 onosNodes=3,
588 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700589
590 def CASE27( self, main ):
591 """
592 Tests connectivity between two untagged hosts
593 (Ports are configured as vlan-native with vlan-tagged)
594
595 Sets up 3 ONOS instances
596 Start 2x2 leaf-spine topology
597 Pingall
598 """
Devin Lim57221b02018-02-14 15:45:36 -0800599 try:
600 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
601 except ImportError:
602 main.log.error( "SRBridgingTest not found. Exiting the test" )
603 main.cleanAndExit()
604 try:
605 main.funcs
606 except ( NameError, AttributeError ):
607 main.funcs = SRBridgingTest()
608 main.funcs.runTest( main,
609 test_idx=27,
610 topology='2x2',
611 onosNodes=3,
612 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700613
614 def CASE28( self, main ):
615 """
616 Tests connectivity between two untagged hosts
617 (Ports are configured as vlan-native with vlan-tagged)
618
619 Sets up 3 ONOS instances
620 Start 2x4 dual-homed leaf-spine topology
621 Pingall
622 """
Devin Lim57221b02018-02-14 15:45:36 -0800623 try:
624 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
625 except ImportError:
626 main.log.error( "SRBridgingTest not found. Exiting the test" )
627 main.cleanAndExit()
628 try:
629 main.funcs
630 except ( NameError, AttributeError ):
631 main.funcs = SRBridgingTest()
632 main.funcs.runTest( main,
633 test_idx=28,
634 topology='2x4',
635 onosNodes=3,
636 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700637
Siddesha19e3c82021-06-09 22:45:27 +0000638 def CASE29( self, main ):
639 """
640 Tests connectivity between two untagged hosts
641 (Ports are configured as vlan-native with vlan-tagged)
642
643 Sets up 3 ONOS instances
644 Start 2x2 leaf-spine topology
645 Pingall
646 """
647 try:
648 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
649 except ImportError:
650 main.log.error( "SRBridgingTest not found. Exiting the test" )
651 main.cleanAndExit()
652 try:
653 main.funcs
654 except ( NameError, AttributeError ):
655 main.funcs = SRBridgingTest()
656 main.funcs.runTest( main,
657 test_idx=29,
658 topology='2x2 dual-linked',
659 onosNodes=3,
660 description="Bridging test between two untagged hosts on vlan-native port" )
661
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700662 def CASE31( self, main ):
663 """
664 Tests connectivity between two untagged hosts
665 (One port is configured as vlan-native with vlan-tagged,
666 another with vlan-untagged)
667
668 Sets up 1 ONOS instance
669 Start 0x1 single ToR topology
670 Pingall
671 """
Devin Lim57221b02018-02-14 15:45:36 -0800672 try:
673 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
674 except ImportError:
675 main.log.error( "SRBridgingTest not found. Exiting the test" )
676 main.cleanAndExit()
677 try:
678 main.funcs
679 except ( NameError, AttributeError ):
680 main.funcs = SRBridgingTest()
681 main.funcs.runTest( main,
682 test_idx=31,
683 topology='0x1',
684 onosNodes=1,
685 description="Bridging test between two untagged hosts, "
686 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700687
688 def CASE32( self, main ):
689 """
690 Tests connectivity between two untagged hosts
691 (One port is configured as vlan-native with vlan-tagged,
692 another with vlan-untagged)
693
694 Sets up 1 ONOS instance
695 Start 0x2 dual-homed ToR topology
696 Pingall
697 """
Devin Lim57221b02018-02-14 15:45:36 -0800698 try:
699 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
700 except ImportError:
701 main.log.error( "SRBridgingTest not found. Exiting the test" )
702 main.cleanAndExit()
703 try:
704 main.funcs
705 except ( NameError, AttributeError ):
706 main.funcs = SRBridgingTest()
707 main.funcs.runTest( main,
708 test_idx=32,
709 topology='0x2',
710 onosNodes=1,
711 description="Bridging test between two untagged hosts, "
712 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700713
714 def CASE33( self, main ):
715 """
716 Tests connectivity between two untagged hosts
717 (One port is configured as vlan-native with vlan-tagged,
718 another with vlan-untagged)
719
720 Sets up 1 ONOS instance
721 Start 2x2 leaf-spine topology
722 Pingall
723 """
Devin Lim57221b02018-02-14 15:45:36 -0800724 try:
725 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
726 except ImportError:
727 main.log.error( "SRBridgingTest not found. Exiting the test" )
728 main.cleanAndExit()
729 try:
730 main.funcs
731 except ( NameError, AttributeError ):
732 main.funcs = SRBridgingTest()
733 main.funcs.runTest( main,
734 test_idx=33,
735 topology='2x2',
736 onosNodes=1,
737 description="Bridging test between two untagged hosts, "
738 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700739
740 def CASE34( self, main ):
741 """
742 Tests connectivity between two untagged hosts
743 (One port is configured as vlan-native with vlan-tagged,
744 another with vlan-untagged)
745
746 Sets up 1 ONOS instance
747 Start 2x4 dual-homed leaf-spine topology
748 Pingall
749 """
Devin Lim57221b02018-02-14 15:45:36 -0800750 try:
751 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
752 except ImportError:
753 main.log.error( "SRBridgingTest not found. Exiting the test" )
754 main.cleanAndExit()
755 try:
756 main.funcs
757 except ( NameError, AttributeError ):
758 main.funcs = SRBridgingTest()
759 main.funcs.runTest( main,
760 test_idx=34,
761 topology='2x4',
762 onosNodes=1,
763 description="Bridging test between two untagged hosts, "
764 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700765
766 def CASE35( self, main ):
767 """
768 Tests connectivity between two untagged hosts
769 (One port is configured as vlan-native with vlan-tagged,
770 another with vlan-untagged)
771
772 Sets up 3 ONOS instances
773 Start 0x1 single ToR topology
774 Pingall
775 """
Devin Lim57221b02018-02-14 15:45:36 -0800776 try:
777 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
778 except ImportError:
779 main.log.error( "SRBridgingTest not found. Exiting the test" )
780 main.cleanAndExit()
781 try:
782 main.funcs
783 except ( NameError, AttributeError ):
784 main.funcs = SRBridgingTest()
785 main.funcs.runTest( main,
786 test_idx=35,
787 topology='0x1',
788 onosNodes=3,
789 description="Bridging test between two untagged hosts, "
790 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700791
792 def CASE36( self, main ):
793 """
794 Tests connectivity between two untagged hosts
795 (One port is configured as vlan-native with vlan-tagged,
796 another with vlan-untagged)
797
798 Sets up 3 ONOS instances
799 Start 0x2 dual-homed ToR topology
800 Pingall
801 """
Devin Lim57221b02018-02-14 15:45:36 -0800802 try:
803 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
804 except ImportError:
805 main.log.error( "SRBridgingTest not found. Exiting the test" )
806 main.cleanAndExit()
807 try:
808 main.funcs
809 except ( NameError, AttributeError ):
810 main.funcs = SRBridgingTest()
811 main.funcs.runTest( main,
812 test_idx=36,
813 topology='0x2',
814 onosNodes=3,
815 description="Bridging test between two untagged hosts, "
816 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700817
818 def CASE37( self, main ):
819 """
820 Tests connectivity between two untagged hosts
821 (One port is configured as vlan-native with vlan-tagged,
822 another with vlan-untagged)
823
824 Sets up 3 ONOS instances
825 Start 2x2 leaf-spine topology
826 Pingall
827 """
Devin Lim57221b02018-02-14 15:45:36 -0800828 try:
829 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
830 except ImportError:
831 main.log.error( "SRBridgingTest not found. Exiting the test" )
832 main.cleanAndExit()
833 try:
834 main.funcs
835 except ( NameError, AttributeError ):
836 main.funcs = SRBridgingTest()
837 main.funcs.runTest( main,
838 test_idx=37,
839 topology='2x2',
840 onosNodes=3,
841 description="Bridging test between two untagged hosts, "
842 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700843
844 def CASE38( self, main ):
845 """
846 Tests connectivity between two untagged hosts
847 (One port is configured as vlan-native with vlan-tagged,
848 another with vlan-untagged)
849
850 Sets up 3 ONOS instances
851 Start 2x4 dual-homed leaf-spine topology
852 Pingall
853 """
Devin Lim57221b02018-02-14 15:45:36 -0800854 try:
855 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
856 except ImportError:
857 main.log.error( "SRBridgingTest not found. Exiting the test" )
858 main.cleanAndExit()
859 try:
860 main.funcs
861 except ( NameError, AttributeError ):
862 main.funcs = SRBridgingTest()
863 main.funcs.runTest(main,
864 test_idx=38,
865 topology='2x4',
866 onosNodes=3,
867 description="Bridging test between two untagged hosts, "
868 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700869
Siddesha19e3c82021-06-09 22:45:27 +0000870 def CASE39( self, main ):
871 """
872 Tests connectivity between two untagged hosts
873 (Ports are configured as vlan-native and vlan-tagged, another with vlan-untagged)
874
875 Sets up 3 ONOS instances
876 Start 2x2 leaf-spine topology
877 Pingall
878 """
879 try:
880 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
881 except ImportError:
882 main.log.error( "SRBridgingTest not found. Exiting the test" )
883 main.cleanAndExit()
884 try:
885 main.funcs
886 except ( NameError, AttributeError ):
887 main.funcs = SRBridgingTest()
888 main.funcs.runTest( main,
889 test_idx=39,
890 topology='2x2 dual-linked',
891 onosNodes=3,
892 description="Bridging test between two untagged hosts, "
893 "one on vlan-untagged port and the other on vlan-native port" )
894
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700895 def CASE41( self, main ):
896 """
897 Tests connectivity between untagged host and tagged host
898 (Ports are configured as vlan-untagged and
899 vlan-tagged with same vlan id, respectively)
900
901 Sets up 1 ONOS instance
902 Start 0x1 single ToR topology
903 Pingall
904 """
Devin Lim57221b02018-02-14 15:45:36 -0800905 try:
906 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
907 except ImportError:
908 main.log.error( "SRBridgingTest not found. Exiting the test" )
909 main.cleanAndExit()
910 try:
911 main.funcs
912 except ( NameError, AttributeError ):
913 main.funcs = SRBridgingTest()
914 main.funcs.runTest( main,
915 test_idx=41,
916 topology='0x1',
917 onosNodes=1,
918 description="Bridging test between untagged host and tagged host",
919 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700920
921 def CASE42( self, main ):
922 """
923 Tests connectivity between untagged host and tagged host
924 (Ports are configured as vlan-untagged and
925 vlan-tagged with same vlan id, respectively)
926
927 Sets up 1 ONOS instance
928 Start 0x2 dual-homed ToR topology
929 Pingall
930 """
Devin Lim57221b02018-02-14 15:45:36 -0800931 try:
932 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
933 except ImportError:
934 main.log.error( "SRBridgingTest not found. Exiting the test" )
935 main.cleanAndExit()
936 try:
937 main.funcs
938 except ( NameError, AttributeError ):
939 main.funcs = SRBridgingTest()
940 main.funcs.runTest( main,
941 test_idx=42,
942 topology='0x2',
943 onosNodes=1,
944 description="Bridging test between untagged host and tagged host",
945 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700946
947 def CASE43( self, main ):
948 """
949 Tests connectivity between untagged host and tagged host
950 (Ports are configured as vlan-untagged and
951 vlan-tagged with same vlan id, respectively)
952
953 Sets up 1 ONOS instance
954 Start 2x2 leaf-spine topology
955 Pingall
956 """
Devin Lim57221b02018-02-14 15:45:36 -0800957 try:
958 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
959 except ImportError:
960 main.log.error( "SRBridgingTest not found. Exiting the test" )
961 main.cleanAndExit()
962 try:
963 main.funcs
964 except ( NameError, AttributeError ):
965 main.funcs = SRBridgingTest()
966 main.funcs.runTest( main,
967 test_idx=43,
968 topology='2x2',
969 onosNodes=1,
970 description="Bridging test between untagged host and tagged host",
971 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700972
973 def CASE44( self, main ):
974 """
975 Tests connectivity between untagged host and tagged host
976 (Ports are configured as vlan-untagged and
977 vlan-tagged with same vlan id, respectively)
978
979 Sets up 1 ONOS instance
980 Start 2x4 dual-homed leaf-spine topology
981 Pingall
982 """
Devin Lim57221b02018-02-14 15:45:36 -0800983 try:
984 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
985 except ImportError:
986 main.log.error( "SRBridgingTest not found. Exiting the test" )
987 main.cleanAndExit()
988 try:
989 main.funcs
990 except ( NameError, AttributeError ):
991 main.funcs = SRBridgingTest()
992 main.funcs.runTest( main,
993 test_idx=44,
994 topology='2x4',
995 onosNodes=1,
996 description="Bridging test between untagged host and tagged host",
997 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700998
999 def CASE45( self, main ):
1000 """
1001 Tests connectivity between untagged host and tagged host
1002 (Ports are configured as vlan-untagged and
1003 vlan-tagged with same vlan id, respectively)
1004
1005 Sets up 3 ONOS instances
1006 Start 0x1 single ToR topology
1007 Pingall
1008 """
Devin Lim57221b02018-02-14 15:45:36 -08001009 try:
1010 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1011 except ImportError:
1012 main.log.error( "SRBridgingTest not found. Exiting the test" )
1013 main.cleanAndExit()
1014 try:
1015 main.funcs
1016 except ( NameError, AttributeError ):
1017 main.funcs = SRBridgingTest()
1018 main.funcs.runTest( main,
1019 test_idx=45,
1020 topology='0x1',
1021 onosNodes=3,
1022 description="Bridging test between untagged host and tagged host",
1023 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001024
1025 def CASE46( self, main ):
1026 """
1027 Tests connectivity between untagged host and tagged host
1028 (Ports are configured as vlan-untagged and
1029 vlan-tagged with same vlan id, respectively)
1030
1031 Sets up 3 ONOS instances
1032 Start 0x2 dual-homed ToR topology
1033 Pingall
1034 """
Devin Lim57221b02018-02-14 15:45:36 -08001035 try:
1036 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1037 except ImportError:
1038 main.log.error( "SRBridgingTest not found. Exiting the test" )
1039 main.cleanAndExit()
1040 try:
1041 main.funcs
1042 except ( NameError, AttributeError ):
1043 main.funcs = SRBridgingTest()
1044 main.funcs.runTest( main,
1045 test_idx=46,
1046 topology='0x2',
1047 onosNodes=3,
1048 description="Bridging test between untagged host and tagged host",
1049 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001050
1051 def CASE47( self, main ):
1052 """
1053 Tests connectivity between untagged host and tagged host
1054 (Ports are configured as vlan-untagged and
1055 vlan-tagged with same vlan id, respectively)
1056
1057 Sets up 3 ONOS instances
1058 Start 2x2 leaf-spine 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=47,
1072 topology='2x2',
1073 onosNodes=3,
1074 description="Bridging test between untagged host and tagged host",
1075 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001076
1077 def CASE48( self, main ):
1078 """
1079 Tests connectivity between untagged host and tagged host
1080 (Ports are configured as vlan-untagged and
1081 vlan-tagged with same vlan id, respectively)
1082
1083 Sets up 3 ONOS instances
1084 Start 2x4 dual-homed leaf-spine topology
1085 Pingall
1086 """
Devin Lim57221b02018-02-14 15:45:36 -08001087 try:
1088 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1089 except ImportError:
1090 main.log.error( "SRBridgingTest not found. Exiting the test" )
1091 main.cleanAndExit()
1092 try:
1093 main.funcs
1094 except ( NameError, AttributeError ):
1095 main.funcs = SRBridgingTest()
1096 main.funcs.runTest( main,
1097 test_idx=48,
1098 topology='2x4',
1099 onosNodes=3,
1100 description="Bridging test between untagged host and tagged host",
1101 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001102
Siddesha19e3c82021-06-09 22:45:27 +00001103 def CASE49( self, main ):
1104 """
1105 Tests connectivity between untagged host and tagged host
1106 (Ports are configured as vlan-untagged and
1107 vlan-tagged with same vlan-id, respectively)
1108
1109 Sets up 3 ONOS instances
1110 Start 2x2 leaf-spine topology
1111 Pingall
1112 """
1113 try:
1114 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1115 except ImportError:
1116 main.log.error( "SRBridgingTest not found. Exiting the test" )
1117 main.cleanAndExit()
1118 try:
1119 main.funcs
1120 except ( NameError, AttributeError ):
1121 main.funcs = SRBridgingTest()
1122 main.funcs.runTest( main,
1123 test_idx=49,
1124 topology='2x2 dual-linked',
1125 onosNodes=3,
1126 description="Bridging test between two untagged hostand tagged host",
1127 vlan=[ 102, 103 ] )
1128
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001129 def CASE51( self, main ):
1130 """
1131 Tests connectivity between two untagged hosts with different vlan id
1132 (Ports are configured as vlan-untagged 10 and 20, respectively)
1133
1134 Sets up 1 ONOS instance
1135 Start 0x1 single ToR topology
1136 Pingall
1137 """
Devin Lim57221b02018-02-14 15:45:36 -08001138 try:
1139 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1140 except ImportError:
1141 main.log.error( "SRBridgingTest not found. Exiting the test" )
1142 main.cleanAndExit()
1143 try:
1144 main.funcs
1145 except ( NameError, AttributeError ):
1146 main.funcs = SRBridgingTest()
1147 main.funcs.runTest( main,
1148 test_idx=51,
1149 topology='0x1',
1150 onosNodes=1,
1151 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001152
1153 def CASE52( self, main ):
1154 """
1155 Tests connectivity between two untagged hosts with different vlan id
1156 (Ports are configured as vlan-untagged 10 and 20, respectively)
1157
1158 Sets up 1 ONOS instance
1159 Start 0x2 dual-homed ToR topology
1160 Pingall
1161 """
Devin Lim57221b02018-02-14 15:45:36 -08001162 try:
1163 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1164 except ImportError:
1165 main.log.error( "SRBridgingTest not found. Exiting the test" )
1166 main.cleanAndExit()
1167 try:
1168 main.funcs
1169 except ( NameError, AttributeError ):
1170 main.funcs = SRBridgingTest()
1171 main.funcs.runTest( main,
1172 test_idx=52,
1173 topology='0x2',
1174 onosNodes=1,
1175 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001176
1177 def CASE53( self, main ):
1178 """
1179 Tests connectivity between two untagged hosts with different vlan id
1180 (Ports are configured as vlan-untagged 10 and 20, respectively)
1181
1182 Sets up 1 ONOS instance
1183 Start 2x2 leaf-spine topology
1184 Pingall
1185 """
Devin Lim57221b02018-02-14 15:45:36 -08001186 try:
1187 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1188 except ImportError:
1189 main.log.error( "SRBridgingTest not found. Exiting the test" )
1190 main.cleanAndExit()
1191 try:
1192 main.funcs
1193 except ( NameError, AttributeError ):
1194 main.funcs = SRBridgingTest()
1195 main.funcs.runTest( main,
1196 test_idx=53,
1197 topology='2x2',
1198 onosNodes=1,
1199 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001200
1201 def CASE54( self, main ):
1202 """
1203 Tests connectivity between two untagged hosts with different vlan id
1204 (Ports are configured as vlan-untagged 10 and 20, respectively)
1205
1206 Sets up 1 ONOS instance
1207 Start 2x4 dual-homed leaf-spine topology
1208 Pingall
1209 """
Devin Lim57221b02018-02-14 15:45:36 -08001210 try:
1211 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1212 except ImportError:
1213 main.log.error( "SRBridgingTest not found. Exiting the test" )
1214 main.cleanAndExit()
1215 try:
1216 main.funcs
1217 except ( NameError, AttributeError ):
1218 main.funcs = SRBridgingTest()
1219 main.funcs.runTest( main,
1220 test_idx=54,
1221 topology='2x4',
1222 onosNodes=1,
1223 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001224
1225 def CASE55( self, main ):
1226 """
1227 Tests connectivity between two untagged hosts with different vlan id
1228 (Ports are configured as vlan-untagged 10 and 20, respectively)
1229
1230 Sets up 3 ONOS instances
1231 Start 0x1 single ToR topology
1232 Pingall
1233 """
Devin Lim57221b02018-02-14 15:45:36 -08001234 try:
1235 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1236 except ImportError:
1237 main.log.error( "SRBridgingTest not found. Exiting the test" )
1238 main.cleanAndExit()
1239 try:
1240 main.funcs
1241 except ( NameError, AttributeError ):
1242 main.funcs = SRBridgingTest()
1243 main.funcs.runTest( main,
1244 test_idx=55,
1245 topology='0x1',
1246 onosNodes=3,
1247 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001248
1249 def CASE56( self, main ):
1250 """
1251 Tests connectivity between two untagged hosts with different vlan id
1252 (Ports are configured as vlan-untagged 10 and 20, respectively)
1253
1254 Sets up 3 ONOS instances
1255 Start 0x2 dual-homed ToR topology
1256 Pingall
1257 """
Devin Lim57221b02018-02-14 15:45:36 -08001258 try:
1259 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1260 except ImportError:
1261 main.log.error( "SRBridgingTest not found. Exiting the test" )
1262 main.cleanAndExit()
1263 try:
1264 main.funcs
1265 except ( NameError, AttributeError ):
1266 main.funcs = SRBridgingTest()
1267 main.funcs.runTest( main,
1268 test_idx=56,
1269 topology='0x2',
1270 onosNodes=3,
1271 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001272
1273 def CASE57( self, main ):
1274 """
1275 Tests connectivity between two untagged hosts with different vlan id
1276 (Ports are configured as vlan-untagged 10 and 20, respectively)
1277
1278 Sets up 3 ONOS instances
1279 Start 2x2 leaf-spine topology
1280 Pingall
1281 """
Devin Lim57221b02018-02-14 15:45:36 -08001282 try:
1283 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1284 except ImportError:
1285 main.log.error( "SRBridgingTest not found. Exiting the test" )
1286 main.cleanAndExit()
1287 try:
1288 main.funcs
1289 except ( NameError, AttributeError ):
1290 main.funcs = SRBridgingTest()
1291 main.funcs.runTest( main,
1292 test_idx=57,
1293 topology='2x2',
1294 onosNodes=3,
1295 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001296
1297 def CASE58( self, main ):
1298 """
1299 Tests connectivity between two untagged hosts with different vlan id
1300 (Ports are configured as vlan-untagged 10 and 20, respectively)
1301
1302 Sets up 3 ONOS instances
1303 Start 2x4 dual-homed leaf-spine topology
1304 Pingall
1305 """
Devin Lim57221b02018-02-14 15:45:36 -08001306 try:
1307 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1308 except ImportError:
1309 main.log.error( "SRBridgingTest not found. Exiting the test" )
1310 main.cleanAndExit()
1311 try:
1312 main.funcs
1313 except ( NameError, AttributeError ):
1314 main.funcs = SRBridgingTest()
1315 main.funcs.runTest( main,
1316 test_idx=58,
1317 topology='2x4',
1318 onosNodes=3,
1319 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001320
Siddesha19e3c82021-06-09 22:45:27 +00001321 def CASE59( self, main ):
1322 """
1323 Tests connectivity between two untagged hosts with different vlan id
1324 (Ports are configured as vlan-untagged 10 and 20, respectively)
1325
1326 Sets up 3 ONOS instances
1327 Start 2x2 leaf-spine topology
1328 Pingall
1329 """
1330 try:
1331 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1332 except ImportError:
1333 main.log.error( "SRBridgingTest not found. Exiting the test" )
1334 main.cleanAndExit()
1335 try:
1336 main.funcs
1337 except ( NameError, AttributeError ):
1338 main.funcs = SRBridgingTest()
1339 main.funcs.runTest( main,
1340 test_idx=59,
1341 topology='2x2 dual-linked',
1342 onosNodes=3,
1343 description="Bridging test between two untagged hosts with different vlan-id" )
1344
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001345 def CASE61( 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 1 ONOS instance
1351 Start 0x1 single 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=61,
1365 topology='0x1',
1366 onosNodes=1,
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 CASE62( 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 1 ONOS instance
1376 Start 0x2 dual-homed ToR 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=62,
1390 topology='0x2',
1391 onosNodes=1,
1392 description="Bridging test between two tagged hosts with different vlan id",
1393 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001394
1395 def CASE63( 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 1 ONOS instance
1401 Start 2x2 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=63,
1415 topology='2x2',
1416 onosNodes=1,
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 CASE64( self, main ):
1421 """
1422 Tests connectivity between two tagged hosts with different vlan id
1423 (Ports are configured as vlan-tagged 10 and 20, respectively)
1424
1425 Sets up 1 ONOS instance
1426 Start 2x4 dual-homed leaf-spine 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=64,
1440 topology='2x4',
1441 onosNodes=1,
1442 description="Bridging test between two tagged hosts with different vlan id",
1443 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001444
1445 def CASE65( self, main ):
1446 """
1447 Tests connectivity between two tagged hosts with different vlan id
1448 (Ports are configured as vlan-tagged 10 and 20, respectively)
1449
1450 Sets up 3 ONOS instances
1451 Start 0x1 single 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=65,
1465 topology='0x1',
1466 onosNodes=3,
1467 description="Bridging test between two tagged hosts with different vlan id",
1468 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001469
1470 def CASE66( self, main ):
1471 """
1472 Tests connectivity between two tagged hosts with different vlan id
1473 (Ports are configured as vlan-tagged 10 and 20, respectively)
1474
1475 Sets up 3 ONOS instances
1476 Start 0x2 dual-homed ToR 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=66,
1490 topology='0x2',
1491 onosNodes=3,
1492 description="Bridging test between two tagged hosts with different vlan id",
1493 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001494
1495 def CASE67( self, main ):
1496 """
1497 Tests connectivity between two tagged hosts with different vlan id
1498 (Ports are configured as vlan-tagged 10 and 20, respectively)
1499
1500 Sets up 3 ONOS instances
1501 Start 2x2 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=67,
1515 topology='2x2',
1516 onosNodes=3,
1517 description="Bridging test between two tagged hosts with different vlan id",
1518 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001519
1520 def CASE68( self, main ):
1521 """
1522 Tests connectivity between two tagged hosts with different vlan id
1523 (Ports are configured as vlan-tagged 10 and 20, respectively)
1524
1525 Sets up 3 ONOS instances
1526 Start 2x4 dual-homed leaf-spine 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=68,
1540 topology='2x4',
1541 onosNodes=3,
1542 description="Bridging test between two tagged hosts with different vlan id",
1543 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001544
Siddesha19e3c82021-06-09 22:45:27 +00001545 def CASE69( self, main ):
1546 """
1547 Tests connectivity between two tagged hosts with different vlan id
1548 (Ports are configured as vlan-tagged 10 and 20, respectively)
1549
1550 Sets up 3 ONOS instances
1551 Start 2x2 leaf-spine topology
1552 Pingall
1553 """
1554 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=69,
1565 topology='2x2 dual-linked',
1566 onosNodes=3,
1567 description="Bridging test between two tagged hosts with different vlan id",
1568 vlan=[ 10, 20, 30, 40 ] )
1569
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001570 def CASE71( 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 1 ONOS instance
1576 Start 0x1 single ToR 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=71,
1590 topology='0x1',
1591 onosNodes=1,
1592 description="Bridging test between untagged and tagged hosts with different vlan id",
1593 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001594
1595 def CASE72( 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 1 ONOS instance
1601 Start 0x2 dual-homed ToR 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=72,
1615 topology='0x2',
1616 onosNodes=1,
1617 description="Bridging test between untagged and tagged hosts with different vlan id",
1618 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001619
1620 def CASE73( self, main ):
1621 """
1622 Tests connectivity between untagged and tagged hosts with different vlan id
1623 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1624
1625 Sets up 1 ONOS instance
1626 Start 2x2 leaf-spine topology
1627 Pingall
1628 """
Devin Lim57221b02018-02-14 15:45:36 -08001629 try:
1630 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1631 except ImportError:
1632 main.log.error( "SRBridgingTest not found. Exiting the test" )
1633 main.cleanAndExit()
1634 try:
1635 main.funcs
1636 except ( NameError, AttributeError ):
1637 main.funcs = SRBridgingTest()
1638 main.funcs.runTest( main,
1639 test_idx=73,
1640 topology='2x2',
1641 onosNodes=1,
1642 description="Bridging test between untagged and tagged hosts with different vlan id",
1643 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001644
1645 def CASE74( self, main ):
1646 """
1647 Tests connectivity between untagged and tagged hosts with different vlan id
1648 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1649
1650 Sets up 1 ONOS instance
1651 Start 2x2 dual-homed leaf-spine topology
1652 Pingall
1653 """
Devin Lim57221b02018-02-14 15:45:36 -08001654 try:
1655 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1656 except ImportError:
1657 main.log.error( "SRBridgingTest not found. Exiting the test" )
1658 main.cleanAndExit()
1659 try:
1660 main.funcs
1661 except ( NameError, AttributeError ):
1662 main.funcs = SRBridgingTest()
1663 main.funcs.runTest( main,
1664 test_idx=74,
1665 topology='2x4',
1666 onosNodes=1,
1667 description="Bridging test between untagged and tagged hosts with different vlan id",
1668 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001669
1670 def CASE75( self, main ):
1671 """
1672 Tests connectivity between untagged and tagged hosts with different vlan id
1673 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1674
1675 Sets up 3 ONOS instances
1676 Start 0x1 single ToR topology
1677 Pingall
1678 """
Devin Lim57221b02018-02-14 15:45:36 -08001679 try:
1680 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1681 except ImportError:
1682 main.log.error( "SRBridgingTest not found. Exiting the test" )
1683 main.cleanAndExit()
1684 try:
1685 main.funcs
1686 except ( NameError, AttributeError ):
1687 main.funcs = SRBridgingTest()
1688 main.funcs.runTest( main,
1689 test_idx=75,
1690 topology='0x1',
1691 onosNodes=3,
1692 description="Bridging test between untagged and tagged hosts with different vlan id",
1693 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001694
1695 def CASE76( self, main ):
1696 """
1697 Tests connectivity between untagged and tagged hosts with different vlan id
1698 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1699
1700 Sets up 3 ONOS instances
1701 Start 0x2 dual-homed ToR topology
1702 Pingall
1703 """
Devin Lim57221b02018-02-14 15:45:36 -08001704 try:
1705 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1706 except ImportError:
1707 main.log.error( "SRBridgingTest not found. Exiting the test" )
1708 main.cleanAndExit()
1709 try:
1710 main.funcs
1711 except ( NameError, AttributeError ):
1712 main.funcs = SRBridgingTest()
1713 main.funcs.runTest( main,
1714 test_idx=76,
1715 topology='0x2',
1716 onosNodes=3,
1717 description="Bridging test between untagged and tagged hosts with different vlan id",
1718 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001719
1720 def CASE77( self, main ):
1721 """
1722 Tests connectivity between untagged and tagged hosts with different vlan id
1723 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1724
1725 Sets up 3 ONOS instances
1726 Start 2x2 leaf-spine topology
1727 Pingall
1728 """
Devin Lim57221b02018-02-14 15:45:36 -08001729 try:
1730 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1731 except ImportError:
1732 main.log.error( "SRBridgingTest not found. Exiting the test" )
1733 main.cleanAndExit()
1734 try:
1735 main.funcs
1736 except ( NameError, AttributeError ):
1737 main.funcs = SRBridgingTest()
1738 main.funcs.runTest( main,
1739 test_idx=77,
1740 topology='2x2',
1741 onosNodes=3,
1742 description="Bridging test between untagged and tagged hosts with different vlan id",
1743 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001744
1745 def CASE78( self, main ):
1746 """
1747 Tests connectivity between untagged and tagged hosts with different vlan id
1748 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1749
1750 Sets up 3 ONOS instances
1751 Start 2x2 dual-homed leaf-spine topology
1752 Pingall
1753 """
Devin Lim57221b02018-02-14 15:45:36 -08001754 try:
1755 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1756 except ImportError:
1757 main.log.error( "SRBridgingTest not found. Exiting the test" )
1758 main.cleanAndExit()
1759 try:
1760 main.funcs
1761 except ( NameError, AttributeError ):
1762 main.funcs = SRBridgingTest()
1763 main.funcs.runTest( main,
1764 test_idx=78,
1765 topology='2x4',
1766 onosNodes=3,
1767 description="Bridging test between untagged and tagged hosts with different vlan id",
1768 vlan=[ 0, 20, 0, 40 ] )
Siddesha19e3c82021-06-09 22:45:27 +00001769
1770 def CASE79( self, main ):
1771 """
1772 Tests connectivity between untagged and tagged hosts with different vlan id
1773 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1774
1775 Sets up 3 ONOS instances
1776 Start 2x2 leaf-spine topology
1777 Pingall
1778 """
1779 try:
1780 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1781 except ImportError:
1782 main.log.error( "SRBridgingTest not found. Exiting the test" )
1783 main.cleanAndExit()
1784 try:
1785 main.funcs
1786 except ( NameError, AttributeError ):
1787 main.funcs = SRBridgingTest()
1788 main.funcs.runTest( main,
1789 test_idx=79,
1790 topology='2x2 dual-linked',
1791 onosNodes=3,
1792 description="Bridging test between untagged and tagged hosts with different vlan idt",
1793 vlan=[ 0, 20, 0, 40 ] )