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