blob: b45d70f38d9963cf733312a7ea9b854220feeea4 [file] [log] [blame]
You Wangdb927a52016-02-26 11:03:28 -08001<PARAMS>
2 # 0. Initialize CHOTestMonkey
You Wang7d14d642019-01-23 15:10:08 -08003 # 1. Set IPv6 configure
4 # 5. Load topology and balances all switches
5 # 6. Collect and store device and link data from ONOS
6 # 7. Collect and store host data from ONOS
You Wangdb927a52016-02-26 11:03:28 -08007 # 10. Run all enabled checks
8 # 20. Bring down/up links and check topology and ping
9 # 21. Bring down/up a group of links and check topology and ping
10 # 30. Install host intents and check intent states and ping
11 # 31. Uninstall host intents and check intent states
12 # 32. Install point intents and check intent states and ping
13 # 33. Uninstall point intents and check intent states
14 # 40. Randomly bring down one ONOS node
15 # 41. Randomly bring up one ONOS node that is down
16 # 50. Set FlowObjective to True
17 # 51. Set FlowObjective to False
18 # 60. Rebalance devices across controllers
You Wang52163202016-07-14 16:37:15 -070019 # 70. Run randomly generated events
20 # 80. Replay events from log file
You Wangdb927a52016-02-26 11:03:28 -080021 # 90. Sleep for some time
You Wang52163202016-07-14 16:37:15 -070022 # 100. Do nothing
You Wangdb927a52016-02-26 11:03:28 -080023 # 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
You Wang7d14d642019-01-23 15:10:08 -080024
You Wangdb927a52016-02-26 11:03:28 -080025 <testcases>
You Wang7d14d642019-01-23 15:10:08 -080026 0,1,5,6,7,70
You Wangdb927a52016-02-26 11:03:28 -080027 </testcases>
You Wang7d14d642019-01-23 15:10:08 -080028
Devin Lim58046fa2017-07-05 16:55:00 -070029 <GIT>
30 <pull>False</pull>
31 <branch>master</branch>
32 </GIT>
You Wang7d14d642019-01-23 15:10:08 -080033
You Wangdb927a52016-02-26 11:03:28 -080034 <TEST>
35 <topo>1</topo>
36 <IPv6>on</IPv6>
You Wangb1665b52019-02-01 15:49:48 -080037 <restartCluster>True</restartCluster>
You Wang7d14d642019-01-23 15:10:08 -080038 <dataPlaneConnectivity>False</dataPlaneConnectivity>
You Wangdb927a52016-02-26 11:03:28 -080039 <numCtrl>3</numCtrl>
You Wang7a27f3a2016-07-05 10:12:27 -070040 <pauseTest>off</pauseTest>
You Wangdb927a52016-02-26 11:03:28 -080041 <caseSleep>0</caseSleep>
You Wang7d14d642019-01-23 15:10:08 -080042 <ipv6Regex>1000::[0-9]+</ipv6Regex>
43 <ipv4Regex>10\.1\.[0-9]+\.[0-9]+</ipv4Regex>
You Wangdb927a52016-02-26 11:03:28 -080044 <karafCliTimeout>7200000</karafCliTimeout>
45 <testDuration>86400</testDuration>
You Wangf6e98a82016-11-14 14:46:49 -080046 <package>on</package>
You Wangdb927a52016-02-26 11:03:28 -080047 </TEST>
You Wang7d14d642019-01-23 15:10:08 -080048
Devin Lim0993e422018-01-12 15:21:27 -080049 <GRAPH>
50 <nodeCluster>CHO</nodeCluster>
51 <builds>20</builds>
52 </GRAPH>
You Wang7d14d642019-01-23 15:10:08 -080053
Devin Limc5c9e112017-08-17 15:16:05 -070054 <ENV>
55 <cellName>choCell</cellName>
56 <cellApps>drivers,openflow,proxyarp,events</cellApps>
57 </ENV>
You Wang7d14d642019-01-23 15:10:08 -080058
You Wangdb927a52016-02-26 11:03:28 -080059 <EVENT>
60 <Event>
61 <status>on</status>
62 <typeIndex>0</typeIndex>
63 <typeString>NULL</typeString>
64 <CLI>null</CLI>
65 <CLIParamNum>0</CLIParamNum>
66 <rerunInterval>5</rerunInterval>
67 <maxRerunNum>5</maxRerunNum>
68 </Event>
69
70 <TestPause>
71 <status>on</status>
72 <typeIndex>1</typeIndex>
73 <typeString>TEST_PAUSE</typeString>
74 <CLI>pause-test</CLI>
75 <CLIParamNum>0</CLIParamNum>
76 </TestPause>
77
78 <TestResume>
79 <status>on</status>
80 <typeIndex>2</typeIndex>
81 <typeString>TEST_RESUME</typeString>
82 <CLI>resume-test</CLI>
83 <CLIParamNum>0</CLIParamNum>
84 </TestResume>
85
86 <TestSleep>
87 <status>on</status>
88 <typeIndex>3</typeIndex>
89 <typeString>TEST_SLEEP</typeString>
90 <CLI>sleep</CLI>
91 <CLIParamNum>1</CLIParamNum>
92 </TestSleep>
93
94 <IntentCheck>
95 <status>on</status>
96 <typeIndex>10</typeIndex>
97 <typeString>CHECK_INTENT</typeString>
98 <CLI>check-intent</CLI>
99 <CLIParamNum>0</CLIParamNum>
100 <rerunInterval>5</rerunInterval>
101 <maxRerunNum>5</maxRerunNum>
102 </IntentCheck>
103
You Wang58aa11e2016-05-17 10:35:44 -0700104 <FlowCheck>
105 <status>on</status>
106 <typeIndex>11</typeIndex>
107 <typeString>CHECK_FLOW</typeString>
108 <CLI>check-flow</CLI>
109 <CLIParamNum>0</CLIParamNum>
110 <rerunInterval>5</rerunInterval>
111 <maxRerunNum>5</maxRerunNum>
You Wang3fa69e82016-11-14 14:51:43 -0800112 <coreFlowNum>3</coreFlowNum>
113 <coreFlowNum6>5</coreFlowNum6>
You Wang58aa11e2016-05-17 10:35:44 -0700114 </FlowCheck>
115
You Wangdb927a52016-02-26 11:03:28 -0800116 <TrafficCheck>
117 <status>on</status>
118 <typeIndex>12</typeIndex>
119 <typeString>CHECK_TRAFFIC</typeString>
120 <CLI>check-traffic</CLI>
121 <CLIParamNum>0</CLIParamNum>
122 <rerunInterval>5</rerunInterval>
123 <maxRerunNum>5</maxRerunNum>
124 <pingWait>1</pingWait>
125 <pingTimeout>10</pingTimeout>
126 </TrafficCheck>
127
128 <TopoCheck>
129 <status>on</status>
130 <typeIndex>13</typeIndex>
131 <typeString>CHECK_TOPO</typeString>
132 <CLI>check-topo</CLI>
133 <CLIParamNum>0</CLIParamNum>
134 <rerunInterval>5</rerunInterval>
135 <maxRerunNum>5</maxRerunNum>
136 </TopoCheck>
137
138 <ONOSCheck>
139 <status>on</status>
140 <typeIndex>14</typeIndex>
141 <typeString>CHECK_ONOS</typeString>
142 <CLI>check-onos</CLI>
143 <CLIParamNum>0</CLIParamNum>
144 <rerunInterval>5</rerunInterval>
145 <maxRerunNum>5</maxRerunNum>
146 </ONOSCheck>
147
Devin Limf0822182017-09-12 14:52:57 -0700148 <RaftLogSizeCheck>
149 <status>on</status>
150 <typeIndex>15</typeIndex>
151 <typeString>CHECK_RAFT_LOG_SIZE</typeString>
152 <CLI>check-raft-size</CLI>
153 <CLIParamNum>0</CLIParamNum>
154 </RaftLogSizeCheck>
155
You Wangdb927a52016-02-26 11:03:28 -0800156 <LinkDown>
157 <status>on</status>
158 <typeIndex>20</typeIndex>
159 <typeString>NETWORK_LINK_DOWN</typeString>
160 <CLI>link-down</CLI>
161 <CLIParamNum>2</CLIParamNum>
162 </LinkDown>
163
164 <LinkUp>
165 <status>on</status>
166 <typeIndex>21</typeIndex>
167 <typeString>NETWORK_LINK_UP</typeString>
168 <CLI>link-up</CLI>
169 <CLIParamNum>2</CLIParamNum>
170 </LinkUp>
171
172 <DeviceDown>
173 <status>on</status>
174 <typeIndex>22</typeIndex>
175 <typeString>NETWORK_DEVICE_DOWN</typeString>
176 <CLI>device-down</CLI>
177 <CLIParamNum>1</CLIParamNum>
178 </DeviceDown>
179
180 <DeviceUp>
181 <status>on</status>
182 <typeIndex>23</typeIndex>
183 <typeString>NETWORK_DEVICE_UP</typeString>
184 <CLI>device-up</CLI>
185 <CLIParamNum>1</CLIParamNum>
186 </DeviceUp>
187
188 <AddHostIntent>
189 <status>on</status>
190 <typeIndex>30</typeIndex>
191 <typeString>APP_INTENT_HOST_ADD</typeString>
192 <CLI>add-host-intent</CLI>
193 <CLIParamNum>3</CLIParamNum>
194 <rerunInterval>5</rerunInterval>
195 <maxRerunNum>5</maxRerunNum>
196 </AddHostIntent>
197
198 <DelHostIntent>
199 <status>on</status>
200 <typeIndex>31</typeIndex>
201 <typeString>APP_INTENT_HOST_DEL</typeString>
202 <CLI>del-host-intent</CLI>
203 <CLIParamNum>3</CLIParamNum>
204 <rerunInterval>5</rerunInterval>
205 <maxRerunNum>5</maxRerunNum>
206 </DelHostIntent>
207
208 <AddPointIntent>
209 <status>on</status>
210 <typeIndex>32</typeIndex>
211 <typeString>APP_INTENT_POINT_ADD</typeString>
212 <CLI>add-point-intent</CLI>
213 <CLIParamNum>3</CLIParamNum>
214 <rerunInterval>5</rerunInterval>
215 <maxRerunNum>5</maxRerunNum>
216 </AddPointIntent>
217
218 <DelPointIntent>
219 <status>on</status>
220 <typeIndex>33</typeIndex>
221 <typeString>APP_INTENT_POINT_DEL</typeString>
222 <CLI>del-point-intent</CLI>
223 <CLIParamNum>3</CLIParamNum>
224 <rerunInterval>5</rerunInterval>
225 <maxRerunNum>5</maxRerunNum>
226 </DelPointIntent>
227
228 <ONOSDown>
229 <status>on</status>
230 <typeIndex>40</typeIndex>
231 <typeString>ONOS_ONOS_DOWN</typeString>
232 <CLI>onos-down</CLI>
233 <CLIParamNum>1</CLIParamNum>
234 <rerunInterval>5</rerunInterval>
235 <maxRerunNum>5</maxRerunNum>
236 </ONOSDown>
237
238 <ONOSUp>
239 <status>on</status>
240 <typeIndex>41</typeIndex>
241 <typeString>ONOS_ONOS_UP</typeString>
242 <CLI>onos-up</CLI>
243 <CLIParamNum>1</CLIParamNum>
244 <rerunInterval>5</rerunInterval>
245 <maxRerunNum>5</maxRerunNum>
246 </ONOSUp>
247
248 <SetCfg>
249 <status>on</status>
250 <typeIndex>42</typeIndex>
251 <typeString>ONOS_SET_CFG</typeString>
252 <CLI>set-cfg</CLI>
253 <CLIParamNum>3</CLIParamNum>
254 <rerunInterval>5</rerunInterval>
255 <maxRerunNum>5</maxRerunNum>
256 </SetCfg>
257
258 <SetFlowObj>
259 <status>on</status>
260 <typeIndex>43</typeIndex>
261 <typeString>ONOS_SET_FLOWOBJ</typeString>
262 <CLI>set-flowobj</CLI>
263 <CLIParamNum>1</CLIParamNum>
264 <rerunInterval>5</rerunInterval>
265 <maxRerunNum>5</maxRerunNum>
266 </SetFlowObj>
267
268 <BalanceMasters>
269 <status>on</status>
270 <typeIndex>44</typeIndex>
271 <typeString>ONOS_BALANCE_MASTERS</typeString>
272 <CLI>balance-masters</CLI>
273 <CLIParamNum>0</CLIParamNum>
274 <rerunInterval>5</rerunInterval>
275 <maxRerunNum>5</maxRerunNum>
276 </BalanceMasters>
277
You Wang106d0fa2017-05-15 17:22:15 -0700278 <SetFlowObjCompiler>
279 <status>on</status>
280 <typeIndex>45</typeIndex>
281 <typeString>ONOS_SET_FLOWOBJ_COMPILER</typeString>
282 <CLI>set-flowobj-compiler</CLI>
283 <CLIParamNum>1</CLIParamNum>
284 <rerunInterval>5</rerunInterval>
285 <maxRerunNum>5</maxRerunNum>
286 </SetFlowObjCompiler>
287
You Wangdb927a52016-02-26 11:03:28 -0800288 <addAllChecks>
289 <status>on</status>
290 <typeIndex>110</typeIndex>
291 <typeString>CHECK_ALL</typeString>
292 <CLI>check-all</CLI>
293 <CLIParamNum>0</CLIParamNum>
294 </addAllChecks>
295
296 <randomLinkToggle>
297 <status>on</status>
298 <typeIndex>120</typeIndex>
299 <typeString>NETWORK_LINK_RANDOM_TOGGLE</typeString>
300 <CLI>link-toggle-random</CLI>
301 <CLIParamNum>1</CLIParamNum>
302 <sleepBeforeCheck>10</sleepBeforeCheck>
303 </randomLinkToggle>
304
305 <randomLinkGroupToggle>
306 <status>on</status>
307 <typeIndex>121</typeIndex>
308 <typeString>NETWORK_LINK_GROUP_RANDOM_TOGGLE</typeString>
309 <CLI>link-group-toggle-random</CLI>
310 <CLIParamNum>3</CLIParamNum>
311 <sleepBeforeCheck>10</sleepBeforeCheck>
312 </randomLinkGroupToggle>
313
314 <randomDeviceToggle>
315 <status>on</status>
316 <typeIndex>122</typeIndex>
317 <typeString>NETWORK_DEVICE_RANDOM_TOGGLE</typeString>
318 <CLI>device-toggle-random</CLI>
319 <CLIParamNum>1</CLIParamNum>
320 <sleepBeforeCheck>10</sleepBeforeCheck>
321 </randomDeviceToggle>
322
323 <randomDeviceGroupToggle>
324 <status>on</status>
325 <typeIndex>123</typeIndex>
326 <typeString>NETWORK_DEVICE_GROUP_RANDOM_TOGGLE</typeString>
327 <CLI>device-group-toggle-random</CLI>
328 <CLIParamNum>3</CLIParamNum>
329 <sleepBeforeCheck>10</sleepBeforeCheck>
330 </randomDeviceGroupToggle>
331
332 <installAllHostIntents>
333 <status>on</status>
334 <typeIndex>130</typeIndex>
335 <typeString>APP_INTENT_HOST_ADD_ALL</typeString>
336 <CLI>add-all-host-intents</CLI>
337 <CLIParamNum>0</CLIParamNum>
338 <sleepBeforeCheck>10</sleepBeforeCheck>
339 </installAllHostIntents>
340
341 <removeAllHostIntents>
342 <status>on</status>
343 <typeIndex>131</typeIndex>
344 <typeString>APP_INTENT_HOST_DEL_ALL</typeString>
345 <CLI>del-all-host-intents</CLI>
346 <CLIParamNum>0</CLIParamNum>
347 <sleepBeforeCheck>5</sleepBeforeCheck>
348 </removeAllHostIntents>
349
350 <installAllPointIntents>
351 <status>on</status>
352 <typeIndex>132</typeIndex>
353 <typeString>APP_INTENT_POINT_ADD_ALL</typeString>
354 <CLI>add-all-point-intents</CLI>
355 <CLIParamNum>0</CLIParamNum>
356 <sleepBeforeCheck>10</sleepBeforeCheck>
357 </installAllPointIntents>
358
359 <removeAllPointIntents>
360 <status>on</status>
361 <typeIndex>133</typeIndex>
362 <typeString>APP_INTENT_POINT_DEL_ALL</typeString>
363 <CLI>del-all-point-intents</CLI>
364 <CLIParamNum>0</CLIParamNum>
365 <sleepBeforeCheck>5</sleepBeforeCheck>
366 </removeAllPointIntents>
367
368 <randomONOSToggle>
369 <status>on</status>
370 <typeIndex>140</typeIndex>
371 <typeString>ONOS_ONOS_RANDOM_TOGGLE</typeString>
372 <CLI>onos-toggle-random</CLI>
373 <CLIParamNum>1</CLIParamNum>
374 <sleepBeforeCheck>10</sleepBeforeCheck>
375 </randomONOSToggle>
376 </EVENT>
377
378 <SCHEDULER>
379 <pendingEventsCapacity>1</pendingEventsCapacity>
380 <runningEventsCapacity>10</runningEventsCapacity>
381 <scheduleLoopSleep>0.1</scheduleLoopSleep>
382 </SCHEDULER>
383
384 <GENERATOR>
385 <listenerPort>6000</listenerPort>
386 <insertEventRetryInterval>1</insertEventRetryInterval>
387 </GENERATOR>
388
389 <TOPO>
390 <topo0>
391 <fileName>topoTripleIpv6.py</fileName>
392 </topo0>
393
394 <topo1>
395 <fileName>topoAttIpv6.py</fileName>
396 </topo1>
397
398 <topo2>
399 <fileName>topoChordalIpv6.py</fileName>
400 </topo2>
401
402 <topo3>
403 <fileName>topoSpineIpv6.py</fileName>
404 </topo3>
405
406 <topo4>
407 <fileName>topoRingIpv6.py</fileName>
408 </topo4>
You Wang7d14d642019-01-23 15:10:08 -0800409 <mininetArgs></mininetArgs>
410 <loadTopoSleep>5</loadTopoSleep>
You Wangb1665b52019-02-01 15:49:48 -0800411 <excludeNodes></excludeNodes>
You Wangdb927a52016-02-26 11:03:28 -0800412 </TOPO>
413
You Wang7d14d642019-01-23 15:10:08 -0800414 <CASE1>
415 <setIPv6CfgSleep>5</setIPv6CfgSleep>
416 </CASE1>
417
You Wangdb927a52016-02-26 11:03:28 -0800418 <CASE20>
419 <linkToggleNum>5</linkToggleNum>
420 <linkDownUpInterval>1</linkDownUpInterval>
421 </CASE20>
422
423 <CASE21>
424 <linkGroupSize>5</linkGroupSize>
425 <linkDownDownInterval>1</linkDownDownInterval>
426 <linkDownUpInterval>1</linkDownUpInterval>
427 </CASE21>
428
You Wange8c2b042019-01-22 15:07:25 -0800429 <CASE40>
430 <sleepSec>10</sleepSec>
431 </CASE40>
432
433 <CASE41>
434 <sleepSec>10</sleepSec>
435 </CASE41>
436
You Wang7a27f3a2016-07-05 10:12:27 -0700437 <CASE70>
438 <sleepSec>2</sleepSec>
You Wangb1665b52019-02-01 15:49:48 -0800439 <eventWeight>
440 <add-host-intent>3</add-host-intent>
441 <add-point-intent>3</add-point-intent>
442 <link-down>3</link-down>
443 <device-down>2</device-down>
444 <onos-down>1</onos-down>
445 <toggle-flowobj>0</toggle-flowobj>
446 </eventWeight>
447 <skipSwitches></skipSwitches>
448 <skipLinks></skipLinks>
You Wang7a27f3a2016-07-05 10:12:27 -0700449 </CASE70>
450
You Wang52163202016-07-14 16:37:15 -0700451 <CASE80>
You Wang7d14d642019-01-23 15:10:08 -0800452 <filePath>/home/sdn/log-for-replay</filePath>
You Wang52163202016-07-14 16:37:15 -0700453 <sleepTime>0.1</sleepTime>
454 <skipChecks>on</skipChecks>
455 </CASE80>
456
You Wangdb927a52016-02-26 11:03:28 -0800457 <CASE90>
458 <sleepSec>60</sleepSec>
459 </CASE90>
460</PARAMS>