Pier | 6a0c4de | 2018-03-18 16:01:30 -0700 | [diff] [blame] | 1 | class SRMulticast: |
| 2 | def __init__( self ): |
| 3 | self.default = '' |
| 4 | |
| 5 | def CASE1( self, main ): |
| 6 | """ |
Pier | 4b70130 | 2018-03-20 17:26:10 -0700 | [diff] [blame] | 7 | Sets up 3 ONOS instances |
| 8 | Start 2x2 topology of hardware switches |
Pier | 6a0c4de | 2018-03-18 16:01:30 -0700 | [diff] [blame] | 9 | """ |
| 10 | try: |
| 11 | from tests.USECASE.SegmentRouting.SRMulticast.dependencies.SRMulticastTest import SRMulticastTest |
| 12 | except ImportError: |
| 13 | main.log.error( "SRMulticastTest not found. Exiting the test" ) |
| 14 | main.cleanAndExit() |
| 15 | try: |
| 16 | main.funcs |
| 17 | except ( NameError, AttributeError ): |
| 18 | main.funcs = SRMulticastTest() |
| 19 | main.funcs.runTest( main, |
| 20 | test_idx=1, |
| 21 | topology='2x2', |
| 22 | onosNodes=1, |
| 23 | description="TBD" ) |
Pier | 4b70130 | 2018-03-20 17:26:10 -0700 | [diff] [blame] | 24 | |
| 25 | def CASE01( self, main ): |
| 26 | """ |
| 27 | Sets up 3 ONOS instances, start 2x5 topology |
| 28 | Create a Multicast flow between a source and sink on the same dual-tor leaf |
| 29 | Verify flows and groups |
| 30 | Verify traffic |
| 31 | Remove sink |
| 32 | Verify flows and groups |
| 33 | """ |
| 34 | pass |
| 35 | |
| 36 | def CASE02( self, main ): |
| 37 | """ |
| 38 | Sets up 3 ONOS instances, start 2x5 topology |
| 39 | Create a Multicast flow between a source and sink on different dual-tor leaves |
| 40 | Verify flows and groups |
| 41 | Verify traffic |
| 42 | Remove sink |
| 43 | Verify flows and groups |
| 44 | """ |
| 45 | pass |
| 46 | |
| 47 | def CASE03( self, main ): |
| 48 | """ |
| 49 | Sets up 3 ONOS instances, start 2x5 topology |
| 50 | Create a Multicast flow between a source and sink on different leaves (sink on single-tor) |
| 51 | Verify flows and groups |
| 52 | Verify traffic |
| 53 | Remove sink |
| 54 | Verify flows and groups |
| 55 | """ |
| 56 | pass |
| 57 | |
| 58 | def CASE04( self, main ): |
| 59 | """ |
| 60 | Sets up 3 ONOS instances, start 2x5 topology |
| 61 | Combines CASE01 and CASE02 |
| 62 | Verify flows and groups |
| 63 | Verify traffic |
| 64 | Remove sinks |
| 65 | Verify flows and groups |
| 66 | """ |
| 67 | pass |
| 68 | |
| 69 | def CASE05( self, main ): |
| 70 | """ |
| 71 | Sets up 3 ONOS instances, start 2x5 topology |
| 72 | Combines CASE02 and CASE03 |
| 73 | Verify flows and groups |
| 74 | Verify traffic |
| 75 | Remove sinks |
| 76 | Verify flows and groups |
| 77 | """ |
| 78 | pass |
| 79 | |
| 80 | def CASE06( self, main ): |
| 81 | """ |
| 82 | Sets up 3 ONOS instances, start 2x5 topology |
| 83 | Combines CASE01 and CASE03 |
| 84 | Verify flows and groups |
| 85 | Verify traffic |
| 86 | Remove sinks |
| 87 | Verify flows and groups |
| 88 | """ |
| 89 | pass |
| 90 | |
| 91 | def CASE07( self, main ): |
| 92 | """ |
| 93 | Sets up 3 ONOS instances, start 2x5 topology |
| 94 | Combines CASE01, CASE02 and CASE03 |
| 95 | Verify flows and groups |
| 96 | Verify traffic |
| 97 | Remove sinks |
| 98 | Verify flows and groups |
| 99 | """ |
| 100 | pass |
| 101 | |
| 102 | def CASE08( self, main ): |
| 103 | """ |
| 104 | Sets up 3 ONOS instances, start 2x5 topology |
| 105 | Combines CASE07 with route removal |
| 106 | Verify flows and groups |
| 107 | """ |
| 108 | pass |
| 109 | |
| 110 | def CASE101( self, main ): |
| 111 | """ |
| 112 | Sets up 3 ONOS instances, start 2x5 topology |
| 113 | Combines CASE07 with a link failure (link ingress-spine) |
| 114 | Verify flows and groups |
| 115 | Verify traffic |
| 116 | """ |
| 117 | pass |
| 118 | |
| 119 | def CASE102( self, main ): |
| 120 | """ |
| 121 | Sets up 3 ONOS instances, start 2x5 topology |
| 122 | Combines CASE07 with a link failure (link spine-egress-dt-leaf) |
| 123 | Verify flows and groups |
| 124 | Verify traffic |
| 125 | """ |
| 126 | pass |
| 127 | |
| 128 | def CASE103( self, main ): |
| 129 | """ |
| 130 | Sets up 3 ONOS instances, start 2x5 topology |
| 131 | Combines CASE07 with a link failure (link spine-egress-st-leaf) |
| 132 | Verify flows and groups |
| 133 | Verify traffic |
| 134 | """ |
| 135 | pass |
| 136 | |
| 137 | def CASE201( self, main ): |
| 138 | """ |
| 139 | Sets up 3 ONOS instances, start 2x5 topology |
| 140 | Combines CASE07 with spine failure |
| 141 | Verify flows and groups |
| 142 | Verify traffic |
| 143 | """ |
| 144 | pass |
| 145 | |
| 146 | def CASE202( self, main ): |
| 147 | """ |
| 148 | Sets up 3 ONOS instances, start 2x5 topology |
| 149 | Combines CASE07 with ingress failure and recovery |
| 150 | Verify flows and groups are removed (failure) |
| 151 | Verify flows and groups (recovery) |
| 152 | Verify traffic (recovery) |
| 153 | """ |
| 154 | pass |
| 155 | |
| 156 | def CASE203( self, main ): |
| 157 | """ |
| 158 | Sets up 3 ONOS instances, start 2x5 topology |
| 159 | Combines CASE07 with egress-dt-leaf failure and recovery |
| 160 | Verify flows and groups are removed for the failing sink (failure) |
| 161 | Verify traffic on remaining sinks (failure) |
| 162 | Verify flows and groups (recovery) |
| 163 | Verify traffic (recovery) |
| 164 | """ |
| 165 | pass |
| 166 | |
| 167 | def CASE204( self, main ): |
| 168 | """ |
| 169 | Sets up 3 ONOS instances, start 2x5 topology |
| 170 | Combines CASE07 with egress-st-leaf failure and recovery |
| 171 | Verify flows and groups are removed for the failing sink (failure) |
| 172 | Verify traffic on remaining sinks (failure) |
| 173 | Verify flows and groups (recovery) |
| 174 | Verify traffic (recovery) |
| 175 | """ |
| 176 | pass |
| 177 | |
| 178 | def CASE205( self, main ): |
| 179 | """ |
| 180 | Sets up 3 ONOS instances, start 2x5 topology |
| 181 | Combines CASE07 with egress leaves failure and recovery |
| 182 | Verify flows and groups are removed for the failing sinks (failure) |
| 183 | Verify traffic on remaining sink (failure) |
| 184 | Verify flows and groups (recovery) |
| 185 | Verify traffic (recovery) |
| 186 | """ |
| 187 | pass |
| 188 | |
| 189 | def CASE301( self, main ): |
| 190 | """ |
| 191 | Sets up 3 ONOS instances, start 2x5 topology |
| 192 | Combines CASE07 with ONOS failure and recovery |
| 193 | Verify flows and groups (failure) |
| 194 | Verify traffic (failure) |
| 195 | Verify flows and groups (recovery) |
| 196 | Verify traffic (recovery) |
| 197 | """ |
| 198 | pass |