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