blob: 697a3ee197a62820ead21af06f1123d50634546c [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 """
Tseng, Yiac1889e2022-05-24 00:19:35 -07001251 Tests connectivity between two untagged hosts with different vlan id,
1252 hosts should not be able to ping each other.
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001253 (Ports are configured as vlan-untagged 10 and 20, respectively)
1254
1255 Sets up 3 ONOS instances
1256 Start 0x2 dual-homed ToR topology
1257 Pingall
1258 """
Devin Lim57221b02018-02-14 15:45:36 -08001259 try:
1260 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1261 except ImportError:
1262 main.log.error( "SRBridgingTest not found. Exiting the test" )
1263 main.cleanAndExit()
1264 try:
1265 main.funcs
1266 except ( NameError, AttributeError ):
1267 main.funcs = SRBridgingTest()
1268 main.funcs.runTest( main,
1269 test_idx=56,
1270 topology='0x2',
1271 onosNodes=3,
1272 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001273
1274 def CASE57( self, main ):
1275 """
1276 Tests connectivity between two untagged hosts with different vlan id
1277 (Ports are configured as vlan-untagged 10 and 20, respectively)
1278
1279 Sets up 3 ONOS instances
1280 Start 2x2 leaf-spine topology
1281 Pingall
1282 """
Devin Lim57221b02018-02-14 15:45:36 -08001283 try:
1284 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1285 except ImportError:
1286 main.log.error( "SRBridgingTest not found. Exiting the test" )
1287 main.cleanAndExit()
1288 try:
1289 main.funcs
1290 except ( NameError, AttributeError ):
1291 main.funcs = SRBridgingTest()
1292 main.funcs.runTest( main,
1293 test_idx=57,
1294 topology='2x2',
1295 onosNodes=3,
1296 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001297
1298 def CASE58( self, main ):
1299 """
1300 Tests connectivity between two untagged hosts with different vlan id
1301 (Ports are configured as vlan-untagged 10 and 20, respectively)
1302
1303 Sets up 3 ONOS instances
1304 Start 2x4 dual-homed leaf-spine topology
1305 Pingall
1306 """
Devin Lim57221b02018-02-14 15:45:36 -08001307 try:
1308 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1309 except ImportError:
1310 main.log.error( "SRBridgingTest not found. Exiting the test" )
1311 main.cleanAndExit()
1312 try:
1313 main.funcs
1314 except ( NameError, AttributeError ):
1315 main.funcs = SRBridgingTest()
1316 main.funcs.runTest( main,
1317 test_idx=58,
1318 topology='2x4',
1319 onosNodes=3,
1320 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001321
Siddesha19e3c82021-06-09 22:45:27 +00001322 def CASE59( self, main ):
1323 """
1324 Tests connectivity between two untagged hosts with different vlan id
1325 (Ports are configured as vlan-untagged 10 and 20, respectively)
1326
1327 Sets up 3 ONOS instances
1328 Start 2x2 leaf-spine topology
1329 Pingall
1330 """
1331 try:
1332 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1333 except ImportError:
1334 main.log.error( "SRBridgingTest not found. Exiting the test" )
1335 main.cleanAndExit()
1336 try:
1337 main.funcs
1338 except ( NameError, AttributeError ):
1339 main.funcs = SRBridgingTest()
1340 main.funcs.runTest( main,
1341 test_idx=59,
1342 topology='2x2 dual-linked',
1343 onosNodes=3,
1344 description="Bridging test between two untagged hosts with different vlan-id" )
1345
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001346 def CASE61( self, main ):
1347 """
1348 Tests connectivity between two tagged hosts with different vlan id
1349 (Ports are configured as vlan-tagged 10 and 20, respectively)
1350
1351 Sets up 1 ONOS instance
1352 Start 0x1 single ToR topology
1353 Pingall
1354 """
Devin Lim57221b02018-02-14 15:45:36 -08001355 try:
1356 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1357 except ImportError:
1358 main.log.error( "SRBridgingTest not found. Exiting the test" )
1359 main.cleanAndExit()
1360 try:
1361 main.funcs
1362 except ( NameError, AttributeError ):
1363 main.funcs = SRBridgingTest()
1364 main.funcs.runTest( main,
1365 test_idx=61,
1366 topology='0x1',
1367 onosNodes=1,
1368 description="Bridging test between two tagged hosts with different vlan id",
1369 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001370
1371 def CASE62( self, main ):
1372 """
1373 Tests connectivity between two tagged hosts with different vlan id
1374 (Ports are configured as vlan-tagged 10 and 20, respectively)
1375
1376 Sets up 1 ONOS instance
1377 Start 0x2 dual-homed ToR topology
1378 Pingall
1379 """
Devin Lim57221b02018-02-14 15:45:36 -08001380 try:
1381 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1382 except ImportError:
1383 main.log.error( "SRBridgingTest not found. Exiting the test" )
1384 main.cleanAndExit()
1385 try:
1386 main.funcs
1387 except ( NameError, AttributeError ):
1388 main.funcs = SRBridgingTest()
1389 main.funcs.runTest( main,
1390 test_idx=62,
1391 topology='0x2',
1392 onosNodes=1,
1393 description="Bridging test between two tagged hosts with different vlan id",
1394 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001395
1396 def CASE63( self, main ):
1397 """
1398 Tests connectivity between two tagged hosts with different vlan id
1399 (Ports are configured as vlan-tagged 10 and 20, respectively)
1400
1401 Sets up 1 ONOS instance
1402 Start 2x2 leaf-spine topology
1403 Pingall
1404 """
Devin Lim57221b02018-02-14 15:45:36 -08001405 try:
1406 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1407 except ImportError:
1408 main.log.error( "SRBridgingTest not found. Exiting the test" )
1409 main.cleanAndExit()
1410 try:
1411 main.funcs
1412 except ( NameError, AttributeError ):
1413 main.funcs = SRBridgingTest()
1414 main.funcs.runTest( main,
1415 test_idx=63,
1416 topology='2x2',
1417 onosNodes=1,
1418 description="Bridging test between two tagged hosts with different vlan id",
1419 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001420
1421 def CASE64( self, main ):
1422 """
1423 Tests connectivity between two tagged hosts with different vlan id
1424 (Ports are configured as vlan-tagged 10 and 20, respectively)
1425
1426 Sets up 1 ONOS instance
1427 Start 2x4 dual-homed leaf-spine topology
1428 Pingall
1429 """
Devin Lim57221b02018-02-14 15:45:36 -08001430 try:
1431 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1432 except ImportError:
1433 main.log.error( "SRBridgingTest not found. Exiting the test" )
1434 main.cleanAndExit()
1435 try:
1436 main.funcs
1437 except ( NameError, AttributeError ):
1438 main.funcs = SRBridgingTest()
1439 main.funcs.runTest( main,
1440 test_idx=64,
1441 topology='2x4',
1442 onosNodes=1,
1443 description="Bridging test between two tagged hosts with different vlan id",
1444 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001445
1446 def CASE65( self, main ):
1447 """
1448 Tests connectivity between two tagged hosts with different vlan id
1449 (Ports are configured as vlan-tagged 10 and 20, respectively)
1450
1451 Sets up 3 ONOS instances
1452 Start 0x1 single ToR topology
1453 Pingall
1454 """
Devin Lim57221b02018-02-14 15:45:36 -08001455 try:
1456 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1457 except ImportError:
1458 main.log.error( "SRBridgingTest not found. Exiting the test" )
1459 main.cleanAndExit()
1460 try:
1461 main.funcs
1462 except ( NameError, AttributeError ):
1463 main.funcs = SRBridgingTest()
1464 main.funcs.runTest( main,
1465 test_idx=65,
1466 topology='0x1',
1467 onosNodes=3,
1468 description="Bridging test between two tagged hosts with different vlan id",
1469 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001470
1471 def CASE66( self, main ):
1472 """
1473 Tests connectivity between two tagged hosts with different vlan id
1474 (Ports are configured as vlan-tagged 10 and 20, respectively)
1475
1476 Sets up 3 ONOS instances
1477 Start 0x2 dual-homed ToR topology
1478 Pingall
1479 """
Devin Lim57221b02018-02-14 15:45:36 -08001480 try:
1481 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1482 except ImportError:
1483 main.log.error( "SRBridgingTest not found. Exiting the test" )
1484 main.cleanAndExit()
1485 try:
1486 main.funcs
1487 except ( NameError, AttributeError ):
1488 main.funcs = SRBridgingTest()
1489 main.funcs.runTest( main,
1490 test_idx=66,
1491 topology='0x2',
1492 onosNodes=3,
1493 description="Bridging test between two tagged hosts with different vlan id",
1494 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001495
1496 def CASE67( self, main ):
1497 """
1498 Tests connectivity between two tagged hosts with different vlan id
1499 (Ports are configured as vlan-tagged 10 and 20, respectively)
1500
1501 Sets up 3 ONOS instances
1502 Start 2x2 leaf-spine topology
1503 Pingall
1504 """
Devin Lim57221b02018-02-14 15:45:36 -08001505 try:
1506 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1507 except ImportError:
1508 main.log.error( "SRBridgingTest not found. Exiting the test" )
1509 main.cleanAndExit()
1510 try:
1511 main.funcs
1512 except ( NameError, AttributeError ):
1513 main.funcs = SRBridgingTest()
1514 main.funcs.runTest( main,
1515 test_idx=67,
1516 topology='2x2',
1517 onosNodes=3,
1518 description="Bridging test between two tagged hosts with different vlan id",
1519 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001520
1521 def CASE68( self, main ):
1522 """
1523 Tests connectivity between two tagged hosts with different vlan id
1524 (Ports are configured as vlan-tagged 10 and 20, respectively)
1525
1526 Sets up 3 ONOS instances
1527 Start 2x4 dual-homed leaf-spine topology
1528 Pingall
1529 """
Devin Lim57221b02018-02-14 15:45:36 -08001530 try:
1531 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1532 except ImportError:
1533 main.log.error( "SRBridgingTest not found. Exiting the test" )
1534 main.cleanAndExit()
1535 try:
1536 main.funcs
1537 except ( NameError, AttributeError ):
1538 main.funcs = SRBridgingTest()
1539 main.funcs.runTest( main,
1540 test_idx=68,
1541 topology='2x4',
1542 onosNodes=3,
1543 description="Bridging test between two tagged hosts with different vlan id",
1544 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001545
Siddesha19e3c82021-06-09 22:45:27 +00001546 def CASE69( self, main ):
1547 """
1548 Tests connectivity between two tagged hosts with different vlan id
1549 (Ports are configured as vlan-tagged 10 and 20, respectively)
1550
1551 Sets up 3 ONOS instances
1552 Start 2x2 leaf-spine topology
1553 Pingall
1554 """
1555 try:
1556 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1557 except ImportError:
1558 main.log.error( "SRBridgingTest not found. Exiting the test" )
1559 main.cleanAndExit()
1560 try:
1561 main.funcs
1562 except ( NameError, AttributeError ):
1563 main.funcs = SRBridgingTest()
1564 main.funcs.runTest( main,
1565 test_idx=69,
1566 topology='2x2 dual-linked',
1567 onosNodes=3,
1568 description="Bridging test between two tagged hosts with different vlan id",
1569 vlan=[ 10, 20, 30, 40 ] )
1570
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001571 def CASE71( self, main ):
1572 """
1573 Tests connectivity between untagged and tagged hosts with different vlan id
1574 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1575
1576 Sets up 1 ONOS instance
1577 Start 0x1 single ToR topology
1578 Pingall
1579 """
Devin Lim57221b02018-02-14 15:45:36 -08001580 try:
1581 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1582 except ImportError:
1583 main.log.error( "SRBridgingTest not found. Exiting the test" )
1584 main.cleanAndExit()
1585 try:
1586 main.funcs
1587 except ( NameError, AttributeError ):
1588 main.funcs = SRBridgingTest()
1589 main.funcs.runTest( main,
1590 test_idx=71,
1591 topology='0x1',
1592 onosNodes=1,
1593 description="Bridging test between untagged and tagged hosts with different vlan id",
1594 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001595
1596 def CASE72( self, main ):
1597 """
1598 Tests connectivity between untagged and tagged hosts with different vlan id
1599 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1600
1601 Sets up 1 ONOS instance
1602 Start 0x2 dual-homed ToR topology
1603 Pingall
1604 """
Devin Lim57221b02018-02-14 15:45:36 -08001605 try:
1606 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1607 except ImportError:
1608 main.log.error( "SRBridgingTest not found. Exiting the test" )
1609 main.cleanAndExit()
1610 try:
1611 main.funcs
1612 except ( NameError, AttributeError ):
1613 main.funcs = SRBridgingTest()
1614 main.funcs.runTest( main,
1615 test_idx=72,
1616 topology='0x2',
1617 onosNodes=1,
1618 description="Bridging test between untagged and tagged hosts with different vlan id",
1619 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001620
1621 def CASE73( self, main ):
1622 """
1623 Tests connectivity between untagged and tagged hosts with different vlan id
1624 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1625
1626 Sets up 1 ONOS instance
1627 Start 2x2 leaf-spine topology
1628 Pingall
1629 """
Devin Lim57221b02018-02-14 15:45:36 -08001630 try:
1631 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1632 except ImportError:
1633 main.log.error( "SRBridgingTest not found. Exiting the test" )
1634 main.cleanAndExit()
1635 try:
1636 main.funcs
1637 except ( NameError, AttributeError ):
1638 main.funcs = SRBridgingTest()
1639 main.funcs.runTest( main,
1640 test_idx=73,
1641 topology='2x2',
1642 onosNodes=1,
1643 description="Bridging test between untagged and tagged hosts with different vlan id",
1644 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001645
1646 def CASE74( self, main ):
1647 """
1648 Tests connectivity between untagged and tagged hosts with different vlan id
1649 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1650
1651 Sets up 1 ONOS instance
1652 Start 2x2 dual-homed leaf-spine topology
1653 Pingall
1654 """
Devin Lim57221b02018-02-14 15:45:36 -08001655 try:
1656 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1657 except ImportError:
1658 main.log.error( "SRBridgingTest not found. Exiting the test" )
1659 main.cleanAndExit()
1660 try:
1661 main.funcs
1662 except ( NameError, AttributeError ):
1663 main.funcs = SRBridgingTest()
1664 main.funcs.runTest( main,
1665 test_idx=74,
1666 topology='2x4',
1667 onosNodes=1,
1668 description="Bridging test between untagged and tagged hosts with different vlan id",
1669 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001670
1671 def CASE75( self, main ):
1672 """
1673 Tests connectivity between untagged and tagged hosts with different vlan id
1674 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1675
1676 Sets up 3 ONOS instances
1677 Start 0x1 single ToR topology
1678 Pingall
1679 """
Devin Lim57221b02018-02-14 15:45:36 -08001680 try:
1681 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1682 except ImportError:
1683 main.log.error( "SRBridgingTest not found. Exiting the test" )
1684 main.cleanAndExit()
1685 try:
1686 main.funcs
1687 except ( NameError, AttributeError ):
1688 main.funcs = SRBridgingTest()
1689 main.funcs.runTest( main,
1690 test_idx=75,
1691 topology='0x1',
1692 onosNodes=3,
1693 description="Bridging test between untagged and tagged hosts with different vlan id",
1694 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001695
1696 def CASE76( self, main ):
1697 """
1698 Tests connectivity between untagged and tagged hosts with different vlan id
1699 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1700
1701 Sets up 3 ONOS instances
1702 Start 0x2 dual-homed ToR topology
1703 Pingall
1704 """
Devin Lim57221b02018-02-14 15:45:36 -08001705 try:
1706 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1707 except ImportError:
1708 main.log.error( "SRBridgingTest not found. Exiting the test" )
1709 main.cleanAndExit()
1710 try:
1711 main.funcs
1712 except ( NameError, AttributeError ):
1713 main.funcs = SRBridgingTest()
1714 main.funcs.runTest( main,
1715 test_idx=76,
1716 topology='0x2',
1717 onosNodes=3,
1718 description="Bridging test between untagged and tagged hosts with different vlan id",
1719 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001720
1721 def CASE77( self, main ):
1722 """
1723 Tests connectivity between untagged and tagged hosts with different vlan id
1724 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1725
1726 Sets up 3 ONOS instances
1727 Start 2x2 leaf-spine topology
1728 Pingall
1729 """
Devin Lim57221b02018-02-14 15:45:36 -08001730 try:
1731 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1732 except ImportError:
1733 main.log.error( "SRBridgingTest not found. Exiting the test" )
1734 main.cleanAndExit()
1735 try:
1736 main.funcs
1737 except ( NameError, AttributeError ):
1738 main.funcs = SRBridgingTest()
1739 main.funcs.runTest( main,
1740 test_idx=77,
1741 topology='2x2',
1742 onosNodes=3,
1743 description="Bridging test between untagged and tagged hosts with different vlan id",
1744 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001745
1746 def CASE78( self, main ):
1747 """
1748 Tests connectivity between untagged and tagged hosts with different vlan id
1749 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1750
1751 Sets up 3 ONOS instances
1752 Start 2x2 dual-homed leaf-spine topology
1753 Pingall
1754 """
Devin Lim57221b02018-02-14 15:45:36 -08001755 try:
1756 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1757 except ImportError:
1758 main.log.error( "SRBridgingTest not found. Exiting the test" )
1759 main.cleanAndExit()
1760 try:
1761 main.funcs
1762 except ( NameError, AttributeError ):
1763 main.funcs = SRBridgingTest()
1764 main.funcs.runTest( main,
1765 test_idx=78,
1766 topology='2x4',
1767 onosNodes=3,
1768 description="Bridging test between untagged and tagged hosts with different vlan id",
1769 vlan=[ 0, 20, 0, 40 ] )
Siddesha19e3c82021-06-09 22:45:27 +00001770
1771 def CASE79( self, main ):
1772 """
1773 Tests connectivity between untagged and tagged hosts with different vlan id
1774 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1775
1776 Sets up 3 ONOS instances
1777 Start 2x2 leaf-spine topology
1778 Pingall
1779 """
1780 try:
1781 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1782 except ImportError:
1783 main.log.error( "SRBridgingTest not found. Exiting the test" )
1784 main.cleanAndExit()
1785 try:
1786 main.funcs
1787 except ( NameError, AttributeError ):
1788 main.funcs = SRBridgingTest()
1789 main.funcs.runTest( main,
1790 test_idx=79,
1791 topology='2x2 dual-linked',
1792 onosNodes=3,
1793 description="Bridging test between untagged and tagged hosts with different vlan idt",
1794 vlan=[ 0, 20, 0, 40 ] )