blob: 3586b0b8dc76270e2895119f245339d736e83b84 [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,
73 topology='2x2',
74 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" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700196
197 def CASE11( self, main ):
198 """
199 Tests connectivity between two tagged hosts
200 (Ports are configured as vlan-tagged)
201
202 Sets up 1 ONOS instance
203 Start 0x1 single ToR topology
204 Pingall
205 """
Devin Lim57221b02018-02-14 15:45:36 -0800206 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,
216 test_idx=11,
217 topology='0x1',
218 onosNodes=1,
219 description="Bridging test between two tagged hosts",
220 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700221
222 def CASE12( self, main ):
223 """
224 Tests connectivity between two tagged hosts
225 (Ports are configured as vlan-tagged)
226
227 Sets up 1 ONOS instance
228 Start 0x2 dual-homed ToR topology
229 Pingall
230 """
Devin Lim57221b02018-02-14 15:45:36 -0800231 try:
232 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
233 except ImportError:
234 main.log.error( "SRBridgingTest not found. Exiting the test" )
235 main.cleanAndExit()
236 try:
237 main.funcs
238 except ( NameError, AttributeError ):
239 main.funcs = SRBridgingTest()
240 main.funcs.runTest( main,
241 test_idx=12,
242 topology='0x2',
243 onosNodes=1,
244 description="Bridging test between two tagged hosts",
245 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700246
247 def CASE13( self, main ):
248 """
249 Tests connectivity between two tagged hosts
250 (Ports are configured as vlan-tagged)
251
252 Sets up 1 ONOS instance
253 Start 2x2 leaf-spine topology
254 Pingall
255 """
Devin Lim57221b02018-02-14 15:45:36 -0800256 try:
257 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
258 except ImportError:
259 main.log.error( "SRBridgingTest not found. Exiting the test" )
260 main.cleanAndExit()
261 try:
262 main.funcs
263 except ( NameError, AttributeError ):
264 main.funcs = SRBridgingTest()
265 main.funcs.runTest( main,
266 test_idx=13,
267 topology='2x2',
268 onosNodes=1,
269 description="Bridging test between two tagged hosts",
270 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700271
272 def CASE14( self, main ):
273 """
274 Tests connectivity between two tagged hosts
275 (Ports are configured as vlan-tagged)
276
277 Sets up 1 ONOS instance
278 Start 2x4 dual-homed leaf-spine topology
279 Pingall
280 """
Devin Lim57221b02018-02-14 15:45:36 -0800281 try:
282 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
283 except ImportError:
284 main.log.error( "SRBridgingTest not found. Exiting the test" )
285 main.cleanAndExit()
286 try:
287 main.funcs
288 except ( NameError, AttributeError ):
289 main.funcs = SRBridgingTest()
290 main.funcs.runTest( main,
291 test_idx=14,
292 topology='2x4',
293 onosNodes=1,
294 description="Bridging test between two tagged hosts",
295 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700296
297 def CASE15( self, main ):
298 """
299 Tests connectivity between two tagged hosts
300 (Ports are configured as vlan-tagged)
301
302 Sets up 3 ONOS instances
303 Start 0x1 single ToR topology
304 Pingall
305 """
Devin Lim57221b02018-02-14 15:45:36 -0800306 try:
307 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
308 except ImportError:
309 main.log.error( "SRBridgingTest not found. Exiting the test" )
310 main.cleanAndExit()
311 try:
312 main.funcs
313 except ( NameError, AttributeError ):
314 main.funcs = SRBridgingTest()
315 main.funcs.runTest( main,
316 test_idx=15,
317 topology='0x1',
318 onosNodes=3,
319 description="Bridging test between two tagged hosts",
320 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700321
322 def CASE16( self, main ):
323 """
324 Tests connectivity between two tagged hosts
325 (Ports are configured as vlan-tagged)
326
327 Sets up 3 ONOS instances
328 Start 0x2 dual-homed ToR topology
329 Pingall
330 """
Devin Lim57221b02018-02-14 15:45:36 -0800331 try:
332 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
333 except ImportError:
334 main.log.error( "SRBridgingTest not found. Exiting the test" )
335 main.cleanAndExit()
336 try:
337 main.funcs
338 except ( NameError, AttributeError ):
339 main.funcs = SRBridgingTest()
340 main.funcs.runTest( main,
341 test_idx=16,
342 topology='0x2',
343 onosNodes=3,
344 description="Bridging test between two tagged hosts",
345 vlan=[ 10, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700346
347 def CASE17( self, main ):
348 """
349 Tests connectivity between two tagged hosts
350 (Ports are configured as vlan-tagged)
351
352 Sets up 3 ONOS instances
353 Start 2x2 leaf-spine topology
354 Pingall
355 """
Devin Lim57221b02018-02-14 15:45:36 -0800356 try:
357 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
358 except ImportError:
359 main.log.error( "SRBridgingTest not found. Exiting the test" )
360 main.cleanAndExit()
361 try:
362 main.funcs
363 except ( NameError, AttributeError ):
364 main.funcs = SRBridgingTest()
365 main.funcs.runTest( main,
366 test_idx=17,
367 topology='2x2',
368 onosNodes=3,
369 description="Bridging test between two tagged hosts",
370 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700371
372 def CASE18( self, main ):
373 """
374 Tests connectivity between two tagged hosts
375 (Ports are configured as vlan-tagged)
376
377 Sets up 3 ONOS instances
378 Start 2x4 dual-homed leaf-spine topology
379 Pingall
380 """
Devin Lim57221b02018-02-14 15:45:36 -0800381 try:
382 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
383 except ImportError:
384 main.log.error( "SRBridgingTest not found. Exiting the test" )
385 main.cleanAndExit()
386 try:
387 main.funcs
388 except ( NameError, AttributeError ):
389 main.funcs = SRBridgingTest()
390 main.funcs.runTest( main,
391 test_idx=18,
392 topology='2x4',
393 onosNodes=3,
394 description="Bridging test between two tagged hosts",
395 vlan=[ 10, 10, 20, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700396
397 def CASE21( self, main ):
398 """
399 Tests connectivity between two untagged hosts
400 (Ports are configured as vlan-native with vlan-tagged)
401
402 Sets up 1 ONOS instance
403 Start 0x1 single ToR topology
404 Pingall
405 """
Devin Lim57221b02018-02-14 15:45:36 -0800406 try:
407 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
408 except ImportError:
409 main.log.error( "SRBridgingTest not found. Exiting the test" )
410 main.cleanAndExit()
411 try:
412 main.funcs
413 except ( NameError, AttributeError ):
414 main.funcs = SRBridgingTest()
415 main.funcs.runTest( main,
416 test_idx=21,
417 topology='0x1',
418 onosNodes=1,
419 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700420
421 def CASE22( self, main ):
422 """
423 Tests connectivity between two untagged hosts
424 (Ports are configured as vlan-native with vlan-tagged)
425
426 Sets up 1 ONOS instance
427 Start 0x2 dual-homed ToR topology
428 Pingall
429 """
Devin Lim57221b02018-02-14 15:45:36 -0800430 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=22,
441 topology='0x2',
442 onosNodes=1,
443 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700444
445 def CASE23( self, main ):
446 """
447 Tests connectivity between two untagged hosts
448 (Ports are configured as vlan-native with vlan-tagged)
449
450 Sets up 1 ONOS instance
451 Start 2x2 leaf-spine topology
452 Pingall
453 """
Devin Lim57221b02018-02-14 15:45:36 -0800454 try:
455 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
456 except ImportError:
457 main.log.error( "SRBridgingTest not found. Exiting the test" )
458 main.cleanAndExit()
459 try:
460 main.funcs
461 except ( NameError, AttributeError ):
462 main.funcs = SRBridgingTest()
463 main.funcs.runTest( main,
464 test_idx=23,
465 topology='2x2',
466 onosNodes=1,
467 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700468
469 def CASE24( self, main ):
470 """
471 Tests connectivity between two untagged hosts
472 (Ports are configured as vlan-native with vlan-tagged)
473
474 Sets up 1 ONOS instance
475 Start 2x4 dual-homed leaf-spine topology
476 Pingall
477 """
Devin Lim57221b02018-02-14 15:45:36 -0800478 try:
479 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
480 except ImportError:
481 main.log.error( "SRBridgingTest not found. Exiting the test" )
482 main.cleanAndExit()
483 try:
484 main.funcs
485 except ( NameError, AttributeError ):
486 main.funcs = SRBridgingTest()
487 main.funcs.runTest( main,
488 test_idx=24,
489 topology='2x4',
490 onosNodes=1,
491 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700492
493 def CASE25( self, main ):
494 """
495 Tests connectivity between two untagged hosts
496 (Ports are configured as vlan-native with vlan-tagged)
497
498 Sets up 3 ONOS instances
499 Start 0x1 single ToR topology
500 Pingall
501 """
Devin Lim57221b02018-02-14 15:45:36 -0800502 try:
503 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
504 except ImportError:
505 main.log.error( "SRBridgingTest not found. Exiting the test" )
506 main.cleanAndExit()
507 try:
508 main.funcs
509 except ( NameError, AttributeError ):
510 main.funcs = SRBridgingTest()
511 main.funcs.runTest( main,
512 test_idx=25,
513 topology='0x1',
514 onosNodes=3,
515 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700516
517 def CASE26( self, main ):
518 """
519 Tests connectivity between two untagged hosts
520 (Ports are configured as vlan-native with vlan-tagged)
521
522 Sets up 3 ONOS instances
523 Start 0x2 dual-homed ToR topology
524 Pingall
525 """
Devin Lim57221b02018-02-14 15:45:36 -0800526 try:
527 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
528 except ImportError:
529 main.log.error( "SRBridgingTest not found. Exiting the test" )
530 main.cleanAndExit()
531 try:
532 main.funcs
533 except ( NameError, AttributeError ):
534 main.funcs = SRBridgingTest()
535 main.funcs.runTest( main,
536 test_idx=26,
537 topology='0x2',
538 onosNodes=3,
539 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700540
541 def CASE27( self, main ):
542 """
543 Tests connectivity between two untagged hosts
544 (Ports are configured as vlan-native with vlan-tagged)
545
546 Sets up 3 ONOS instances
547 Start 2x2 leaf-spine topology
548 Pingall
549 """
Devin Lim57221b02018-02-14 15:45:36 -0800550 try:
551 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
552 except ImportError:
553 main.log.error( "SRBridgingTest not found. Exiting the test" )
554 main.cleanAndExit()
555 try:
556 main.funcs
557 except ( NameError, AttributeError ):
558 main.funcs = SRBridgingTest()
559 main.funcs.runTest( main,
560 test_idx=27,
561 topology='2x2',
562 onosNodes=3,
563 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700564
565 def CASE28( self, main ):
566 """
567 Tests connectivity between two untagged hosts
568 (Ports are configured as vlan-native with vlan-tagged)
569
570 Sets up 3 ONOS instances
571 Start 2x4 dual-homed leaf-spine topology
572 Pingall
573 """
Devin Lim57221b02018-02-14 15:45:36 -0800574 try:
575 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
576 except ImportError:
577 main.log.error( "SRBridgingTest not found. Exiting the test" )
578 main.cleanAndExit()
579 try:
580 main.funcs
581 except ( NameError, AttributeError ):
582 main.funcs = SRBridgingTest()
583 main.funcs.runTest( main,
584 test_idx=28,
585 topology='2x4',
586 onosNodes=3,
587 description="Bridging test between two untagged hosts on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700588
589 def CASE31( self, main ):
590 """
591 Tests connectivity between two untagged hosts
592 (One port is configured as vlan-native with vlan-tagged,
593 another with vlan-untagged)
594
595 Sets up 1 ONOS instance
596 Start 0x1 single ToR 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=31,
610 topology='0x1',
611 onosNodes=1,
612 description="Bridging test between two untagged hosts, "
613 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700614
615 def CASE32( self, main ):
616 """
617 Tests connectivity between two untagged hosts
618 (One port is configured as vlan-native with vlan-tagged,
619 another with vlan-untagged)
620
621 Sets up 1 ONOS instance
622 Start 0x2 dual-homed ToR topology
623 Pingall
624 """
Devin Lim57221b02018-02-14 15:45:36 -0800625 try:
626 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
627 except ImportError:
628 main.log.error( "SRBridgingTest not found. Exiting the test" )
629 main.cleanAndExit()
630 try:
631 main.funcs
632 except ( NameError, AttributeError ):
633 main.funcs = SRBridgingTest()
634 main.funcs.runTest( main,
635 test_idx=32,
636 topology='0x2',
637 onosNodes=1,
638 description="Bridging test between two untagged hosts, "
639 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700640
641 def CASE33( self, main ):
642 """
643 Tests connectivity between two untagged hosts
644 (One port is configured as vlan-native with vlan-tagged,
645 another with vlan-untagged)
646
647 Sets up 1 ONOS instance
648 Start 2x2 leaf-spine topology
649 Pingall
650 """
Devin Lim57221b02018-02-14 15:45:36 -0800651 try:
652 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
653 except ImportError:
654 main.log.error( "SRBridgingTest not found. Exiting the test" )
655 main.cleanAndExit()
656 try:
657 main.funcs
658 except ( NameError, AttributeError ):
659 main.funcs = SRBridgingTest()
660 main.funcs.runTest( main,
661 test_idx=33,
662 topology='2x2',
663 onosNodes=1,
664 description="Bridging test between two untagged hosts, "
665 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700666
667 def CASE34( self, main ):
668 """
669 Tests connectivity between two untagged hosts
670 (One port is configured as vlan-native with vlan-tagged,
671 another with vlan-untagged)
672
673 Sets up 1 ONOS instance
674 Start 2x4 dual-homed leaf-spine topology
675 Pingall
676 """
Devin Lim57221b02018-02-14 15:45:36 -0800677 try:
678 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
679 except ImportError:
680 main.log.error( "SRBridgingTest not found. Exiting the test" )
681 main.cleanAndExit()
682 try:
683 main.funcs
684 except ( NameError, AttributeError ):
685 main.funcs = SRBridgingTest()
686 main.funcs.runTest( main,
687 test_idx=34,
688 topology='2x4',
689 onosNodes=1,
690 description="Bridging test between two untagged hosts, "
691 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700692
693 def CASE35( self, main ):
694 """
695 Tests connectivity between two untagged hosts
696 (One port is configured as vlan-native with vlan-tagged,
697 another with vlan-untagged)
698
699 Sets up 3 ONOS instances
700 Start 0x1 single ToR topology
701 Pingall
702 """
Devin Lim57221b02018-02-14 15:45:36 -0800703 try:
704 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
705 except ImportError:
706 main.log.error( "SRBridgingTest not found. Exiting the test" )
707 main.cleanAndExit()
708 try:
709 main.funcs
710 except ( NameError, AttributeError ):
711 main.funcs = SRBridgingTest()
712 main.funcs.runTest( main,
713 test_idx=35,
714 topology='0x1',
715 onosNodes=3,
716 description="Bridging test between two untagged hosts, "
717 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700718
719 def CASE36( self, main ):
720 """
721 Tests connectivity between two untagged hosts
722 (One port is configured as vlan-native with vlan-tagged,
723 another with vlan-untagged)
724
725 Sets up 3 ONOS instances
726 Start 0x2 dual-homed ToR topology
727 Pingall
728 """
Devin Lim57221b02018-02-14 15:45:36 -0800729 try:
730 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
731 except ImportError:
732 main.log.error( "SRBridgingTest not found. Exiting the test" )
733 main.cleanAndExit()
734 try:
735 main.funcs
736 except ( NameError, AttributeError ):
737 main.funcs = SRBridgingTest()
738 main.funcs.runTest( main,
739 test_idx=36,
740 topology='0x2',
741 onosNodes=3,
742 description="Bridging test between two untagged hosts, "
743 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700744
745 def CASE37( self, main ):
746 """
747 Tests connectivity between two untagged hosts
748 (One port is configured as vlan-native with vlan-tagged,
749 another with vlan-untagged)
750
751 Sets up 3 ONOS instances
752 Start 2x2 leaf-spine topology
753 Pingall
754 """
Devin Lim57221b02018-02-14 15:45:36 -0800755 try:
756 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
757 except ImportError:
758 main.log.error( "SRBridgingTest not found. Exiting the test" )
759 main.cleanAndExit()
760 try:
761 main.funcs
762 except ( NameError, AttributeError ):
763 main.funcs = SRBridgingTest()
764 main.funcs.runTest( main,
765 test_idx=37,
766 topology='2x2',
767 onosNodes=3,
768 description="Bridging test between two untagged hosts, "
769 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700770
771 def CASE38( self, main ):
772 """
773 Tests connectivity between two untagged hosts
774 (One port is configured as vlan-native with vlan-tagged,
775 another with vlan-untagged)
776
777 Sets up 3 ONOS instances
778 Start 2x4 dual-homed leaf-spine topology
779 Pingall
780 """
Devin Lim57221b02018-02-14 15:45:36 -0800781 try:
782 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
783 except ImportError:
784 main.log.error( "SRBridgingTest not found. Exiting the test" )
785 main.cleanAndExit()
786 try:
787 main.funcs
788 except ( NameError, AttributeError ):
789 main.funcs = SRBridgingTest()
790 main.funcs.runTest(main,
791 test_idx=38,
792 topology='2x4',
793 onosNodes=3,
794 description="Bridging test between two untagged hosts, "
795 "one on vlan-untagged port and the other on vlan-native port" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700796
797 def CASE41( self, main ):
798 """
799 Tests connectivity between untagged host and tagged host
800 (Ports are configured as vlan-untagged and
801 vlan-tagged with same vlan id, respectively)
802
803 Sets up 1 ONOS instance
804 Start 0x1 single ToR topology
805 Pingall
806 """
Devin Lim57221b02018-02-14 15:45:36 -0800807 try:
808 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
809 except ImportError:
810 main.log.error( "SRBridgingTest not found. Exiting the test" )
811 main.cleanAndExit()
812 try:
813 main.funcs
814 except ( NameError, AttributeError ):
815 main.funcs = SRBridgingTest()
816 main.funcs.runTest( main,
817 test_idx=41,
818 topology='0x1',
819 onosNodes=1,
820 description="Bridging test between untagged host and tagged host",
821 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700822
823 def CASE42( self, main ):
824 """
825 Tests connectivity between untagged host and tagged host
826 (Ports are configured as vlan-untagged and
827 vlan-tagged with same vlan id, respectively)
828
829 Sets up 1 ONOS instance
830 Start 0x2 dual-homed ToR topology
831 Pingall
832 """
Devin Lim57221b02018-02-14 15:45:36 -0800833 try:
834 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
835 except ImportError:
836 main.log.error( "SRBridgingTest not found. Exiting the test" )
837 main.cleanAndExit()
838 try:
839 main.funcs
840 except ( NameError, AttributeError ):
841 main.funcs = SRBridgingTest()
842 main.funcs.runTest( main,
843 test_idx=42,
844 topology='0x2',
845 onosNodes=1,
846 description="Bridging test between untagged host and tagged host",
847 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700848
849 def CASE43( self, main ):
850 """
851 Tests connectivity between untagged host and tagged host
852 (Ports are configured as vlan-untagged and
853 vlan-tagged with same vlan id, respectively)
854
855 Sets up 1 ONOS instance
856 Start 2x2 leaf-spine topology
857 Pingall
858 """
Devin Lim57221b02018-02-14 15:45:36 -0800859 try:
860 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
861 except ImportError:
862 main.log.error( "SRBridgingTest not found. Exiting the test" )
863 main.cleanAndExit()
864 try:
865 main.funcs
866 except ( NameError, AttributeError ):
867 main.funcs = SRBridgingTest()
868 main.funcs.runTest( main,
869 test_idx=43,
870 topology='2x2',
871 onosNodes=1,
872 description="Bridging test between untagged host and tagged host",
873 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700874
875 def CASE44( self, main ):
876 """
877 Tests connectivity between untagged host and tagged host
878 (Ports are configured as vlan-untagged and
879 vlan-tagged with same vlan id, respectively)
880
881 Sets up 1 ONOS instance
882 Start 2x4 dual-homed leaf-spine topology
883 Pingall
884 """
Devin Lim57221b02018-02-14 15:45:36 -0800885 try:
886 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
887 except ImportError:
888 main.log.error( "SRBridgingTest not found. Exiting the test" )
889 main.cleanAndExit()
890 try:
891 main.funcs
892 except ( NameError, AttributeError ):
893 main.funcs = SRBridgingTest()
894 main.funcs.runTest( main,
895 test_idx=44,
896 topology='2x4',
897 onosNodes=1,
898 description="Bridging test between untagged host and tagged host",
899 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700900
901 def CASE45( self, main ):
902 """
903 Tests connectivity between untagged host and tagged host
904 (Ports are configured as vlan-untagged and
905 vlan-tagged with same vlan id, respectively)
906
907 Sets up 3 ONOS instances
908 Start 0x1 single ToR topology
909 Pingall
910 """
Devin Lim57221b02018-02-14 15:45:36 -0800911 try:
912 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
913 except ImportError:
914 main.log.error( "SRBridgingTest not found. Exiting the test" )
915 main.cleanAndExit()
916 try:
917 main.funcs
918 except ( NameError, AttributeError ):
919 main.funcs = SRBridgingTest()
920 main.funcs.runTest( main,
921 test_idx=45,
922 topology='0x1',
923 onosNodes=3,
924 description="Bridging test between untagged host and tagged host",
925 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700926
927 def CASE46( self, main ):
928 """
929 Tests connectivity between untagged host and tagged host
930 (Ports are configured as vlan-untagged and
931 vlan-tagged with same vlan id, respectively)
932
933 Sets up 3 ONOS instances
934 Start 0x2 dual-homed ToR topology
935 Pingall
936 """
Devin Lim57221b02018-02-14 15:45:36 -0800937 try:
938 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
939 except ImportError:
940 main.log.error( "SRBridgingTest not found. Exiting the test" )
941 main.cleanAndExit()
942 try:
943 main.funcs
944 except ( NameError, AttributeError ):
945 main.funcs = SRBridgingTest()
946 main.funcs.runTest( main,
947 test_idx=46,
948 topology='0x2',
949 onosNodes=3,
950 description="Bridging test between untagged host and tagged host",
951 vlan=[ 0, 10 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700952
953 def CASE47( self, main ):
954 """
955 Tests connectivity between untagged host and tagged host
956 (Ports are configured as vlan-untagged and
957 vlan-tagged with same vlan id, respectively)
958
959 Sets up 3 ONOS instances
960 Start 2x2 leaf-spine topology
961 Pingall
962 """
Devin Lim57221b02018-02-14 15:45:36 -0800963 try:
964 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
965 except ImportError:
966 main.log.error( "SRBridgingTest not found. Exiting the test" )
967 main.cleanAndExit()
968 try:
969 main.funcs
970 except ( NameError, AttributeError ):
971 main.funcs = SRBridgingTest()
972 main.funcs.runTest( main,
973 test_idx=47,
974 topology='2x2',
975 onosNodes=3,
976 description="Bridging test between untagged host and tagged host",
977 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -0700978
979 def CASE48( self, main ):
980 """
981 Tests connectivity between untagged host and tagged host
982 (Ports are configured as vlan-untagged and
983 vlan-tagged with same vlan id, respectively)
984
985 Sets up 3 ONOS instances
986 Start 2x4 dual-homed leaf-spine topology
987 Pingall
988 """
Devin Lim57221b02018-02-14 15:45:36 -0800989 try:
990 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
991 except ImportError:
992 main.log.error( "SRBridgingTest not found. Exiting the test" )
993 main.cleanAndExit()
994 try:
995 main.funcs
996 except ( NameError, AttributeError ):
997 main.funcs = SRBridgingTest()
998 main.funcs.runTest( main,
999 test_idx=48,
1000 topology='2x4',
1001 onosNodes=3,
1002 description="Bridging test between untagged host and tagged host",
1003 vlan=[ 0, 10, 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001004
1005 def CASE51( self, main ):
1006 """
1007 Tests connectivity between two untagged hosts with different vlan id
1008 (Ports are configured as vlan-untagged 10 and 20, respectively)
1009
1010 Sets up 1 ONOS instance
1011 Start 0x1 single ToR topology
1012 Pingall
1013 """
Devin Lim57221b02018-02-14 15:45:36 -08001014 try:
1015 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1016 except ImportError:
1017 main.log.error( "SRBridgingTest not found. Exiting the test" )
1018 main.cleanAndExit()
1019 try:
1020 main.funcs
1021 except ( NameError, AttributeError ):
1022 main.funcs = SRBridgingTest()
1023 main.funcs.runTest( main,
1024 test_idx=51,
1025 topology='0x1',
1026 onosNodes=1,
1027 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001028
1029 def CASE52( self, main ):
1030 """
1031 Tests connectivity between two untagged hosts with different vlan id
1032 (Ports are configured as vlan-untagged 10 and 20, respectively)
1033
1034 Sets up 1 ONOS instance
1035 Start 0x2 dual-homed ToR topology
1036 Pingall
1037 """
Devin Lim57221b02018-02-14 15:45:36 -08001038 try:
1039 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1040 except ImportError:
1041 main.log.error( "SRBridgingTest not found. Exiting the test" )
1042 main.cleanAndExit()
1043 try:
1044 main.funcs
1045 except ( NameError, AttributeError ):
1046 main.funcs = SRBridgingTest()
1047 main.funcs.runTest( main,
1048 test_idx=52,
1049 topology='0x2',
1050 onosNodes=1,
1051 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001052
1053 def CASE53( self, main ):
1054 """
1055 Tests connectivity between two untagged hosts with different vlan id
1056 (Ports are configured as vlan-untagged 10 and 20, respectively)
1057
1058 Sets up 1 ONOS instance
1059 Start 2x2 leaf-spine topology
1060 Pingall
1061 """
Devin Lim57221b02018-02-14 15:45:36 -08001062 try:
1063 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1064 except ImportError:
1065 main.log.error( "SRBridgingTest not found. Exiting the test" )
1066 main.cleanAndExit()
1067 try:
1068 main.funcs
1069 except ( NameError, AttributeError ):
1070 main.funcs = SRBridgingTest()
1071 main.funcs.runTest( main,
1072 test_idx=53,
1073 topology='2x2',
1074 onosNodes=1,
1075 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001076
1077 def CASE54( self, main ):
1078 """
1079 Tests connectivity between two untagged hosts with different vlan id
1080 (Ports are configured as vlan-untagged 10 and 20, respectively)
1081
1082 Sets up 1 ONOS instance
1083 Start 2x4 dual-homed leaf-spine topology
1084 Pingall
1085 """
Devin Lim57221b02018-02-14 15:45:36 -08001086 try:
1087 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1088 except ImportError:
1089 main.log.error( "SRBridgingTest not found. Exiting the test" )
1090 main.cleanAndExit()
1091 try:
1092 main.funcs
1093 except ( NameError, AttributeError ):
1094 main.funcs = SRBridgingTest()
1095 main.funcs.runTest( main,
1096 test_idx=54,
1097 topology='2x4',
1098 onosNodes=1,
1099 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001100
1101 def CASE55( self, main ):
1102 """
1103 Tests connectivity between two untagged hosts with different vlan id
1104 (Ports are configured as vlan-untagged 10 and 20, respectively)
1105
1106 Sets up 3 ONOS instances
1107 Start 0x1 single ToR topology
1108 Pingall
1109 """
Devin Lim57221b02018-02-14 15:45:36 -08001110 try:
1111 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1112 except ImportError:
1113 main.log.error( "SRBridgingTest not found. Exiting the test" )
1114 main.cleanAndExit()
1115 try:
1116 main.funcs
1117 except ( NameError, AttributeError ):
1118 main.funcs = SRBridgingTest()
1119 main.funcs.runTest( main,
1120 test_idx=55,
1121 topology='0x1',
1122 onosNodes=3,
1123 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001124
1125 def CASE56( self, main ):
1126 """
1127 Tests connectivity between two untagged hosts with different vlan id
1128 (Ports are configured as vlan-untagged 10 and 20, respectively)
1129
1130 Sets up 3 ONOS instances
1131 Start 0x2 dual-homed ToR topology
1132 Pingall
1133 """
Devin Lim57221b02018-02-14 15:45:36 -08001134 try:
1135 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1136 except ImportError:
1137 main.log.error( "SRBridgingTest not found. Exiting the test" )
1138 main.cleanAndExit()
1139 try:
1140 main.funcs
1141 except ( NameError, AttributeError ):
1142 main.funcs = SRBridgingTest()
1143 main.funcs.runTest( main,
1144 test_idx=56,
1145 topology='0x2',
1146 onosNodes=3,
1147 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001148
1149 def CASE57( self, main ):
1150 """
1151 Tests connectivity between two untagged hosts with different vlan id
1152 (Ports are configured as vlan-untagged 10 and 20, respectively)
1153
1154 Sets up 3 ONOS instances
1155 Start 2x2 leaf-spine topology
1156 Pingall
1157 """
Devin Lim57221b02018-02-14 15:45:36 -08001158 try:
1159 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1160 except ImportError:
1161 main.log.error( "SRBridgingTest not found. Exiting the test" )
1162 main.cleanAndExit()
1163 try:
1164 main.funcs
1165 except ( NameError, AttributeError ):
1166 main.funcs = SRBridgingTest()
1167 main.funcs.runTest( main,
1168 test_idx=57,
1169 topology='2x2',
1170 onosNodes=3,
1171 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001172
1173 def CASE58( self, main ):
1174 """
1175 Tests connectivity between two untagged hosts with different vlan id
1176 (Ports are configured as vlan-untagged 10 and 20, respectively)
1177
1178 Sets up 3 ONOS instances
1179 Start 2x4 dual-homed leaf-spine topology
1180 Pingall
1181 """
Devin Lim57221b02018-02-14 15:45:36 -08001182 try:
1183 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1184 except ImportError:
1185 main.log.error( "SRBridgingTest not found. Exiting the test" )
1186 main.cleanAndExit()
1187 try:
1188 main.funcs
1189 except ( NameError, AttributeError ):
1190 main.funcs = SRBridgingTest()
1191 main.funcs.runTest( main,
1192 test_idx=58,
1193 topology='2x4',
1194 onosNodes=3,
1195 description="Bridging test between two untagged hosts with different vlan id" )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001196
1197 def CASE61( self, main ):
1198 """
1199 Tests connectivity between two tagged hosts with different vlan id
1200 (Ports are configured as vlan-tagged 10 and 20, respectively)
1201
1202 Sets up 1 ONOS instance
1203 Start 0x1 single ToR topology
1204 Pingall
1205 """
Devin Lim57221b02018-02-14 15:45:36 -08001206 try:
1207 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1208 except ImportError:
1209 main.log.error( "SRBridgingTest not found. Exiting the test" )
1210 main.cleanAndExit()
1211 try:
1212 main.funcs
1213 except ( NameError, AttributeError ):
1214 main.funcs = SRBridgingTest()
1215 main.funcs.runTest( main,
1216 test_idx=61,
1217 topology='0x1',
1218 onosNodes=1,
1219 description="Bridging test between two tagged hosts with different vlan id",
1220 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001221
1222 def CASE62( self, main ):
1223 """
1224 Tests connectivity between two tagged hosts with different vlan id
1225 (Ports are configured as vlan-tagged 10 and 20, respectively)
1226
1227 Sets up 1 ONOS instance
1228 Start 0x2 dual-homed ToR topology
1229 Pingall
1230 """
Devin Lim57221b02018-02-14 15:45:36 -08001231 try:
1232 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1233 except ImportError:
1234 main.log.error( "SRBridgingTest not found. Exiting the test" )
1235 main.cleanAndExit()
1236 try:
1237 main.funcs
1238 except ( NameError, AttributeError ):
1239 main.funcs = SRBridgingTest()
1240 main.funcs.runTest( main,
1241 test_idx=62,
1242 topology='0x2',
1243 onosNodes=1,
1244 description="Bridging test between two tagged hosts with different vlan id",
1245 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001246
1247 def CASE63( self, main ):
1248 """
1249 Tests connectivity between two tagged hosts with different vlan id
1250 (Ports are configured as vlan-tagged 10 and 20, respectively)
1251
1252 Sets up 1 ONOS instance
1253 Start 2x2 leaf-spine topology
1254 Pingall
1255 """
Devin Lim57221b02018-02-14 15:45:36 -08001256 try:
1257 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1258 except ImportError:
1259 main.log.error( "SRBridgingTest not found. Exiting the test" )
1260 main.cleanAndExit()
1261 try:
1262 main.funcs
1263 except ( NameError, AttributeError ):
1264 main.funcs = SRBridgingTest()
1265 main.funcs.runTest( main,
1266 test_idx=63,
1267 topology='2x2',
1268 onosNodes=1,
1269 description="Bridging test between two tagged hosts with different vlan id",
1270 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001271
1272 def CASE64( self, main ):
1273 """
1274 Tests connectivity between two tagged hosts with different vlan id
1275 (Ports are configured as vlan-tagged 10 and 20, respectively)
1276
1277 Sets up 1 ONOS instance
1278 Start 2x4 dual-homed leaf-spine topology
1279 Pingall
1280 """
Devin Lim57221b02018-02-14 15:45:36 -08001281 try:
1282 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1283 except ImportError:
1284 main.log.error( "SRBridgingTest not found. Exiting the test" )
1285 main.cleanAndExit()
1286 try:
1287 main.funcs
1288 except ( NameError, AttributeError ):
1289 main.funcs = SRBridgingTest()
1290 main.funcs.runTest( main,
1291 test_idx=64,
1292 topology='2x4',
1293 onosNodes=1,
1294 description="Bridging test between two tagged hosts with different vlan id",
1295 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001296
1297 def CASE65( self, main ):
1298 """
1299 Tests connectivity between two tagged hosts with different vlan id
1300 (Ports are configured as vlan-tagged 10 and 20, respectively)
1301
1302 Sets up 3 ONOS instances
1303 Start 0x1 single ToR 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=65,
1317 topology='0x1',
1318 onosNodes=3,
1319 description="Bridging test between two tagged hosts with different vlan id",
1320 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001321
1322 def CASE66( self, main ):
1323 """
1324 Tests connectivity between two tagged hosts with different vlan id
1325 (Ports are configured as vlan-tagged 10 and 20, respectively)
1326
1327 Sets up 3 ONOS instances
1328 Start 0x2 dual-homed ToR topology
1329 Pingall
1330 """
Devin Lim57221b02018-02-14 15:45:36 -08001331 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=66,
1342 topology='0x2',
1343 onosNodes=3,
1344 description="Bridging test between two tagged hosts with different vlan id",
1345 vlan=[ 10, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001346
1347 def CASE67( self, main ):
1348 """
1349 Tests connectivity between two tagged hosts with different vlan id
1350 (Ports are configured as vlan-tagged 10 and 20, respectively)
1351
1352 Sets up 3 ONOS instances
1353 Start 2x2 leaf-spine topology
1354 Pingall
1355 """
Devin Lim57221b02018-02-14 15:45:36 -08001356 try:
1357 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1358 except ImportError:
1359 main.log.error( "SRBridgingTest not found. Exiting the test" )
1360 main.cleanAndExit()
1361 try:
1362 main.funcs
1363 except ( NameError, AttributeError ):
1364 main.funcs = SRBridgingTest()
1365 main.funcs.runTest( main,
1366 test_idx=67,
1367 topology='2x2',
1368 onosNodes=3,
1369 description="Bridging test between two tagged hosts with different vlan id",
1370 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001371
1372 def CASE68( self, main ):
1373 """
1374 Tests connectivity between two tagged hosts with different vlan id
1375 (Ports are configured as vlan-tagged 10 and 20, respectively)
1376
1377 Sets up 3 ONOS instances
1378 Start 2x4 dual-homed leaf-spine topology
1379 Pingall
1380 """
Devin Lim57221b02018-02-14 15:45:36 -08001381 try:
1382 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1383 except ImportError:
1384 main.log.error( "SRBridgingTest not found. Exiting the test" )
1385 main.cleanAndExit()
1386 try:
1387 main.funcs
1388 except ( NameError, AttributeError ):
1389 main.funcs = SRBridgingTest()
1390 main.funcs.runTest( main,
1391 test_idx=68,
1392 topology='2x4',
1393 onosNodes=3,
1394 description="Bridging test between two tagged hosts with different vlan id",
1395 vlan=[ 10, 20, 30, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001396
1397 def CASE71( self, main ):
1398 """
1399 Tests connectivity between untagged and tagged hosts with different vlan id
1400 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1401
1402 Sets up 1 ONOS instance
1403 Start 0x1 single ToR topology
1404 Pingall
1405 """
Devin Lim57221b02018-02-14 15:45:36 -08001406 try:
1407 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1408 except ImportError:
1409 main.log.error( "SRBridgingTest not found. Exiting the test" )
1410 main.cleanAndExit()
1411 try:
1412 main.funcs
1413 except ( NameError, AttributeError ):
1414 main.funcs = SRBridgingTest()
1415 main.funcs.runTest( main,
1416 test_idx=71,
1417 topology='0x1',
1418 onosNodes=1,
1419 description="Bridging test between untagged and tagged hosts with different vlan id",
1420 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001421
1422 def CASE72( self, main ):
1423 """
1424 Tests connectivity between untagged and tagged hosts with different vlan id
1425 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1426
1427 Sets up 1 ONOS instance
1428 Start 0x2 dual-homed ToR topology
1429 Pingall
1430 """
Devin Lim57221b02018-02-14 15:45:36 -08001431 try:
1432 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1433 except ImportError:
1434 main.log.error( "SRBridgingTest not found. Exiting the test" )
1435 main.cleanAndExit()
1436 try:
1437 main.funcs
1438 except ( NameError, AttributeError ):
1439 main.funcs = SRBridgingTest()
1440 main.funcs.runTest( main,
1441 test_idx=72,
1442 topology='0x2',
1443 onosNodes=1,
1444 description="Bridging test between untagged and tagged hosts with different vlan id",
1445 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001446
1447 def CASE73( self, main ):
1448 """
1449 Tests connectivity between untagged and tagged hosts with different vlan id
1450 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1451
1452 Sets up 1 ONOS instance
1453 Start 2x2 leaf-spine topology
1454 Pingall
1455 """
Devin Lim57221b02018-02-14 15:45:36 -08001456 try:
1457 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1458 except ImportError:
1459 main.log.error( "SRBridgingTest not found. Exiting the test" )
1460 main.cleanAndExit()
1461 try:
1462 main.funcs
1463 except ( NameError, AttributeError ):
1464 main.funcs = SRBridgingTest()
1465 main.funcs.runTest( main,
1466 test_idx=73,
1467 topology='2x2',
1468 onosNodes=1,
1469 description="Bridging test between untagged and tagged hosts with different vlan id",
1470 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001471
1472 def CASE74( self, main ):
1473 """
1474 Tests connectivity between untagged and tagged hosts with different vlan id
1475 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1476
1477 Sets up 1 ONOS instance
1478 Start 2x2 dual-homed leaf-spine topology
1479 Pingall
1480 """
Devin Lim57221b02018-02-14 15:45:36 -08001481 try:
1482 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1483 except ImportError:
1484 main.log.error( "SRBridgingTest not found. Exiting the test" )
1485 main.cleanAndExit()
1486 try:
1487 main.funcs
1488 except ( NameError, AttributeError ):
1489 main.funcs = SRBridgingTest()
1490 main.funcs.runTest( main,
1491 test_idx=74,
1492 topology='2x4',
1493 onosNodes=1,
1494 description="Bridging test between untagged and tagged hosts with different vlan id",
1495 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001496
1497 def CASE75( self, main ):
1498 """
1499 Tests connectivity between untagged and tagged hosts with different vlan id
1500 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1501
1502 Sets up 3 ONOS instances
1503 Start 0x1 single ToR topology
1504 Pingall
1505 """
Devin Lim57221b02018-02-14 15:45:36 -08001506 try:
1507 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1508 except ImportError:
1509 main.log.error( "SRBridgingTest not found. Exiting the test" )
1510 main.cleanAndExit()
1511 try:
1512 main.funcs
1513 except ( NameError, AttributeError ):
1514 main.funcs = SRBridgingTest()
1515 main.funcs.runTest( main,
1516 test_idx=75,
1517 topology='0x1',
1518 onosNodes=3,
1519 description="Bridging test between untagged and tagged hosts with different vlan id",
1520 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001521
1522 def CASE76( self, main ):
1523 """
1524 Tests connectivity between untagged and tagged hosts with different vlan id
1525 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1526
1527 Sets up 3 ONOS instances
1528 Start 0x2 dual-homed ToR topology
1529 Pingall
1530 """
Devin Lim57221b02018-02-14 15:45:36 -08001531 try:
1532 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1533 except ImportError:
1534 main.log.error( "SRBridgingTest not found. Exiting the test" )
1535 main.cleanAndExit()
1536 try:
1537 main.funcs
1538 except ( NameError, AttributeError ):
1539 main.funcs = SRBridgingTest()
1540 main.funcs.runTest( main,
1541 test_idx=76,
1542 topology='0x2',
1543 onosNodes=3,
1544 description="Bridging test between untagged and tagged hosts with different vlan id",
1545 vlan=[ 0, 20 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001546
1547 def CASE77( self, main ):
1548 """
1549 Tests connectivity between untagged and tagged hosts with different vlan id
1550 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1551
1552 Sets up 3 ONOS instances
1553 Start 2x2 leaf-spine topology
1554 Pingall
1555 """
Devin Lim57221b02018-02-14 15:45:36 -08001556 try:
1557 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1558 except ImportError:
1559 main.log.error( "SRBridgingTest not found. Exiting the test" )
1560 main.cleanAndExit()
1561 try:
1562 main.funcs
1563 except ( NameError, AttributeError ):
1564 main.funcs = SRBridgingTest()
1565 main.funcs.runTest( main,
1566 test_idx=77,
1567 topology='2x2',
1568 onosNodes=3,
1569 description="Bridging test between untagged and tagged hosts with different vlan id",
1570 vlan=[ 0, 20, 0, 40 ] )
Jonghwan Hyun3731d6a2017-10-19 11:59:31 -07001571
1572 def CASE78( self, main ):
1573 """
1574 Tests connectivity between untagged and tagged hosts with different vlan id
1575 (Ports are configured as vlan-untagged 10 and vlan-tagged 20, respectively)
1576
1577 Sets up 3 ONOS instances
1578 Start 2x2 dual-homed leaf-spine topology
1579 Pingall
1580 """
Devin Lim57221b02018-02-14 15:45:36 -08001581 try:
1582 from tests.USECASE.SegmentRouting.SRBridging.dependencies.SRBridgingTest import SRBridgingTest
1583 except ImportError:
1584 main.log.error( "SRBridgingTest not found. Exiting the test" )
1585 main.cleanAndExit()
1586 try:
1587 main.funcs
1588 except ( NameError, AttributeError ):
1589 main.funcs = SRBridgingTest()
1590 main.funcs.runTest( main,
1591 test_idx=78,
1592 topology='2x4',
1593 onosNodes=3,
1594 description="Bridging test between untagged and tagged hosts with different vlan id",
1595 vlan=[ 0, 20, 0, 40 ] )