Daniele Moro | 04a62d1 | 2021-10-06 17:37:36 +0200 | [diff] [blame] | 1 | class QOSNonMobile: |
| 2 | |
| 3 | def __init__(self): |
| 4 | self.default = '' |
| 5 | |
| 6 | def CASE1(self): |
| 7 | main.case("Leaf Edge with NON-Mobile Traffic Classification") |
| 8 | try: |
Daniele Moro | c6811a8 | 2021-10-12 11:29:41 +0200 | [diff] [blame] | 9 | from tests.USECASE.SegmentRouting.QOSNonMobile.dependencies.QOSNonMobileTest import \ |
| 10 | QOSNonMobileTest |
Daniele Moro | 04a62d1 | 2021-10-06 17:37:36 +0200 | [diff] [blame] | 11 | except ImportError as e: |
| 12 | main.log.error("Import not found. Exiting the test") |
| 13 | main.log.error(e) |
| 14 | main.cleanAndExit() |
| 15 | |
| 16 | test = QOSNonMobileTest() |
Daniele Moro | c6811a8 | 2021-10-12 11:29:41 +0200 | [diff] [blame] | 17 | test.runTest( |
| 18 | main, |
| 19 | test_idx=1, |
| 20 | n_switches=int(main.params["TOPO"]["switchNum"]) |
| 21 | ) |
Daniele Moro | 04a62d1 | 2021-10-06 17:37:36 +0200 | [diff] [blame] | 22 | |
| 23 | def CASE2(self): |
| 24 | main.case("Leaf Pair Link with NON-Mobile Traffic Classification") |
| 25 | try: |
Daniele Moro | c6811a8 | 2021-10-12 11:29:41 +0200 | [diff] [blame] | 26 | from tests.USECASE.SegmentRouting.QOSNonMobile.dependencies.QOSNonMobileTest import \ |
| 27 | QOSNonMobileTest |
Daniele Moro | 04a62d1 | 2021-10-06 17:37:36 +0200 | [diff] [blame] | 28 | except ImportError as e: |
| 29 | main.log.error("Import not found. Exiting the test") |
| 30 | main.log.error(e) |
| 31 | main.cleanAndExit() |
| 32 | |
| 33 | test = QOSNonMobileTest() |
Daniele Moro | c6811a8 | 2021-10-12 11:29:41 +0200 | [diff] [blame] | 34 | test.runTest( |
| 35 | main, |
| 36 | test_idx=2, |
| 37 | n_switches=int(main.params["TOPO"]["switchNum"]) |
| 38 | ) |