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