blob: 6bb34678a290198986c8918ca630959d18a22fe0 [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
137 <LinkDown>
138 <status>on</status>
139 <typeIndex>20</typeIndex>
140 <typeString>NETWORK_LINK_DOWN</typeString>
141 <CLI>link-down</CLI>
142 <CLIParamNum>2</CLIParamNum>
143 </LinkDown>
144
145 <LinkUp>
146 <status>on</status>
147 <typeIndex>21</typeIndex>
148 <typeString>NETWORK_LINK_UP</typeString>
149 <CLI>link-up</CLI>
150 <CLIParamNum>2</CLIParamNum>
151 </LinkUp>
152
153 <DeviceDown>
154 <status>on</status>
155 <typeIndex>22</typeIndex>
156 <typeString>NETWORK_DEVICE_DOWN</typeString>
157 <CLI>device-down</CLI>
158 <CLIParamNum>1</CLIParamNum>
159 </DeviceDown>
160
161 <DeviceUp>
162 <status>on</status>
163 <typeIndex>23</typeIndex>
164 <typeString>NETWORK_DEVICE_UP</typeString>
165 <CLI>device-up</CLI>
166 <CLIParamNum>1</CLIParamNum>
167 </DeviceUp>
168
169 <AddHostIntent>
170 <status>on</status>
171 <typeIndex>30</typeIndex>
172 <typeString>APP_INTENT_HOST_ADD</typeString>
173 <CLI>add-host-intent</CLI>
174 <CLIParamNum>3</CLIParamNum>
175 <rerunInterval>5</rerunInterval>
176 <maxRerunNum>5</maxRerunNum>
177 </AddHostIntent>
178
179 <DelHostIntent>
180 <status>on</status>
181 <typeIndex>31</typeIndex>
182 <typeString>APP_INTENT_HOST_DEL</typeString>
183 <CLI>del-host-intent</CLI>
184 <CLIParamNum>3</CLIParamNum>
185 <rerunInterval>5</rerunInterval>
186 <maxRerunNum>5</maxRerunNum>
187 </DelHostIntent>
188
189 <AddPointIntent>
190 <status>on</status>
191 <typeIndex>32</typeIndex>
192 <typeString>APP_INTENT_POINT_ADD</typeString>
193 <CLI>add-point-intent</CLI>
194 <CLIParamNum>3</CLIParamNum>
195 <rerunInterval>5</rerunInterval>
196 <maxRerunNum>5</maxRerunNum>
197 </AddPointIntent>
198
199 <DelPointIntent>
200 <status>on</status>
201 <typeIndex>33</typeIndex>
202 <typeString>APP_INTENT_POINT_DEL</typeString>
203 <CLI>del-point-intent</CLI>
204 <CLIParamNum>3</CLIParamNum>
205 <rerunInterval>5</rerunInterval>
206 <maxRerunNum>5</maxRerunNum>
207 </DelPointIntent>
208
209 <ONOSDown>
210 <status>on</status>
211 <typeIndex>40</typeIndex>
212 <typeString>ONOS_ONOS_DOWN</typeString>
213 <CLI>onos-down</CLI>
214 <CLIParamNum>1</CLIParamNum>
215 <rerunInterval>5</rerunInterval>
216 <maxRerunNum>5</maxRerunNum>
217 </ONOSDown>
218
219 <ONOSUp>
220 <status>on</status>
221 <typeIndex>41</typeIndex>
222 <typeString>ONOS_ONOS_UP</typeString>
223 <CLI>onos-up</CLI>
224 <CLIParamNum>1</CLIParamNum>
225 <rerunInterval>5</rerunInterval>
226 <maxRerunNum>5</maxRerunNum>
227 </ONOSUp>
228
229 <SetCfg>
230 <status>on</status>
231 <typeIndex>42</typeIndex>
232 <typeString>ONOS_SET_CFG</typeString>
233 <CLI>set-cfg</CLI>
234 <CLIParamNum>3</CLIParamNum>
235 <rerunInterval>5</rerunInterval>
236 <maxRerunNum>5</maxRerunNum>
237 </SetCfg>
238
239 <SetFlowObj>
240 <status>on</status>
241 <typeIndex>43</typeIndex>
242 <typeString>ONOS_SET_FLOWOBJ</typeString>
243 <CLI>set-flowobj</CLI>
244 <CLIParamNum>1</CLIParamNum>
245 <rerunInterval>5</rerunInterval>
246 <maxRerunNum>5</maxRerunNum>
247 </SetFlowObj>
248
249 <BalanceMasters>
250 <status>on</status>
251 <typeIndex>44</typeIndex>
252 <typeString>ONOS_BALANCE_MASTERS</typeString>
253 <CLI>balance-masters</CLI>
254 <CLIParamNum>0</CLIParamNum>
255 <rerunInterval>5</rerunInterval>
256 <maxRerunNum>5</maxRerunNum>
257 </BalanceMasters>
258
You Wang106d0fa2017-05-15 17:22:15 -0700259 <SetFlowObjCompiler>
260 <status>on</status>
261 <typeIndex>45</typeIndex>
262 <typeString>ONOS_SET_FLOWOBJ_COMPILER</typeString>
263 <CLI>set-flowobj-compiler</CLI>
264 <CLIParamNum>1</CLIParamNum>
265 <rerunInterval>5</rerunInterval>
266 <maxRerunNum>5</maxRerunNum>
267 </SetFlowObjCompiler>
268
You Wangdb927a52016-02-26 11:03:28 -0800269 <addAllChecks>
270 <status>on</status>
271 <typeIndex>110</typeIndex>
272 <typeString>CHECK_ALL</typeString>
273 <CLI>check-all</CLI>
274 <CLIParamNum>0</CLIParamNum>
275 </addAllChecks>
276
277 <randomLinkToggle>
278 <status>on</status>
279 <typeIndex>120</typeIndex>
280 <typeString>NETWORK_LINK_RANDOM_TOGGLE</typeString>
281 <CLI>link-toggle-random</CLI>
282 <CLIParamNum>1</CLIParamNum>
283 <sleepBeforeCheck>10</sleepBeforeCheck>
284 </randomLinkToggle>
285
286 <randomLinkGroupToggle>
287 <status>on</status>
288 <typeIndex>121</typeIndex>
289 <typeString>NETWORK_LINK_GROUP_RANDOM_TOGGLE</typeString>
290 <CLI>link-group-toggle-random</CLI>
291 <CLIParamNum>3</CLIParamNum>
292 <sleepBeforeCheck>10</sleepBeforeCheck>
293 </randomLinkGroupToggle>
294
295 <randomDeviceToggle>
296 <status>on</status>
297 <typeIndex>122</typeIndex>
298 <typeString>NETWORK_DEVICE_RANDOM_TOGGLE</typeString>
299 <CLI>device-toggle-random</CLI>
300 <CLIParamNum>1</CLIParamNum>
301 <sleepBeforeCheck>10</sleepBeforeCheck>
302 </randomDeviceToggle>
303
304 <randomDeviceGroupToggle>
305 <status>on</status>
306 <typeIndex>123</typeIndex>
307 <typeString>NETWORK_DEVICE_GROUP_RANDOM_TOGGLE</typeString>
308 <CLI>device-group-toggle-random</CLI>
309 <CLIParamNum>3</CLIParamNum>
310 <sleepBeforeCheck>10</sleepBeforeCheck>
311 </randomDeviceGroupToggle>
312
313 <installAllHostIntents>
314 <status>on</status>
315 <typeIndex>130</typeIndex>
316 <typeString>APP_INTENT_HOST_ADD_ALL</typeString>
317 <CLI>add-all-host-intents</CLI>
318 <CLIParamNum>0</CLIParamNum>
319 <sleepBeforeCheck>10</sleepBeforeCheck>
320 </installAllHostIntents>
321
322 <removeAllHostIntents>
323 <status>on</status>
324 <typeIndex>131</typeIndex>
325 <typeString>APP_INTENT_HOST_DEL_ALL</typeString>
326 <CLI>del-all-host-intents</CLI>
327 <CLIParamNum>0</CLIParamNum>
328 <sleepBeforeCheck>5</sleepBeforeCheck>
329 </removeAllHostIntents>
330
331 <installAllPointIntents>
332 <status>on</status>
333 <typeIndex>132</typeIndex>
334 <typeString>APP_INTENT_POINT_ADD_ALL</typeString>
335 <CLI>add-all-point-intents</CLI>
336 <CLIParamNum>0</CLIParamNum>
337 <sleepBeforeCheck>10</sleepBeforeCheck>
338 </installAllPointIntents>
339
340 <removeAllPointIntents>
341 <status>on</status>
342 <typeIndex>133</typeIndex>
343 <typeString>APP_INTENT_POINT_DEL_ALL</typeString>
344 <CLI>del-all-point-intents</CLI>
345 <CLIParamNum>0</CLIParamNum>
346 <sleepBeforeCheck>5</sleepBeforeCheck>
347 </removeAllPointIntents>
348
349 <randomONOSToggle>
350 <status>on</status>
351 <typeIndex>140</typeIndex>
352 <typeString>ONOS_ONOS_RANDOM_TOGGLE</typeString>
353 <CLI>onos-toggle-random</CLI>
354 <CLIParamNum>1</CLIParamNum>
355 <sleepBeforeCheck>10</sleepBeforeCheck>
356 </randomONOSToggle>
357 </EVENT>
358
359 <SCHEDULER>
360 <pendingEventsCapacity>1</pendingEventsCapacity>
361 <runningEventsCapacity>10</runningEventsCapacity>
362 <scheduleLoopSleep>0.1</scheduleLoopSleep>
363 </SCHEDULER>
364
365 <GENERATOR>
366 <listenerPort>6000</listenerPort>
367 <insertEventRetryInterval>1</insertEventRetryInterval>
368 </GENERATOR>
369
370 <TOPO>
371 <topo0>
372 <fileName>topoTripleIpv6.py</fileName>
373 </topo0>
374
375 <topo1>
376 <fileName>topoAttIpv6.py</fileName>
377 </topo1>
378
379 <topo2>
380 <fileName>topoChordalIpv6.py</fileName>
381 </topo2>
382
383 <topo3>
384 <fileName>topoSpineIpv6.py</fileName>
385 </topo3>
386
387 <topo4>
388 <fileName>topoRingIpv6.py</fileName>
389 </topo4>
390 </TOPO>
391
392 <CASE20>
393 <linkToggleNum>5</linkToggleNum>
394 <linkDownUpInterval>1</linkDownUpInterval>
395 </CASE20>
396
397 <CASE21>
398 <linkGroupSize>5</linkGroupSize>
399 <linkDownDownInterval>1</linkDownDownInterval>
400 <linkDownUpInterval>1</linkDownUpInterval>
401 </CASE21>
402
You Wang7a27f3a2016-07-05 10:12:27 -0700403 <CASE70>
404 <sleepSec>2</sleepSec>
405 <addHostIntentWeight>3</addHostIntentWeight>
406 <addPointIntentWeight>3</addPointIntentWeight>
407 <linkDownWeight>3</linkDownWeight>
408 <deviceDownWeight>2</deviceDownWeight>
You Wangf6e98a82016-11-14 14:46:49 -0800409 <toggleFlowObj>0</toggleFlowObj>
You Wang7a27f3a2016-07-05 10:12:27 -0700410 </CASE70>
411
You Wang52163202016-07-14 16:37:15 -0700412 <CASE80>
413 <filePath>/home/admin/log-for-replay</filePath>
414 <sleepTime>0.1</sleepTime>
415 <skipChecks>on</skipChecks>
416 </CASE80>
417
You Wangdb927a52016-02-26 11:03:28 -0800418 <CASE90>
419 <sleepSec>60</sleepSec>
420 </CASE90>
421</PARAMS>