blob: 00afaf60b8ec8e173b81339239eb25f380f63ac2 [file] [log] [blame]
You Wangdb927a52016-02-26 11:03:28 -08001<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 Wang52163202016-07-14 16:37:15 -070018 # 70. Run randomly generated events
19 # 80. Replay events from log file
You Wangdb927a52016-02-26 11:03:28 -080020 # 90. Sleep for some time
You Wang52163202016-07-14 16:37:15 -070021 # 100. Do nothing
You Wangdb927a52016-02-26 11:03:28 -080022 # 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 Wangc848af12016-07-14 09:53:58 -070024 0,1,2,3,70
You Wangdb927a52016-02-26 11:03:28 -080025 </testcases>
Devin Lim58046fa2017-07-05 16:55:00 -070026 <GIT>
27 <pull>False</pull>
28 <branch>master</branch>
29 </GIT>
You Wangdb927a52016-02-26 11:03:28 -080030 <TEST>
31 <topo>1</topo>
32 <IPv6>on</IPv6>
33 <numCtrl>3</numCtrl>
You Wang7a27f3a2016-07-05 10:12:27 -070034 <pauseTest>off</pauseTest>
You Wangdb927a52016-02-26 11:03:28 -080035 <caseSleep>0</caseSleep>
36 <setIPv6CfgSleep>5</setIPv6CfgSleep>
37 <loadTopoSleep>5</loadTopoSleep>
38 <ipv6Prefix>1000::</ipv6Prefix>
39 <ipv4Prefix>10.1.</ipv4Prefix>
40 <karafCliTimeout>7200000</karafCliTimeout>
41 <testDuration>86400</testDuration>
You Wangf6e98a82016-11-14 14:46:49 -080042 <package>on</package>
You Wangdb927a52016-02-26 11:03:28 -080043 </TEST>
Devin Lim0993e422018-01-12 15:21:27 -080044 <GRAPH>
45 <nodeCluster>CHO</nodeCluster>
46 <builds>20</builds>
47 </GRAPH>
Devin Limc5c9e112017-08-17 15:16:05 -070048 <ENV>
49 <cellName>choCell</cellName>
50 <cellApps>drivers,openflow,proxyarp,events</cellApps>
51 </ENV>
You Wangdb927a52016-02-26 11:03:28 -080052 <EVENT>
53 <Event>
54 <status>on</status>
55 <typeIndex>0</typeIndex>
56 <typeString>NULL</typeString>
57 <CLI>null</CLI>
58 <CLIParamNum>0</CLIParamNum>
59 <rerunInterval>5</rerunInterval>
60 <maxRerunNum>5</maxRerunNum>
61 </Event>
62
63 <TestPause>
64 <status>on</status>
65 <typeIndex>1</typeIndex>
66 <typeString>TEST_PAUSE</typeString>
67 <CLI>pause-test</CLI>
68 <CLIParamNum>0</CLIParamNum>
69 </TestPause>
70
71 <TestResume>
72 <status>on</status>
73 <typeIndex>2</typeIndex>
74 <typeString>TEST_RESUME</typeString>
75 <CLI>resume-test</CLI>
76 <CLIParamNum>0</CLIParamNum>
77 </TestResume>
78
79 <TestSleep>
80 <status>on</status>
81 <typeIndex>3</typeIndex>
82 <typeString>TEST_SLEEP</typeString>
83 <CLI>sleep</CLI>
84 <CLIParamNum>1</CLIParamNum>
85 </TestSleep>
86
87 <IntentCheck>
88 <status>on</status>
89 <typeIndex>10</typeIndex>
90 <typeString>CHECK_INTENT</typeString>
91 <CLI>check-intent</CLI>
92 <CLIParamNum>0</CLIParamNum>
93 <rerunInterval>5</rerunInterval>
94 <maxRerunNum>5</maxRerunNum>
95 </IntentCheck>
96
You Wang58aa11e2016-05-17 10:35:44 -070097 <FlowCheck>
98 <status>on</status>
99 <typeIndex>11</typeIndex>
100 <typeString>CHECK_FLOW</typeString>
101 <CLI>check-flow</CLI>
102 <CLIParamNum>0</CLIParamNum>
103 <rerunInterval>5</rerunInterval>
104 <maxRerunNum>5</maxRerunNum>
You Wang3fa69e82016-11-14 14:51:43 -0800105 <coreFlowNum>3</coreFlowNum>
106 <coreFlowNum6>5</coreFlowNum6>
You Wang58aa11e2016-05-17 10:35:44 -0700107 </FlowCheck>
108
You Wangdb927a52016-02-26 11:03:28 -0800109 <TrafficCheck>
110 <status>on</status>
111 <typeIndex>12</typeIndex>
112 <typeString>CHECK_TRAFFIC</typeString>
113 <CLI>check-traffic</CLI>
114 <CLIParamNum>0</CLIParamNum>
115 <rerunInterval>5</rerunInterval>
116 <maxRerunNum>5</maxRerunNum>
117 <pingWait>1</pingWait>
118 <pingTimeout>10</pingTimeout>
119 </TrafficCheck>
120
121 <TopoCheck>
122 <status>on</status>
123 <typeIndex>13</typeIndex>
124 <typeString>CHECK_TOPO</typeString>
125 <CLI>check-topo</CLI>
126 <CLIParamNum>0</CLIParamNum>
127 <rerunInterval>5</rerunInterval>
128 <maxRerunNum>5</maxRerunNum>
129 </TopoCheck>
130
131 <ONOSCheck>
132 <status>on</status>
133 <typeIndex>14</typeIndex>
134 <typeString>CHECK_ONOS</typeString>
135 <CLI>check-onos</CLI>
136 <CLIParamNum>0</CLIParamNum>
137 <rerunInterval>5</rerunInterval>
138 <maxRerunNum>5</maxRerunNum>
139 </ONOSCheck>
140
Devin Limf0822182017-09-12 14:52:57 -0700141 <RaftLogSizeCheck>
142 <status>on</status>
143 <typeIndex>15</typeIndex>
144 <typeString>CHECK_RAFT_LOG_SIZE</typeString>
145 <CLI>check-raft-size</CLI>
146 <CLIParamNum>0</CLIParamNum>
147 </RaftLogSizeCheck>
148
You Wangdb927a52016-02-26 11:03:28 -0800149 <LinkDown>
150 <status>on</status>
151 <typeIndex>20</typeIndex>
152 <typeString>NETWORK_LINK_DOWN</typeString>
153 <CLI>link-down</CLI>
154 <CLIParamNum>2</CLIParamNum>
155 </LinkDown>
156
157 <LinkUp>
158 <status>on</status>
159 <typeIndex>21</typeIndex>
160 <typeString>NETWORK_LINK_UP</typeString>
161 <CLI>link-up</CLI>
162 <CLIParamNum>2</CLIParamNum>
163 </LinkUp>
164
165 <DeviceDown>
166 <status>on</status>
167 <typeIndex>22</typeIndex>
168 <typeString>NETWORK_DEVICE_DOWN</typeString>
169 <CLI>device-down</CLI>
170 <CLIParamNum>1</CLIParamNum>
171 </DeviceDown>
172
173 <DeviceUp>
174 <status>on</status>
175 <typeIndex>23</typeIndex>
176 <typeString>NETWORK_DEVICE_UP</typeString>
177 <CLI>device-up</CLI>
178 <CLIParamNum>1</CLIParamNum>
179 </DeviceUp>
180
181 <AddHostIntent>
182 <status>on</status>
183 <typeIndex>30</typeIndex>
184 <typeString>APP_INTENT_HOST_ADD</typeString>
185 <CLI>add-host-intent</CLI>
186 <CLIParamNum>3</CLIParamNum>
187 <rerunInterval>5</rerunInterval>
188 <maxRerunNum>5</maxRerunNum>
189 </AddHostIntent>
190
191 <DelHostIntent>
192 <status>on</status>
193 <typeIndex>31</typeIndex>
194 <typeString>APP_INTENT_HOST_DEL</typeString>
195 <CLI>del-host-intent</CLI>
196 <CLIParamNum>3</CLIParamNum>
197 <rerunInterval>5</rerunInterval>
198 <maxRerunNum>5</maxRerunNum>
199 </DelHostIntent>
200
201 <AddPointIntent>
202 <status>on</status>
203 <typeIndex>32</typeIndex>
204 <typeString>APP_INTENT_POINT_ADD</typeString>
205 <CLI>add-point-intent</CLI>
206 <CLIParamNum>3</CLIParamNum>
207 <rerunInterval>5</rerunInterval>
208 <maxRerunNum>5</maxRerunNum>
209 </AddPointIntent>
210
211 <DelPointIntent>
212 <status>on</status>
213 <typeIndex>33</typeIndex>
214 <typeString>APP_INTENT_POINT_DEL</typeString>
215 <CLI>del-point-intent</CLI>
216 <CLIParamNum>3</CLIParamNum>
217 <rerunInterval>5</rerunInterval>
218 <maxRerunNum>5</maxRerunNum>
219 </DelPointIntent>
220
221 <ONOSDown>
222 <status>on</status>
223 <typeIndex>40</typeIndex>
224 <typeString>ONOS_ONOS_DOWN</typeString>
225 <CLI>onos-down</CLI>
226 <CLIParamNum>1</CLIParamNum>
227 <rerunInterval>5</rerunInterval>
228 <maxRerunNum>5</maxRerunNum>
229 </ONOSDown>
230
231 <ONOSUp>
232 <status>on</status>
233 <typeIndex>41</typeIndex>
234 <typeString>ONOS_ONOS_UP</typeString>
235 <CLI>onos-up</CLI>
236 <CLIParamNum>1</CLIParamNum>
237 <rerunInterval>5</rerunInterval>
238 <maxRerunNum>5</maxRerunNum>
239 </ONOSUp>
240
241 <SetCfg>
242 <status>on</status>
243 <typeIndex>42</typeIndex>
244 <typeString>ONOS_SET_CFG</typeString>
245 <CLI>set-cfg</CLI>
246 <CLIParamNum>3</CLIParamNum>
247 <rerunInterval>5</rerunInterval>
248 <maxRerunNum>5</maxRerunNum>
249 </SetCfg>
250
251 <SetFlowObj>
252 <status>on</status>
253 <typeIndex>43</typeIndex>
254 <typeString>ONOS_SET_FLOWOBJ</typeString>
255 <CLI>set-flowobj</CLI>
256 <CLIParamNum>1</CLIParamNum>
257 <rerunInterval>5</rerunInterval>
258 <maxRerunNum>5</maxRerunNum>
259 </SetFlowObj>
260
261 <BalanceMasters>
262 <status>on</status>
263 <typeIndex>44</typeIndex>
264 <typeString>ONOS_BALANCE_MASTERS</typeString>
265 <CLI>balance-masters</CLI>
266 <CLIParamNum>0</CLIParamNum>
267 <rerunInterval>5</rerunInterval>
268 <maxRerunNum>5</maxRerunNum>
269 </BalanceMasters>
270
You Wang106d0fa2017-05-15 17:22:15 -0700271 <SetFlowObjCompiler>
272 <status>on</status>
273 <typeIndex>45</typeIndex>
274 <typeString>ONOS_SET_FLOWOBJ_COMPILER</typeString>
275 <CLI>set-flowobj-compiler</CLI>
276 <CLIParamNum>1</CLIParamNum>
277 <rerunInterval>5</rerunInterval>
278 <maxRerunNum>5</maxRerunNum>
279 </SetFlowObjCompiler>
280
You Wangdb927a52016-02-26 11:03:28 -0800281 <addAllChecks>
282 <status>on</status>
283 <typeIndex>110</typeIndex>
284 <typeString>CHECK_ALL</typeString>
285 <CLI>check-all</CLI>
286 <CLIParamNum>0</CLIParamNum>
287 </addAllChecks>
288
289 <randomLinkToggle>
290 <status>on</status>
291 <typeIndex>120</typeIndex>
292 <typeString>NETWORK_LINK_RANDOM_TOGGLE</typeString>
293 <CLI>link-toggle-random</CLI>
294 <CLIParamNum>1</CLIParamNum>
295 <sleepBeforeCheck>10</sleepBeforeCheck>
296 </randomLinkToggle>
297
298 <randomLinkGroupToggle>
299 <status>on</status>
300 <typeIndex>121</typeIndex>
301 <typeString>NETWORK_LINK_GROUP_RANDOM_TOGGLE</typeString>
302 <CLI>link-group-toggle-random</CLI>
303 <CLIParamNum>3</CLIParamNum>
304 <sleepBeforeCheck>10</sleepBeforeCheck>
305 </randomLinkGroupToggle>
306
307 <randomDeviceToggle>
308 <status>on</status>
309 <typeIndex>122</typeIndex>
310 <typeString>NETWORK_DEVICE_RANDOM_TOGGLE</typeString>
311 <CLI>device-toggle-random</CLI>
312 <CLIParamNum>1</CLIParamNum>
313 <sleepBeforeCheck>10</sleepBeforeCheck>
314 </randomDeviceToggle>
315
316 <randomDeviceGroupToggle>
317 <status>on</status>
318 <typeIndex>123</typeIndex>
319 <typeString>NETWORK_DEVICE_GROUP_RANDOM_TOGGLE</typeString>
320 <CLI>device-group-toggle-random</CLI>
321 <CLIParamNum>3</CLIParamNum>
322 <sleepBeforeCheck>10</sleepBeforeCheck>
323 </randomDeviceGroupToggle>
324
325 <installAllHostIntents>
326 <status>on</status>
327 <typeIndex>130</typeIndex>
328 <typeString>APP_INTENT_HOST_ADD_ALL</typeString>
329 <CLI>add-all-host-intents</CLI>
330 <CLIParamNum>0</CLIParamNum>
331 <sleepBeforeCheck>10</sleepBeforeCheck>
332 </installAllHostIntents>
333
334 <removeAllHostIntents>
335 <status>on</status>
336 <typeIndex>131</typeIndex>
337 <typeString>APP_INTENT_HOST_DEL_ALL</typeString>
338 <CLI>del-all-host-intents</CLI>
339 <CLIParamNum>0</CLIParamNum>
340 <sleepBeforeCheck>5</sleepBeforeCheck>
341 </removeAllHostIntents>
342
343 <installAllPointIntents>
344 <status>on</status>
345 <typeIndex>132</typeIndex>
346 <typeString>APP_INTENT_POINT_ADD_ALL</typeString>
347 <CLI>add-all-point-intents</CLI>
348 <CLIParamNum>0</CLIParamNum>
349 <sleepBeforeCheck>10</sleepBeforeCheck>
350 </installAllPointIntents>
351
352 <removeAllPointIntents>
353 <status>on</status>
354 <typeIndex>133</typeIndex>
355 <typeString>APP_INTENT_POINT_DEL_ALL</typeString>
356 <CLI>del-all-point-intents</CLI>
357 <CLIParamNum>0</CLIParamNum>
358 <sleepBeforeCheck>5</sleepBeforeCheck>
359 </removeAllPointIntents>
360
361 <randomONOSToggle>
362 <status>on</status>
363 <typeIndex>140</typeIndex>
364 <typeString>ONOS_ONOS_RANDOM_TOGGLE</typeString>
365 <CLI>onos-toggle-random</CLI>
366 <CLIParamNum>1</CLIParamNum>
367 <sleepBeforeCheck>10</sleepBeforeCheck>
368 </randomONOSToggle>
369 </EVENT>
370
371 <SCHEDULER>
372 <pendingEventsCapacity>1</pendingEventsCapacity>
373 <runningEventsCapacity>10</runningEventsCapacity>
374 <scheduleLoopSleep>0.1</scheduleLoopSleep>
375 </SCHEDULER>
376
377 <GENERATOR>
378 <listenerPort>6000</listenerPort>
379 <insertEventRetryInterval>1</insertEventRetryInterval>
380 </GENERATOR>
381
382 <TOPO>
383 <topo0>
384 <fileName>topoTripleIpv6.py</fileName>
385 </topo0>
386
387 <topo1>
388 <fileName>topoAttIpv6.py</fileName>
389 </topo1>
390
391 <topo2>
392 <fileName>topoChordalIpv6.py</fileName>
393 </topo2>
394
395 <topo3>
396 <fileName>topoSpineIpv6.py</fileName>
397 </topo3>
398
399 <topo4>
400 <fileName>topoRingIpv6.py</fileName>
401 </topo4>
402 </TOPO>
403
404 <CASE20>
405 <linkToggleNum>5</linkToggleNum>
406 <linkDownUpInterval>1</linkDownUpInterval>
407 </CASE20>
408
409 <CASE21>
410 <linkGroupSize>5</linkGroupSize>
411 <linkDownDownInterval>1</linkDownDownInterval>
412 <linkDownUpInterval>1</linkDownUpInterval>
413 </CASE21>
414
You Wang7a27f3a2016-07-05 10:12:27 -0700415 <CASE70>
416 <sleepSec>2</sleepSec>
417 <addHostIntentWeight>3</addHostIntentWeight>
418 <addPointIntentWeight>3</addPointIntentWeight>
419 <linkDownWeight>3</linkDownWeight>
420 <deviceDownWeight>2</deviceDownWeight>
You Wangf6e98a82016-11-14 14:46:49 -0800421 <toggleFlowObj>0</toggleFlowObj>
You Wang7a27f3a2016-07-05 10:12:27 -0700422 </CASE70>
423
You Wang52163202016-07-14 16:37:15 -0700424 <CASE80>
425 <filePath>/home/admin/log-for-replay</filePath>
426 <sleepTime>0.1</sleepTime>
427 <skipChecks>on</skipChecks>
428 </CASE80>
429
You Wangdb927a52016-02-26 11:03:28 -0800430 <CASE90>
431 <sleepSec>60</sleepSec>
432 </CASE90>
433</PARAMS>