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