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