Andreas Pantelopoulos | 90f0b10 | 2018-02-01 13:21:45 -0800 | [diff] [blame] | 1 | |
| 2 | class SRRouting: |
| 3 | def __init__( self ): |
| 4 | self.default = '' |
| 5 | |
| 6 | def CASE1( self, main ): |
| 7 | """ |
Andreas Pantelopoulos | b7904ce | 2018-02-07 16:24:49 -0800 | [diff] [blame] | 8 | Ping between all ipv4 hosts in the topology. |
Andreas Pantelopoulos | 90f0b10 | 2018-02-01 13:21:45 -0800 | [diff] [blame] | 9 | """ |
| 10 | |
| 11 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 12 | |
| 13 | SRRoutingTest.runTest( main, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 14 | test_idx=1, |
| 15 | onosNodes=3, |
| 16 | dhcp=1, |
You Wang | 91befd7 | 2018-02-28 16:41:23 -0800 | [diff] [blame] | 17 | routers=1, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 18 | ipv4=1, |
| 19 | ipv6=0, |
Andreas Pantelopoulos | 9173d44 | 2018-03-01 17:07:37 -0800 | [diff] [blame] | 20 | countFlowsGroups=False, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 21 | description="Ping between all ipv4 hosts in the topology") |
Andreas Pantelopoulos | f6ed501 | 2018-02-08 21:26:01 -0800 | [diff] [blame] | 22 | |
| 23 | def CASE2( self, main ): |
| 24 | """ |
| 25 | Ping between all ipv6 hosts in the topology. |
| 26 | """ |
| 27 | |
| 28 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 29 | |
| 30 | SRRoutingTest.runTest( main, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 31 | test_idx=2, |
| 32 | onosNodes=3, |
| 33 | dhcp=1, |
You Wang | 91befd7 | 2018-02-28 16:41:23 -0800 | [diff] [blame] | 34 | routers=1, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 35 | ipv4=0, |
| 36 | ipv6=1, |
Andreas Pantelopoulos | 9173d44 | 2018-03-01 17:07:37 -0800 | [diff] [blame] | 37 | countFlowsGroups=False, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 38 | description="Ping between all ipv6 hosts in the topology") |
Andreas Pantelopoulos | f6ed501 | 2018-02-08 21:26:01 -0800 | [diff] [blame] | 39 | |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 40 | def CASE3( self, main ): |
| 41 | """ |
| 42 | Ping between all ipv4 and ipv6 hosts in the topology. |
| 43 | """ |
Andreas Pantelopoulos | 90f0b10 | 2018-02-01 13:21:45 -0800 | [diff] [blame] | 44 | |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 45 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 46 | |
| 47 | SRRoutingTest.runTest( main, |
| 48 | test_idx=3, |
| 49 | onosNodes=3, |
| 50 | dhcp=1, |
You Wang | 91befd7 | 2018-02-28 16:41:23 -0800 | [diff] [blame] | 51 | routers=1, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 52 | ipv4=1, |
| 53 | ipv6=1, |
Andreas Pantelopoulos | 9173d44 | 2018-03-01 17:07:37 -0800 | [diff] [blame] | 54 | countFlowsGroups=False, |
You Wang | 7957781 | 2018-02-27 16:39:50 -0800 | [diff] [blame] | 55 | description="Ping between all ipv4 and ipv6 hosts in the topology") |
You Wang | ba231e7 | 2018-03-01 13:18:21 -0800 | [diff] [blame^] | 56 | |
| 57 | def CASE4( self, main ): |
| 58 | """ |
| 59 | Ping between all ipv4 hosts in the topology and check connectivity to external ipv4 hosts |
| 60 | """ |
| 61 | |
| 62 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 63 | |
| 64 | SRRoutingTest.runTest( main, |
| 65 | test_idx=4, |
| 66 | onosNodes=3, |
| 67 | dhcp=1, |
| 68 | routers=1, |
| 69 | ipv4=1, |
| 70 | ipv6=0, |
| 71 | description="Ping between all ipv4 hosts in the topology and check connectivity to external hosts", |
| 72 | checkExternalHost=True ) |
| 73 | |
| 74 | def CASE5( self, main ): |
| 75 | """ |
| 76 | Ping between all ipv6 hosts in the topology and check connectivity to external ipv6 hosts |
| 77 | """ |
| 78 | |
| 79 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 80 | |
| 81 | SRRoutingTest.runTest( main, |
| 82 | test_idx=5, |
| 83 | onosNodes=3, |
| 84 | dhcp=1, |
| 85 | routers=1, |
| 86 | ipv4=0, |
| 87 | ipv6=1, |
| 88 | description="Ping between all ipv6 hosts in the topology and check connectivity to external hosts", |
| 89 | checkExternalHost=True ) |
| 90 | |
| 91 | def CASE6( self, main ): |
| 92 | """ |
| 93 | Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external ipv4 and ipv6 hosts |
| 94 | """ |
| 95 | |
| 96 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 97 | |
| 98 | SRRoutingTest.runTest( main, |
| 99 | test_idx=6, |
| 100 | onosNodes=3, |
| 101 | dhcp=1, |
| 102 | routers=1, |
| 103 | ipv4=1, |
| 104 | ipv6=1, |
| 105 | description="Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external hosts", |
| 106 | checkExternalHost=True ) |