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 | 2731757 | 2018-03-06 12:13:11 -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 | 2731757 | 2018-03-06 12:13:11 -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 | 2731757 | 2018-03-06 12:13:11 -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", |
Andreas Pantelopoulos | 2eae324 | 2018-03-06 13:47:20 -0800 | [diff] [blame] | 72 | checkExternalHost=True, |
You Wang | 2731757 | 2018-03-06 12:13:11 -0800 | [diff] [blame^] | 73 | countFlowsGroups=False ) |
You Wang | ba231e7 | 2018-03-01 13:18:21 -0800 | [diff] [blame] | 74 | |
| 75 | def CASE5( self, main ): |
| 76 | """ |
| 77 | Ping between all ipv6 hosts in the topology and check connectivity to external ipv6 hosts |
| 78 | """ |
| 79 | |
| 80 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 81 | |
| 82 | SRRoutingTest.runTest( main, |
| 83 | test_idx=5, |
| 84 | onosNodes=3, |
| 85 | dhcp=1, |
| 86 | routers=1, |
| 87 | ipv4=0, |
| 88 | ipv6=1, |
| 89 | description="Ping between all ipv6 hosts in the topology and check connectivity to external hosts", |
Andreas Pantelopoulos | 2eae324 | 2018-03-06 13:47:20 -0800 | [diff] [blame] | 90 | checkExternalHost=True, |
You Wang | 2731757 | 2018-03-06 12:13:11 -0800 | [diff] [blame^] | 91 | countFlowsGroups=False ) |
You Wang | ba231e7 | 2018-03-01 13:18:21 -0800 | [diff] [blame] | 92 | |
| 93 | def CASE6( self, main ): |
| 94 | """ |
| 95 | Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external ipv4 and ipv6 hosts |
| 96 | """ |
| 97 | |
| 98 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 99 | |
| 100 | SRRoutingTest.runTest( main, |
| 101 | test_idx=6, |
| 102 | onosNodes=3, |
| 103 | dhcp=1, |
| 104 | routers=1, |
| 105 | ipv4=1, |
| 106 | ipv6=1, |
| 107 | description="Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external hosts", |
Andreas Pantelopoulos | 2eae324 | 2018-03-06 13:47:20 -0800 | [diff] [blame] | 108 | checkExternalHost=True, |
You Wang | 2731757 | 2018-03-06 12:13:11 -0800 | [diff] [blame^] | 109 | countFlowsGroups=False ) |
Andreas Pantelopoulos | 2eae324 | 2018-03-06 13:47:20 -0800 | [diff] [blame] | 110 | |
| 111 | def CASE7( self, main ): |
| 112 | """ |
| 113 | Ping between ipv4 hosts and an external host that is not configured in |
| 114 | external router config, but reachable through the use of route-add |
| 115 | command. |
| 116 | """ |
| 117 | |
| 118 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 119 | |
| 120 | SRRoutingTest.runTest( main, |
| 121 | test_idx=7, |
| 122 | onosNodes=3, |
| 123 | dhcp=1, |
| 124 | routers=1, |
| 125 | ipv4=1, |
| 126 | ipv6=0, |
| 127 | description="Ping between from ipv4 hosts to external host configured with route-add command.", |
| 128 | checkExternalHost=False, |
| 129 | countFlowsGroups=False, |
You Wang | 2731757 | 2018-03-06 12:13:11 -0800 | [diff] [blame^] | 130 | staticRouteConfigure=True ) |
Andreas Pantelopoulos | 2eae324 | 2018-03-06 13:47:20 -0800 | [diff] [blame] | 131 | |
| 132 | def CASE8( self, main ): |
| 133 | """ |
| 134 | Ping between ipv6 hosts and an external host that is not configured in |
| 135 | external router config, but reachable through the use of route-add |
| 136 | command. |
| 137 | """ |
| 138 | |
| 139 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 140 | |
| 141 | SRRoutingTest.runTest( main, |
| 142 | test_idx=8, |
| 143 | onosNodes=3, |
| 144 | dhcp=1, |
| 145 | routers=1, |
| 146 | ipv4=0, |
| 147 | ipv6=1, |
| 148 | description="Ping between from ipv6 hosts to external host configured with route-add command.", |
| 149 | checkExternalHost=False, |
| 150 | countFlowsGroups=False, |
You Wang | 2731757 | 2018-03-06 12:13:11 -0800 | [diff] [blame^] | 151 | staticRouteConfigure=True ) |
Andreas Pantelopoulos | 2eae324 | 2018-03-06 13:47:20 -0800 | [diff] [blame] | 152 | |
| 153 | def CASE9( self, main ): |
| 154 | """ |
| 155 | Ping between ipv4 and pv6 hosts and external hosts that is not configured in |
| 156 | external router config, but reachable through the use of route-add |
| 157 | command. |
| 158 | """ |
| 159 | |
| 160 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 161 | |
| 162 | SRRoutingTest.runTest( main, |
| 163 | test_idx=9, |
| 164 | onosNodes=3, |
| 165 | dhcp=1, |
| 166 | routers=1, |
| 167 | ipv4=1, |
| 168 | ipv6=1, |
| 169 | description="Ping between from ipv4 and ipv6 hosts to external hosts configured with route-add command.", |
| 170 | checkExternalHost=False, |
| 171 | countFlowsGroups=False, |
You Wang | 2731757 | 2018-03-06 12:13:11 -0800 | [diff] [blame^] | 172 | staticRouteConfigure=True ) |
| 173 | |
| 174 | def CASE201( self, main ): |
| 175 | """ |
| 176 | Kill and recover spine switches |
| 177 | Ping between all ipv4 hosts in the topology. |
| 178 | """ |
| 179 | |
| 180 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 181 | |
| 182 | SRRoutingTest.runTest( main, |
| 183 | test_idx=201, |
| 184 | onosNodes=3, |
| 185 | dhcp=1, |
| 186 | routers=1, |
| 187 | ipv4=1, |
| 188 | ipv6=0, |
| 189 | countFlowsGroups=False, |
| 190 | description="Test switch failures with IPv4 hosts", |
| 191 | switchFailure=True ) |
| 192 | |
| 193 | def CASE202( self, main ): |
| 194 | """ |
| 195 | Kill and recover spine switches |
| 196 | Ping between all ipv6 hosts in the topology. |
| 197 | """ |
| 198 | |
| 199 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 200 | |
| 201 | SRRoutingTest.runTest( main, |
| 202 | test_idx=202, |
| 203 | onosNodes=3, |
| 204 | dhcp=1, |
| 205 | routers=1, |
| 206 | ipv4=0, |
| 207 | ipv6=1, |
| 208 | countFlowsGroups=False, |
| 209 | description="Test switch failures with IPv6 hosts", |
| 210 | switchFailure=True ) |
| 211 | |
| 212 | def CASE203( self, main ): |
| 213 | """ |
| 214 | Kill and recover spine switches |
| 215 | Ping between all ipv4 and ipv6 hosts in the topology. |
| 216 | """ |
| 217 | |
| 218 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 219 | |
| 220 | SRRoutingTest.runTest( main, |
| 221 | test_idx=203, |
| 222 | onosNodes=3, |
| 223 | dhcp=1, |
| 224 | routers=1, |
| 225 | ipv4=1, |
| 226 | ipv6=1, |
| 227 | countFlowsGroups=False, |
| 228 | description="Test switch failures with IPv4 and IPv6 hosts", |
| 229 | switchFailure=True ) |
| 230 | |
| 231 | def CASE204( self, main ): |
| 232 | """ |
| 233 | Kill and recover spine switches |
| 234 | Ping between all ipv4 hosts in the topology and check connectivity to external ipv4 hosts |
| 235 | """ |
| 236 | |
| 237 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 238 | |
| 239 | SRRoutingTest.runTest( main, |
| 240 | test_idx=204, |
| 241 | onosNodes=3, |
| 242 | dhcp=1, |
| 243 | routers=1, |
| 244 | ipv4=1, |
| 245 | ipv6=0, |
| 246 | description="Test switch failures with IPv4 hosts (including external hosts)", |
| 247 | checkExternalHost=True, |
| 248 | switchFailure=True ) |
| 249 | |
| 250 | def CASE205( self, main ): |
| 251 | """ |
| 252 | Kill and recover spine switches |
| 253 | Ping between all ipv6 hosts in the topology and check connectivity to external ipv6 hosts |
| 254 | """ |
| 255 | |
| 256 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 257 | |
| 258 | SRRoutingTest.runTest( main, |
| 259 | test_idx=205, |
| 260 | onosNodes=3, |
| 261 | dhcp=1, |
| 262 | routers=1, |
| 263 | ipv4=0, |
| 264 | ipv6=1, |
| 265 | description="Test switch failures with IPv6 hosts (including external hosts)", |
| 266 | checkExternalHost=True, |
| 267 | switchFailure=True ) |
| 268 | |
| 269 | def CASE206( self, main ): |
| 270 | """ |
| 271 | Kill and recover spine switches |
| 272 | Ping between all ipv4 and ipv6 hosts in the topology and check connectivity to external ipv4 and ipv6 hosts |
| 273 | """ |
| 274 | |
| 275 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 276 | |
| 277 | SRRoutingTest.runTest( main, |
| 278 | test_idx=206, |
| 279 | onosNodes=3, |
| 280 | dhcp=1, |
| 281 | routers=1, |
| 282 | ipv4=1, |
| 283 | ipv6=1, |
| 284 | description="Test switch failures with IPv4 and IPv6 hosts (including external hosts)", |
| 285 | checkExternalHost=True, |
| 286 | switchFailure=True ) |
| 287 | |
| 288 | def CASE207( self, main ): |
| 289 | """ |
| 290 | Kill and recover spine switches |
| 291 | Ping between ipv4 hosts and an external host that is not configured in |
| 292 | external router config, but reachable through the use of route-add command. |
| 293 | """ |
| 294 | |
| 295 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 296 | |
| 297 | SRRoutingTest.runTest( main, |
| 298 | test_idx=207, |
| 299 | onosNodes=3, |
| 300 | dhcp=1, |
| 301 | routers=1, |
| 302 | ipv4=1, |
| 303 | ipv6=0, |
| 304 | description="Test switch failures with IPv4 hosts (including external host configured with route-add command)", |
| 305 | checkExternalHost=False, |
| 306 | countFlowsGroups=False, |
| 307 | staticRouteConfigure=True, |
| 308 | switchFailure=True ) |
| 309 | |
| 310 | def CASE208( self, main ): |
| 311 | """ |
| 312 | Kill and recover spine switches |
| 313 | Ping between ipv6 hosts and an external host that is not configured in |
| 314 | external router config, but reachable through the use of route-add command. |
| 315 | """ |
| 316 | |
| 317 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 318 | |
| 319 | SRRoutingTest.runTest( main, |
| 320 | test_idx=208, |
| 321 | onosNodes=3, |
| 322 | dhcp=1, |
| 323 | routers=1, |
| 324 | ipv4=0, |
| 325 | ipv6=1, |
| 326 | description="Test switch failures with IPv6 hosts (including external host configured with route-add command)", |
| 327 | checkExternalHost=False, |
| 328 | countFlowsGroups=False, |
| 329 | staticRouteConfigure=True, |
| 330 | switchFailure=True ) |
| 331 | |
| 332 | def CASE209( self, main ): |
| 333 | """ |
| 334 | Kill and recover spine switches |
| 335 | Ping between ipv4 and pv6 hosts and external hosts that is not configured in |
| 336 | external router config, but reachable through the use of route-add command. |
| 337 | """ |
| 338 | |
| 339 | from tests.USECASE.SegmentRouting.SRRouting.dependencies.SRRoutingTest import SRRoutingTest |
| 340 | |
| 341 | SRRoutingTest.runTest( main, |
| 342 | test_idx=209, |
| 343 | onosNodes=3, |
| 344 | dhcp=1, |
| 345 | routers=1, |
| 346 | ipv4=1, |
| 347 | ipv6=1, |
| 348 | description="Test switch failures with IPv4 and IPv6 hosts (including external host configured with route-add command)", |
| 349 | checkExternalHost=False, |
| 350 | countFlowsGroups=False, |
| 351 | staticRouteConfigure=True, |
| 352 | switchFailure=True ) |