blob: 1536ca38112719a309c76fc1a0f0190a8ae80be2 [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
You Wang57d2f462019-03-06 16:24:35 -080049 <LOGGING>
50 <DEBUG></DEBUG>
51 <TRACE></TRACE>
52 </LOGGING>
53
Devin Lim0993e422018-01-12 15:21:27 -080054 <GRAPH>
55 <nodeCluster>CHO</nodeCluster>
56 <builds>20</builds>
57 </GRAPH>
You Wang7d14d642019-01-23 15:10:08 -080058
Devin Limc5c9e112017-08-17 15:16:05 -070059 <ENV>
60 <cellName>choCell</cellName>
61 <cellApps>drivers,openflow,proxyarp,events</cellApps>
62 </ENV>
You Wang7d14d642019-01-23 15:10:08 -080063
You Wangdb927a52016-02-26 11:03:28 -080064 <EVENT>
65 <Event>
66 <status>on</status>
67 <typeIndex>0</typeIndex>
68 <typeString>NULL</typeString>
69 <CLI>null</CLI>
70 <CLIParamNum>0</CLIParamNum>
71 <rerunInterval>5</rerunInterval>
72 <maxRerunNum>5</maxRerunNum>
73 </Event>
74
75 <TestPause>
76 <status>on</status>
77 <typeIndex>1</typeIndex>
78 <typeString>TEST_PAUSE</typeString>
79 <CLI>pause-test</CLI>
80 <CLIParamNum>0</CLIParamNum>
81 </TestPause>
82
83 <TestResume>
84 <status>on</status>
85 <typeIndex>2</typeIndex>
86 <typeString>TEST_RESUME</typeString>
87 <CLI>resume-test</CLI>
88 <CLIParamNum>0</CLIParamNum>
89 </TestResume>
90
91 <TestSleep>
92 <status>on</status>
93 <typeIndex>3</typeIndex>
94 <typeString>TEST_SLEEP</typeString>
95 <CLI>sleep</CLI>
96 <CLIParamNum>1</CLIParamNum>
97 </TestSleep>
98
99 <IntentCheck>
100 <status>on</status>
101 <typeIndex>10</typeIndex>
102 <typeString>CHECK_INTENT</typeString>
103 <CLI>check-intent</CLI>
104 <CLIParamNum>0</CLIParamNum>
105 <rerunInterval>5</rerunInterval>
106 <maxRerunNum>5</maxRerunNum>
107 </IntentCheck>
108
You Wang58aa11e2016-05-17 10:35:44 -0700109 <FlowCheck>
110 <status>on</status>
111 <typeIndex>11</typeIndex>
112 <typeString>CHECK_FLOW</typeString>
113 <CLI>check-flow</CLI>
114 <CLIParamNum>0</CLIParamNum>
115 <rerunInterval>5</rerunInterval>
116 <maxRerunNum>5</maxRerunNum>
You Wang3fa69e82016-11-14 14:51:43 -0800117 <coreFlowNum>3</coreFlowNum>
118 <coreFlowNum6>5</coreFlowNum6>
You Wang58aa11e2016-05-17 10:35:44 -0700119 </FlowCheck>
120
You Wangdb927a52016-02-26 11:03:28 -0800121 <TrafficCheck>
122 <status>on</status>
123 <typeIndex>12</typeIndex>
124 <typeString>CHECK_TRAFFIC</typeString>
125 <CLI>check-traffic</CLI>
126 <CLIParamNum>0</CLIParamNum>
127 <rerunInterval>5</rerunInterval>
128 <maxRerunNum>5</maxRerunNum>
129 <pingWait>1</pingWait>
130 <pingTimeout>10</pingTimeout>
131 </TrafficCheck>
132
133 <TopoCheck>
134 <status>on</status>
135 <typeIndex>13</typeIndex>
136 <typeString>CHECK_TOPO</typeString>
137 <CLI>check-topo</CLI>
138 <CLIParamNum>0</CLIParamNum>
139 <rerunInterval>5</rerunInterval>
140 <maxRerunNum>5</maxRerunNum>
141 </TopoCheck>
142
143 <ONOSCheck>
144 <status>on</status>
145 <typeIndex>14</typeIndex>
146 <typeString>CHECK_ONOS</typeString>
147 <CLI>check-onos</CLI>
148 <CLIParamNum>0</CLIParamNum>
149 <rerunInterval>5</rerunInterval>
150 <maxRerunNum>5</maxRerunNum>
151 </ONOSCheck>
152
Devin Limf0822182017-09-12 14:52:57 -0700153 <RaftLogSizeCheck>
154 <status>on</status>
155 <typeIndex>15</typeIndex>
156 <typeString>CHECK_RAFT_LOG_SIZE</typeString>
157 <CLI>check-raft-size</CLI>
158 <CLIParamNum>0</CLIParamNum>
159 </RaftLogSizeCheck>
160
You Wangdb927a52016-02-26 11:03:28 -0800161 <LinkDown>
162 <status>on</status>
163 <typeIndex>20</typeIndex>
164 <typeString>NETWORK_LINK_DOWN</typeString>
165 <CLI>link-down</CLI>
166 <CLIParamNum>2</CLIParamNum>
167 </LinkDown>
168
169 <LinkUp>
170 <status>on</status>
171 <typeIndex>21</typeIndex>
172 <typeString>NETWORK_LINK_UP</typeString>
173 <CLI>link-up</CLI>
174 <CLIParamNum>2</CLIParamNum>
175 </LinkUp>
176
177 <DeviceDown>
178 <status>on</status>
179 <typeIndex>22</typeIndex>
180 <typeString>NETWORK_DEVICE_DOWN</typeString>
181 <CLI>device-down</CLI>
182 <CLIParamNum>1</CLIParamNum>
183 </DeviceDown>
184
185 <DeviceUp>
186 <status>on</status>
187 <typeIndex>23</typeIndex>
188 <typeString>NETWORK_DEVICE_UP</typeString>
189 <CLI>device-up</CLI>
190 <CLIParamNum>1</CLIParamNum>
191 </DeviceUp>
192
193 <AddHostIntent>
194 <status>on</status>
195 <typeIndex>30</typeIndex>
196 <typeString>APP_INTENT_HOST_ADD</typeString>
197 <CLI>add-host-intent</CLI>
198 <CLIParamNum>3</CLIParamNum>
199 <rerunInterval>5</rerunInterval>
200 <maxRerunNum>5</maxRerunNum>
201 </AddHostIntent>
202
203 <DelHostIntent>
204 <status>on</status>
205 <typeIndex>31</typeIndex>
206 <typeString>APP_INTENT_HOST_DEL</typeString>
207 <CLI>del-host-intent</CLI>
208 <CLIParamNum>3</CLIParamNum>
209 <rerunInterval>5</rerunInterval>
210 <maxRerunNum>5</maxRerunNum>
211 </DelHostIntent>
212
213 <AddPointIntent>
214 <status>on</status>
215 <typeIndex>32</typeIndex>
216 <typeString>APP_INTENT_POINT_ADD</typeString>
217 <CLI>add-point-intent</CLI>
218 <CLIParamNum>3</CLIParamNum>
219 <rerunInterval>5</rerunInterval>
220 <maxRerunNum>5</maxRerunNum>
221 </AddPointIntent>
222
223 <DelPointIntent>
224 <status>on</status>
225 <typeIndex>33</typeIndex>
226 <typeString>APP_INTENT_POINT_DEL</typeString>
227 <CLI>del-point-intent</CLI>
228 <CLIParamNum>3</CLIParamNum>
229 <rerunInterval>5</rerunInterval>
230 <maxRerunNum>5</maxRerunNum>
231 </DelPointIntent>
232
233 <ONOSDown>
234 <status>on</status>
235 <typeIndex>40</typeIndex>
236 <typeString>ONOS_ONOS_DOWN</typeString>
237 <CLI>onos-down</CLI>
238 <CLIParamNum>1</CLIParamNum>
239 <rerunInterval>5</rerunInterval>
240 <maxRerunNum>5</maxRerunNum>
241 </ONOSDown>
242
243 <ONOSUp>
244 <status>on</status>
245 <typeIndex>41</typeIndex>
246 <typeString>ONOS_ONOS_UP</typeString>
247 <CLI>onos-up</CLI>
248 <CLIParamNum>1</CLIParamNum>
249 <rerunInterval>5</rerunInterval>
250 <maxRerunNum>5</maxRerunNum>
251 </ONOSUp>
252
253 <SetCfg>
254 <status>on</status>
255 <typeIndex>42</typeIndex>
256 <typeString>ONOS_SET_CFG</typeString>
257 <CLI>set-cfg</CLI>
258 <CLIParamNum>3</CLIParamNum>
259 <rerunInterval>5</rerunInterval>
260 <maxRerunNum>5</maxRerunNum>
261 </SetCfg>
262
263 <SetFlowObj>
264 <status>on</status>
265 <typeIndex>43</typeIndex>
266 <typeString>ONOS_SET_FLOWOBJ</typeString>
267 <CLI>set-flowobj</CLI>
268 <CLIParamNum>1</CLIParamNum>
269 <rerunInterval>5</rerunInterval>
270 <maxRerunNum>5</maxRerunNum>
271 </SetFlowObj>
272
273 <BalanceMasters>
274 <status>on</status>
275 <typeIndex>44</typeIndex>
276 <typeString>ONOS_BALANCE_MASTERS</typeString>
277 <CLI>balance-masters</CLI>
278 <CLIParamNum>0</CLIParamNum>
279 <rerunInterval>5</rerunInterval>
280 <maxRerunNum>5</maxRerunNum>
281 </BalanceMasters>
282
You Wang106d0fa2017-05-15 17:22:15 -0700283 <SetFlowObjCompiler>
284 <status>on</status>
285 <typeIndex>45</typeIndex>
286 <typeString>ONOS_SET_FLOWOBJ_COMPILER</typeString>
287 <CLI>set-flowobj-compiler</CLI>
288 <CLIParamNum>1</CLIParamNum>
289 <rerunInterval>5</rerunInterval>
290 <maxRerunNum>5</maxRerunNum>
291 </SetFlowObjCompiler>
292
You Wangdb927a52016-02-26 11:03:28 -0800293 <addAllChecks>
294 <status>on</status>
295 <typeIndex>110</typeIndex>
296 <typeString>CHECK_ALL</typeString>
297 <CLI>check-all</CLI>
298 <CLIParamNum>0</CLIParamNum>
299 </addAllChecks>
300
301 <randomLinkToggle>
302 <status>on</status>
303 <typeIndex>120</typeIndex>
304 <typeString>NETWORK_LINK_RANDOM_TOGGLE</typeString>
305 <CLI>link-toggle-random</CLI>
306 <CLIParamNum>1</CLIParamNum>
307 <sleepBeforeCheck>10</sleepBeforeCheck>
308 </randomLinkToggle>
309
310 <randomLinkGroupToggle>
311 <status>on</status>
312 <typeIndex>121</typeIndex>
313 <typeString>NETWORK_LINK_GROUP_RANDOM_TOGGLE</typeString>
314 <CLI>link-group-toggle-random</CLI>
315 <CLIParamNum>3</CLIParamNum>
316 <sleepBeforeCheck>10</sleepBeforeCheck>
317 </randomLinkGroupToggle>
318
319 <randomDeviceToggle>
320 <status>on</status>
321 <typeIndex>122</typeIndex>
322 <typeString>NETWORK_DEVICE_RANDOM_TOGGLE</typeString>
323 <CLI>device-toggle-random</CLI>
324 <CLIParamNum>1</CLIParamNum>
325 <sleepBeforeCheck>10</sleepBeforeCheck>
326 </randomDeviceToggle>
327
328 <randomDeviceGroupToggle>
329 <status>on</status>
330 <typeIndex>123</typeIndex>
331 <typeString>NETWORK_DEVICE_GROUP_RANDOM_TOGGLE</typeString>
332 <CLI>device-group-toggle-random</CLI>
333 <CLIParamNum>3</CLIParamNum>
334 <sleepBeforeCheck>10</sleepBeforeCheck>
335 </randomDeviceGroupToggle>
336
337 <installAllHostIntents>
338 <status>on</status>
339 <typeIndex>130</typeIndex>
340 <typeString>APP_INTENT_HOST_ADD_ALL</typeString>
341 <CLI>add-all-host-intents</CLI>
342 <CLIParamNum>0</CLIParamNum>
343 <sleepBeforeCheck>10</sleepBeforeCheck>
344 </installAllHostIntents>
345
346 <removeAllHostIntents>
347 <status>on</status>
348 <typeIndex>131</typeIndex>
349 <typeString>APP_INTENT_HOST_DEL_ALL</typeString>
350 <CLI>del-all-host-intents</CLI>
351 <CLIParamNum>0</CLIParamNum>
352 <sleepBeforeCheck>5</sleepBeforeCheck>
353 </removeAllHostIntents>
354
355 <installAllPointIntents>
356 <status>on</status>
357 <typeIndex>132</typeIndex>
358 <typeString>APP_INTENT_POINT_ADD_ALL</typeString>
359 <CLI>add-all-point-intents</CLI>
360 <CLIParamNum>0</CLIParamNum>
361 <sleepBeforeCheck>10</sleepBeforeCheck>
362 </installAllPointIntents>
363
364 <removeAllPointIntents>
365 <status>on</status>
366 <typeIndex>133</typeIndex>
367 <typeString>APP_INTENT_POINT_DEL_ALL</typeString>
368 <CLI>del-all-point-intents</CLI>
369 <CLIParamNum>0</CLIParamNum>
370 <sleepBeforeCheck>5</sleepBeforeCheck>
371 </removeAllPointIntents>
372
373 <randomONOSToggle>
374 <status>on</status>
375 <typeIndex>140</typeIndex>
376 <typeString>ONOS_ONOS_RANDOM_TOGGLE</typeString>
377 <CLI>onos-toggle-random</CLI>
378 <CLIParamNum>1</CLIParamNum>
379 <sleepBeforeCheck>10</sleepBeforeCheck>
380 </randomONOSToggle>
381 </EVENT>
382
383 <SCHEDULER>
384 <pendingEventsCapacity>1</pendingEventsCapacity>
385 <runningEventsCapacity>10</runningEventsCapacity>
386 <scheduleLoopSleep>0.1</scheduleLoopSleep>
387 </SCHEDULER>
388
389 <GENERATOR>
390 <listenerPort>6000</listenerPort>
391 <insertEventRetryInterval>1</insertEventRetryInterval>
392 </GENERATOR>
393
394 <TOPO>
395 <topo0>
396 <fileName>topoTripleIpv6.py</fileName>
397 </topo0>
398
399 <topo1>
400 <fileName>topoAttIpv6.py</fileName>
401 </topo1>
402
403 <topo2>
404 <fileName>topoChordalIpv6.py</fileName>
405 </topo2>
406
407 <topo3>
408 <fileName>topoSpineIpv6.py</fileName>
409 </topo3>
410
411 <topo4>
412 <fileName>topoRingIpv6.py</fileName>
413 </topo4>
You Wang7d14d642019-01-23 15:10:08 -0800414 <mininetArgs></mininetArgs>
415 <loadTopoSleep>5</loadTopoSleep>
You Wangb1665b52019-02-01 15:49:48 -0800416 <excludeNodes></excludeNodes>
You Wangdb927a52016-02-26 11:03:28 -0800417 </TOPO>
418
You Wang7d14d642019-01-23 15:10:08 -0800419 <CASE1>
420 <setIPv6CfgSleep>5</setIPv6CfgSleep>
421 </CASE1>
422
You Wangdb927a52016-02-26 11:03:28 -0800423 <CASE20>
424 <linkToggleNum>5</linkToggleNum>
425 <linkDownUpInterval>1</linkDownUpInterval>
426 </CASE20>
427
428 <CASE21>
429 <linkGroupSize>5</linkGroupSize>
430 <linkDownDownInterval>1</linkDownDownInterval>
431 <linkDownUpInterval>1</linkDownUpInterval>
432 </CASE21>
433
You Wange8c2b042019-01-22 15:07:25 -0800434 <CASE40>
435 <sleepSec>10</sleepSec>
436 </CASE40>
437
438 <CASE41>
439 <sleepSec>10</sleepSec>
440 </CASE41>
441
You Wang7a27f3a2016-07-05 10:12:27 -0700442 <CASE70>
443 <sleepSec>2</sleepSec>
You Wangb1665b52019-02-01 15:49:48 -0800444 <eventWeight>
445 <add-host-intent>3</add-host-intent>
446 <add-point-intent>3</add-point-intent>
447 <link-down>3</link-down>
448 <device-down>2</device-down>
449 <onos-down>1</onos-down>
450 <toggle-flowobj>0</toggle-flowobj>
451 </eventWeight>
452 <skipSwitches></skipSwitches>
453 <skipLinks></skipLinks>
You Wang7a27f3a2016-07-05 10:12:27 -0700454 </CASE70>
455
You Wang52163202016-07-14 16:37:15 -0700456 <CASE80>
You Wang7d14d642019-01-23 15:10:08 -0800457 <filePath>/home/sdn/log-for-replay</filePath>
You Wang52163202016-07-14 16:37:15 -0700458 <sleepTime>0.1</sleepTime>
459 <skipChecks>on</skipChecks>
460 </CASE80>
461
You Wangdb927a52016-02-26 11:03:28 -0800462 <CASE90>
463 <sleepSec>60</sleepSec>
464 </CASE90>
465</PARAMS>