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