You Wang | db927a5 | 2016-02-26 11:03:28 -0800 | [diff] [blame] | 1 | <PARAMS> |
| 2 | # 0. Initialize CHOTestMonkey |
| 3 | # 1. Load topology and balances all switches |
| 4 | # 2. Collect and store device and link data from ONOS |
| 5 | # 3. Collect and store host data from ONOS |
| 6 | # 10. Run all enabled checks |
| 7 | # 20. Bring down/up links and check topology and ping |
| 8 | # 21. Bring down/up a group of links and check topology and ping |
| 9 | # 30. Install host intents and check intent states and ping |
| 10 | # 31. Uninstall host intents and check intent states |
| 11 | # 32. Install point intents and check intent states and ping |
| 12 | # 33. Uninstall point intents and check intent states |
| 13 | # 40. Randomly bring down one ONOS node |
| 14 | # 41. Randomly bring up one ONOS node that is down |
| 15 | # 50. Set FlowObjective to True |
| 16 | # 51. Set FlowObjective to False |
| 17 | # 60. Rebalance devices across controllers |
You Wang | 5216320 | 2016-07-14 16:37:15 -0700 | [diff] [blame] | 18 | # 70. Run randomly generated events |
| 19 | # 80. Replay events from log file |
You Wang | db927a5 | 2016-02-26 11:03:28 -0800 | [diff] [blame] | 20 | # 90. Sleep for some time |
You Wang | 5216320 | 2016-07-14 16:37:15 -0700 | [diff] [blame] | 21 | # 100. Do nothing |
You Wang | db927a5 | 2016-02-26 11:03:28 -0800 | [diff] [blame] | 22 | # Sample sequence: 0,1,2,3,[10,30,21,31,10,32,21,33,50,10,30,21,31,10,32,21,33,51,40,60,10,30,21,31,10,32,21,33,50,10,30,21,31,10,32,21,33,51,41,60]*500,100 |
| 23 | <testcases> |
You Wang | c848af1 | 2016-07-14 09:53:58 -0700 | [diff] [blame] | 24 | 0,1,2,3,70 |
You Wang | db927a5 | 2016-02-26 11:03:28 -0800 | [diff] [blame] | 25 | </testcases> |
| 26 | |
| 27 | <TEST> |
| 28 | <topo>1</topo> |
| 29 | <IPv6>on</IPv6> |
| 30 | <numCtrl>3</numCtrl> |
You Wang | 7a27f3a | 2016-07-05 10:12:27 -0700 | [diff] [blame] | 31 | <pauseTest>off</pauseTest> |
You Wang | db927a5 | 2016-02-26 11:03:28 -0800 | [diff] [blame] | 32 | <caseSleep>0</caseSleep> |
| 33 | <setIPv6CfgSleep>5</setIPv6CfgSleep> |
| 34 | <loadTopoSleep>5</loadTopoSleep> |
| 35 | <ipv6Prefix>1000::</ipv6Prefix> |
| 36 | <ipv4Prefix>10.1.</ipv4Prefix> |
| 37 | <karafCliTimeout>7200000</karafCliTimeout> |
| 38 | <testDuration>86400</testDuration> |
| 39 | <package>off</package> |
| 40 | <autoPull>off</autoPull> |
| 41 | <branch>master</branch> |
| 42 | </TEST> |
| 43 | |
| 44 | <EVENT> |
| 45 | <Event> |
| 46 | <status>on</status> |
| 47 | <typeIndex>0</typeIndex> |
| 48 | <typeString>NULL</typeString> |
| 49 | <CLI>null</CLI> |
| 50 | <CLIParamNum>0</CLIParamNum> |
| 51 | <rerunInterval>5</rerunInterval> |
| 52 | <maxRerunNum>5</maxRerunNum> |
| 53 | </Event> |
| 54 | |
| 55 | <TestPause> |
| 56 | <status>on</status> |
| 57 | <typeIndex>1</typeIndex> |
| 58 | <typeString>TEST_PAUSE</typeString> |
| 59 | <CLI>pause-test</CLI> |
| 60 | <CLIParamNum>0</CLIParamNum> |
| 61 | </TestPause> |
| 62 | |
| 63 | <TestResume> |
| 64 | <status>on</status> |
| 65 | <typeIndex>2</typeIndex> |
| 66 | <typeString>TEST_RESUME</typeString> |
| 67 | <CLI>resume-test</CLI> |
| 68 | <CLIParamNum>0</CLIParamNum> |
| 69 | </TestResume> |
| 70 | |
| 71 | <TestSleep> |
| 72 | <status>on</status> |
| 73 | <typeIndex>3</typeIndex> |
| 74 | <typeString>TEST_SLEEP</typeString> |
| 75 | <CLI>sleep</CLI> |
| 76 | <CLIParamNum>1</CLIParamNum> |
| 77 | </TestSleep> |
| 78 | |
| 79 | <IntentCheck> |
| 80 | <status>on</status> |
| 81 | <typeIndex>10</typeIndex> |
| 82 | <typeString>CHECK_INTENT</typeString> |
| 83 | <CLI>check-intent</CLI> |
| 84 | <CLIParamNum>0</CLIParamNum> |
| 85 | <rerunInterval>5</rerunInterval> |
| 86 | <maxRerunNum>5</maxRerunNum> |
| 87 | </IntentCheck> |
| 88 | |
You Wang | 58aa11e | 2016-05-17 10:35:44 -0700 | [diff] [blame] | 89 | <FlowCheck> |
| 90 | <status>on</status> |
| 91 | <typeIndex>11</typeIndex> |
| 92 | <typeString>CHECK_FLOW</typeString> |
| 93 | <CLI>check-flow</CLI> |
| 94 | <CLIParamNum>0</CLIParamNum> |
| 95 | <rerunInterval>5</rerunInterval> |
| 96 | <maxRerunNum>5</maxRerunNum> |
| 97 | </FlowCheck> |
| 98 | |
You Wang | db927a5 | 2016-02-26 11:03:28 -0800 | [diff] [blame] | 99 | <TrafficCheck> |
| 100 | <status>on</status> |
| 101 | <typeIndex>12</typeIndex> |
| 102 | <typeString>CHECK_TRAFFIC</typeString> |
| 103 | <CLI>check-traffic</CLI> |
| 104 | <CLIParamNum>0</CLIParamNum> |
| 105 | <rerunInterval>5</rerunInterval> |
| 106 | <maxRerunNum>5</maxRerunNum> |
| 107 | <pingWait>1</pingWait> |
| 108 | <pingTimeout>10</pingTimeout> |
| 109 | </TrafficCheck> |
| 110 | |
| 111 | <TopoCheck> |
| 112 | <status>on</status> |
| 113 | <typeIndex>13</typeIndex> |
| 114 | <typeString>CHECK_TOPO</typeString> |
| 115 | <CLI>check-topo</CLI> |
| 116 | <CLIParamNum>0</CLIParamNum> |
| 117 | <rerunInterval>5</rerunInterval> |
| 118 | <maxRerunNum>5</maxRerunNum> |
| 119 | </TopoCheck> |
| 120 | |
| 121 | <ONOSCheck> |
| 122 | <status>on</status> |
| 123 | <typeIndex>14</typeIndex> |
| 124 | <typeString>CHECK_ONOS</typeString> |
| 125 | <CLI>check-onos</CLI> |
| 126 | <CLIParamNum>0</CLIParamNum> |
| 127 | <rerunInterval>5</rerunInterval> |
| 128 | <maxRerunNum>5</maxRerunNum> |
| 129 | </ONOSCheck> |
| 130 | |
| 131 | <LinkDown> |
| 132 | <status>on</status> |
| 133 | <typeIndex>20</typeIndex> |
| 134 | <typeString>NETWORK_LINK_DOWN</typeString> |
| 135 | <CLI>link-down</CLI> |
| 136 | <CLIParamNum>2</CLIParamNum> |
| 137 | </LinkDown> |
| 138 | |
| 139 | <LinkUp> |
| 140 | <status>on</status> |
| 141 | <typeIndex>21</typeIndex> |
| 142 | <typeString>NETWORK_LINK_UP</typeString> |
| 143 | <CLI>link-up</CLI> |
| 144 | <CLIParamNum>2</CLIParamNum> |
| 145 | </LinkUp> |
| 146 | |
| 147 | <DeviceDown> |
| 148 | <status>on</status> |
| 149 | <typeIndex>22</typeIndex> |
| 150 | <typeString>NETWORK_DEVICE_DOWN</typeString> |
| 151 | <CLI>device-down</CLI> |
| 152 | <CLIParamNum>1</CLIParamNum> |
| 153 | </DeviceDown> |
| 154 | |
| 155 | <DeviceUp> |
| 156 | <status>on</status> |
| 157 | <typeIndex>23</typeIndex> |
| 158 | <typeString>NETWORK_DEVICE_UP</typeString> |
| 159 | <CLI>device-up</CLI> |
| 160 | <CLIParamNum>1</CLIParamNum> |
| 161 | </DeviceUp> |
| 162 | |
| 163 | <AddHostIntent> |
| 164 | <status>on</status> |
| 165 | <typeIndex>30</typeIndex> |
| 166 | <typeString>APP_INTENT_HOST_ADD</typeString> |
| 167 | <CLI>add-host-intent</CLI> |
| 168 | <CLIParamNum>3</CLIParamNum> |
| 169 | <rerunInterval>5</rerunInterval> |
| 170 | <maxRerunNum>5</maxRerunNum> |
| 171 | </AddHostIntent> |
| 172 | |
| 173 | <DelHostIntent> |
| 174 | <status>on</status> |
| 175 | <typeIndex>31</typeIndex> |
| 176 | <typeString>APP_INTENT_HOST_DEL</typeString> |
| 177 | <CLI>del-host-intent</CLI> |
| 178 | <CLIParamNum>3</CLIParamNum> |
| 179 | <rerunInterval>5</rerunInterval> |
| 180 | <maxRerunNum>5</maxRerunNum> |
| 181 | </DelHostIntent> |
| 182 | |
| 183 | <AddPointIntent> |
| 184 | <status>on</status> |
| 185 | <typeIndex>32</typeIndex> |
| 186 | <typeString>APP_INTENT_POINT_ADD</typeString> |
| 187 | <CLI>add-point-intent</CLI> |
| 188 | <CLIParamNum>3</CLIParamNum> |
| 189 | <rerunInterval>5</rerunInterval> |
| 190 | <maxRerunNum>5</maxRerunNum> |
| 191 | </AddPointIntent> |
| 192 | |
| 193 | <DelPointIntent> |
| 194 | <status>on</status> |
| 195 | <typeIndex>33</typeIndex> |
| 196 | <typeString>APP_INTENT_POINT_DEL</typeString> |
| 197 | <CLI>del-point-intent</CLI> |
| 198 | <CLIParamNum>3</CLIParamNum> |
| 199 | <rerunInterval>5</rerunInterval> |
| 200 | <maxRerunNum>5</maxRerunNum> |
| 201 | </DelPointIntent> |
| 202 | |
| 203 | <ONOSDown> |
| 204 | <status>on</status> |
| 205 | <typeIndex>40</typeIndex> |
| 206 | <typeString>ONOS_ONOS_DOWN</typeString> |
| 207 | <CLI>onos-down</CLI> |
| 208 | <CLIParamNum>1</CLIParamNum> |
| 209 | <rerunInterval>5</rerunInterval> |
| 210 | <maxRerunNum>5</maxRerunNum> |
| 211 | </ONOSDown> |
| 212 | |
| 213 | <ONOSUp> |
| 214 | <status>on</status> |
| 215 | <typeIndex>41</typeIndex> |
| 216 | <typeString>ONOS_ONOS_UP</typeString> |
| 217 | <CLI>onos-up</CLI> |
| 218 | <CLIParamNum>1</CLIParamNum> |
| 219 | <rerunInterval>5</rerunInterval> |
| 220 | <maxRerunNum>5</maxRerunNum> |
| 221 | </ONOSUp> |
| 222 | |
| 223 | <SetCfg> |
| 224 | <status>on</status> |
| 225 | <typeIndex>42</typeIndex> |
| 226 | <typeString>ONOS_SET_CFG</typeString> |
| 227 | <CLI>set-cfg</CLI> |
| 228 | <CLIParamNum>3</CLIParamNum> |
| 229 | <rerunInterval>5</rerunInterval> |
| 230 | <maxRerunNum>5</maxRerunNum> |
| 231 | </SetCfg> |
| 232 | |
| 233 | <SetFlowObj> |
| 234 | <status>on</status> |
| 235 | <typeIndex>43</typeIndex> |
| 236 | <typeString>ONOS_SET_FLOWOBJ</typeString> |
| 237 | <CLI>set-flowobj</CLI> |
| 238 | <CLIParamNum>1</CLIParamNum> |
| 239 | <rerunInterval>5</rerunInterval> |
| 240 | <maxRerunNum>5</maxRerunNum> |
| 241 | </SetFlowObj> |
| 242 | |
| 243 | <BalanceMasters> |
| 244 | <status>on</status> |
| 245 | <typeIndex>44</typeIndex> |
| 246 | <typeString>ONOS_BALANCE_MASTERS</typeString> |
| 247 | <CLI>balance-masters</CLI> |
| 248 | <CLIParamNum>0</CLIParamNum> |
| 249 | <rerunInterval>5</rerunInterval> |
| 250 | <maxRerunNum>5</maxRerunNum> |
| 251 | </BalanceMasters> |
| 252 | |
| 253 | <addAllChecks> |
| 254 | <status>on</status> |
| 255 | <typeIndex>110</typeIndex> |
| 256 | <typeString>CHECK_ALL</typeString> |
| 257 | <CLI>check-all</CLI> |
| 258 | <CLIParamNum>0</CLIParamNum> |
| 259 | </addAllChecks> |
| 260 | |
| 261 | <randomLinkToggle> |
| 262 | <status>on</status> |
| 263 | <typeIndex>120</typeIndex> |
| 264 | <typeString>NETWORK_LINK_RANDOM_TOGGLE</typeString> |
| 265 | <CLI>link-toggle-random</CLI> |
| 266 | <CLIParamNum>1</CLIParamNum> |
| 267 | <sleepBeforeCheck>10</sleepBeforeCheck> |
| 268 | </randomLinkToggle> |
| 269 | |
| 270 | <randomLinkGroupToggle> |
| 271 | <status>on</status> |
| 272 | <typeIndex>121</typeIndex> |
| 273 | <typeString>NETWORK_LINK_GROUP_RANDOM_TOGGLE</typeString> |
| 274 | <CLI>link-group-toggle-random</CLI> |
| 275 | <CLIParamNum>3</CLIParamNum> |
| 276 | <sleepBeforeCheck>10</sleepBeforeCheck> |
| 277 | </randomLinkGroupToggle> |
| 278 | |
| 279 | <randomDeviceToggle> |
| 280 | <status>on</status> |
| 281 | <typeIndex>122</typeIndex> |
| 282 | <typeString>NETWORK_DEVICE_RANDOM_TOGGLE</typeString> |
| 283 | <CLI>device-toggle-random</CLI> |
| 284 | <CLIParamNum>1</CLIParamNum> |
| 285 | <sleepBeforeCheck>10</sleepBeforeCheck> |
| 286 | </randomDeviceToggle> |
| 287 | |
| 288 | <randomDeviceGroupToggle> |
| 289 | <status>on</status> |
| 290 | <typeIndex>123</typeIndex> |
| 291 | <typeString>NETWORK_DEVICE_GROUP_RANDOM_TOGGLE</typeString> |
| 292 | <CLI>device-group-toggle-random</CLI> |
| 293 | <CLIParamNum>3</CLIParamNum> |
| 294 | <sleepBeforeCheck>10</sleepBeforeCheck> |
| 295 | </randomDeviceGroupToggle> |
| 296 | |
| 297 | <installAllHostIntents> |
| 298 | <status>on</status> |
| 299 | <typeIndex>130</typeIndex> |
| 300 | <typeString>APP_INTENT_HOST_ADD_ALL</typeString> |
| 301 | <CLI>add-all-host-intents</CLI> |
| 302 | <CLIParamNum>0</CLIParamNum> |
| 303 | <sleepBeforeCheck>10</sleepBeforeCheck> |
| 304 | </installAllHostIntents> |
| 305 | |
| 306 | <removeAllHostIntents> |
| 307 | <status>on</status> |
| 308 | <typeIndex>131</typeIndex> |
| 309 | <typeString>APP_INTENT_HOST_DEL_ALL</typeString> |
| 310 | <CLI>del-all-host-intents</CLI> |
| 311 | <CLIParamNum>0</CLIParamNum> |
| 312 | <sleepBeforeCheck>5</sleepBeforeCheck> |
| 313 | </removeAllHostIntents> |
| 314 | |
| 315 | <installAllPointIntents> |
| 316 | <status>on</status> |
| 317 | <typeIndex>132</typeIndex> |
| 318 | <typeString>APP_INTENT_POINT_ADD_ALL</typeString> |
| 319 | <CLI>add-all-point-intents</CLI> |
| 320 | <CLIParamNum>0</CLIParamNum> |
| 321 | <sleepBeforeCheck>10</sleepBeforeCheck> |
| 322 | </installAllPointIntents> |
| 323 | |
| 324 | <removeAllPointIntents> |
| 325 | <status>on</status> |
| 326 | <typeIndex>133</typeIndex> |
| 327 | <typeString>APP_INTENT_POINT_DEL_ALL</typeString> |
| 328 | <CLI>del-all-point-intents</CLI> |
| 329 | <CLIParamNum>0</CLIParamNum> |
| 330 | <sleepBeforeCheck>5</sleepBeforeCheck> |
| 331 | </removeAllPointIntents> |
| 332 | |
| 333 | <randomONOSToggle> |
| 334 | <status>on</status> |
| 335 | <typeIndex>140</typeIndex> |
| 336 | <typeString>ONOS_ONOS_RANDOM_TOGGLE</typeString> |
| 337 | <CLI>onos-toggle-random</CLI> |
| 338 | <CLIParamNum>1</CLIParamNum> |
| 339 | <sleepBeforeCheck>10</sleepBeforeCheck> |
| 340 | </randomONOSToggle> |
| 341 | </EVENT> |
| 342 | |
| 343 | <SCHEDULER> |
| 344 | <pendingEventsCapacity>1</pendingEventsCapacity> |
| 345 | <runningEventsCapacity>10</runningEventsCapacity> |
| 346 | <scheduleLoopSleep>0.1</scheduleLoopSleep> |
| 347 | </SCHEDULER> |
| 348 | |
| 349 | <GENERATOR> |
| 350 | <listenerPort>6000</listenerPort> |
| 351 | <insertEventRetryInterval>1</insertEventRetryInterval> |
| 352 | </GENERATOR> |
| 353 | |
| 354 | <TOPO> |
| 355 | <topo0> |
| 356 | <fileName>topoTripleIpv6.py</fileName> |
| 357 | </topo0> |
| 358 | |
| 359 | <topo1> |
| 360 | <fileName>topoAttIpv6.py</fileName> |
| 361 | </topo1> |
| 362 | |
| 363 | <topo2> |
| 364 | <fileName>topoChordalIpv6.py</fileName> |
| 365 | </topo2> |
| 366 | |
| 367 | <topo3> |
| 368 | <fileName>topoSpineIpv6.py</fileName> |
| 369 | </topo3> |
| 370 | |
| 371 | <topo4> |
| 372 | <fileName>topoRingIpv6.py</fileName> |
| 373 | </topo4> |
| 374 | </TOPO> |
| 375 | |
| 376 | <CASE20> |
| 377 | <linkToggleNum>5</linkToggleNum> |
| 378 | <linkDownUpInterval>1</linkDownUpInterval> |
| 379 | </CASE20> |
| 380 | |
| 381 | <CASE21> |
| 382 | <linkGroupSize>5</linkGroupSize> |
| 383 | <linkDownDownInterval>1</linkDownDownInterval> |
| 384 | <linkDownUpInterval>1</linkDownUpInterval> |
| 385 | </CASE21> |
| 386 | |
You Wang | 7a27f3a | 2016-07-05 10:12:27 -0700 | [diff] [blame] | 387 | <CASE70> |
| 388 | <sleepSec>2</sleepSec> |
| 389 | <addHostIntentWeight>3</addHostIntentWeight> |
| 390 | <addPointIntentWeight>3</addPointIntentWeight> |
| 391 | <linkDownWeight>3</linkDownWeight> |
| 392 | <deviceDownWeight>2</deviceDownWeight> |
| 393 | </CASE70> |
| 394 | |
You Wang | 5216320 | 2016-07-14 16:37:15 -0700 | [diff] [blame] | 395 | <CASE80> |
| 396 | <filePath>/home/admin/log-for-replay</filePath> |
| 397 | <sleepTime>0.1</sleepTime> |
| 398 | <skipChecks>on</skipChecks> |
| 399 | </CASE80> |
| 400 | |
You Wang | db927a5 | 2016-02-26 11:03:28 -0800 | [diff] [blame] | 401 | <CASE90> |
| 402 | <sleepSec>60</sleepSec> |
| 403 | </CASE90> |
| 404 | </PARAMS> |