blob: 7d7457b0ad9895448f188ac8f5dd5bf5fe9f4d5f [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>
22 0,1,2,3,100,[10,40,60,10,30,21,31,41,90,60]*500,100
23 </testcases>
24
25 <TEST>
26 <topo>1</topo>
27 <IPv6>on</IPv6>
28 <numCtrl>3</numCtrl>
29 <pauseTest>off</pauseTest>
30 <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
87 <TrafficCheck>
88 <status>on</status>
89 <typeIndex>12</typeIndex>
90 <typeString>CHECK_TRAFFIC</typeString>
91 <CLI>check-traffic</CLI>
92 <CLIParamNum>0</CLIParamNum>
93 <rerunInterval>5</rerunInterval>
94 <maxRerunNum>5</maxRerunNum>
95 <pingWait>1</pingWait>
96 <pingTimeout>10</pingTimeout>
97 </TrafficCheck>
98
99 <TopoCheck>
100 <status>on</status>
101 <typeIndex>13</typeIndex>
102 <typeString>CHECK_TOPO</typeString>
103 <CLI>check-topo</CLI>
104 <CLIParamNum>0</CLIParamNum>
105 <rerunInterval>5</rerunInterval>
106 <maxRerunNum>5</maxRerunNum>
107 </TopoCheck>
108
109 <ONOSCheck>
110 <status>on</status>
111 <typeIndex>14</typeIndex>
112 <typeString>CHECK_ONOS</typeString>
113 <CLI>check-onos</CLI>
114 <CLIParamNum>0</CLIParamNum>
115 <rerunInterval>5</rerunInterval>
116 <maxRerunNum>5</maxRerunNum>
117 </ONOSCheck>
118
119 <LinkDown>
120 <status>on</status>
121 <typeIndex>20</typeIndex>
122 <typeString>NETWORK_LINK_DOWN</typeString>
123 <CLI>link-down</CLI>
124 <CLIParamNum>2</CLIParamNum>
125 </LinkDown>
126
127 <LinkUp>
128 <status>on</status>
129 <typeIndex>21</typeIndex>
130 <typeString>NETWORK_LINK_UP</typeString>
131 <CLI>link-up</CLI>
132 <CLIParamNum>2</CLIParamNum>
133 </LinkUp>
134
135 <DeviceDown>
136 <status>on</status>
137 <typeIndex>22</typeIndex>
138 <typeString>NETWORK_DEVICE_DOWN</typeString>
139 <CLI>device-down</CLI>
140 <CLIParamNum>1</CLIParamNum>
141 </DeviceDown>
142
143 <DeviceUp>
144 <status>on</status>
145 <typeIndex>23</typeIndex>
146 <typeString>NETWORK_DEVICE_UP</typeString>
147 <CLI>device-up</CLI>
148 <CLIParamNum>1</CLIParamNum>
149 </DeviceUp>
150
151 <AddHostIntent>
152 <status>on</status>
153 <typeIndex>30</typeIndex>
154 <typeString>APP_INTENT_HOST_ADD</typeString>
155 <CLI>add-host-intent</CLI>
156 <CLIParamNum>3</CLIParamNum>
157 <rerunInterval>5</rerunInterval>
158 <maxRerunNum>5</maxRerunNum>
159 </AddHostIntent>
160
161 <DelHostIntent>
162 <status>on</status>
163 <typeIndex>31</typeIndex>
164 <typeString>APP_INTENT_HOST_DEL</typeString>
165 <CLI>del-host-intent</CLI>
166 <CLIParamNum>3</CLIParamNum>
167 <rerunInterval>5</rerunInterval>
168 <maxRerunNum>5</maxRerunNum>
169 </DelHostIntent>
170
171 <AddPointIntent>
172 <status>on</status>
173 <typeIndex>32</typeIndex>
174 <typeString>APP_INTENT_POINT_ADD</typeString>
175 <CLI>add-point-intent</CLI>
176 <CLIParamNum>3</CLIParamNum>
177 <rerunInterval>5</rerunInterval>
178 <maxRerunNum>5</maxRerunNum>
179 </AddPointIntent>
180
181 <DelPointIntent>
182 <status>on</status>
183 <typeIndex>33</typeIndex>
184 <typeString>APP_INTENT_POINT_DEL</typeString>
185 <CLI>del-point-intent</CLI>
186 <CLIParamNum>3</CLIParamNum>
187 <rerunInterval>5</rerunInterval>
188 <maxRerunNum>5</maxRerunNum>
189 </DelPointIntent>
190
191 <ONOSDown>
192 <status>on</status>
193 <typeIndex>40</typeIndex>
194 <typeString>ONOS_ONOS_DOWN</typeString>
195 <CLI>onos-down</CLI>
196 <CLIParamNum>1</CLIParamNum>
197 <rerunInterval>5</rerunInterval>
198 <maxRerunNum>5</maxRerunNum>
199 </ONOSDown>
200
201 <ONOSUp>
202 <status>on</status>
203 <typeIndex>41</typeIndex>
204 <typeString>ONOS_ONOS_UP</typeString>
205 <CLI>onos-up</CLI>
206 <CLIParamNum>1</CLIParamNum>
207 <rerunInterval>5</rerunInterval>
208 <maxRerunNum>5</maxRerunNum>
209 </ONOSUp>
210
211 <SetCfg>
212 <status>on</status>
213 <typeIndex>42</typeIndex>
214 <typeString>ONOS_SET_CFG</typeString>
215 <CLI>set-cfg</CLI>
216 <CLIParamNum>3</CLIParamNum>
217 <rerunInterval>5</rerunInterval>
218 <maxRerunNum>5</maxRerunNum>
219 </SetCfg>
220
221 <SetFlowObj>
222 <status>on</status>
223 <typeIndex>43</typeIndex>
224 <typeString>ONOS_SET_FLOWOBJ</typeString>
225 <CLI>set-flowobj</CLI>
226 <CLIParamNum>1</CLIParamNum>
227 <rerunInterval>5</rerunInterval>
228 <maxRerunNum>5</maxRerunNum>
229 </SetFlowObj>
230
231 <BalanceMasters>
232 <status>on</status>
233 <typeIndex>44</typeIndex>
234 <typeString>ONOS_BALANCE_MASTERS</typeString>
235 <CLI>balance-masters</CLI>
236 <CLIParamNum>0</CLIParamNum>
237 <rerunInterval>5</rerunInterval>
238 <maxRerunNum>5</maxRerunNum>
239 </BalanceMasters>
240
241 <addAllChecks>
242 <status>on</status>
243 <typeIndex>110</typeIndex>
244 <typeString>CHECK_ALL</typeString>
245 <CLI>check-all</CLI>
246 <CLIParamNum>0</CLIParamNum>
247 </addAllChecks>
248
249 <randomLinkToggle>
250 <status>on</status>
251 <typeIndex>120</typeIndex>
252 <typeString>NETWORK_LINK_RANDOM_TOGGLE</typeString>
253 <CLI>link-toggle-random</CLI>
254 <CLIParamNum>1</CLIParamNum>
255 <sleepBeforeCheck>10</sleepBeforeCheck>
256 </randomLinkToggle>
257
258 <randomLinkGroupToggle>
259 <status>on</status>
260 <typeIndex>121</typeIndex>
261 <typeString>NETWORK_LINK_GROUP_RANDOM_TOGGLE</typeString>
262 <CLI>link-group-toggle-random</CLI>
263 <CLIParamNum>3</CLIParamNum>
264 <sleepBeforeCheck>10</sleepBeforeCheck>
265 </randomLinkGroupToggle>
266
267 <randomDeviceToggle>
268 <status>on</status>
269 <typeIndex>122</typeIndex>
270 <typeString>NETWORK_DEVICE_RANDOM_TOGGLE</typeString>
271 <CLI>device-toggle-random</CLI>
272 <CLIParamNum>1</CLIParamNum>
273 <sleepBeforeCheck>10</sleepBeforeCheck>
274 </randomDeviceToggle>
275
276 <randomDeviceGroupToggle>
277 <status>on</status>
278 <typeIndex>123</typeIndex>
279 <typeString>NETWORK_DEVICE_GROUP_RANDOM_TOGGLE</typeString>
280 <CLI>device-group-toggle-random</CLI>
281 <CLIParamNum>3</CLIParamNum>
282 <sleepBeforeCheck>10</sleepBeforeCheck>
283 </randomDeviceGroupToggle>
284
285 <installAllHostIntents>
286 <status>on</status>
287 <typeIndex>130</typeIndex>
288 <typeString>APP_INTENT_HOST_ADD_ALL</typeString>
289 <CLI>add-all-host-intents</CLI>
290 <CLIParamNum>0</CLIParamNum>
291 <sleepBeforeCheck>10</sleepBeforeCheck>
292 </installAllHostIntents>
293
294 <removeAllHostIntents>
295 <status>on</status>
296 <typeIndex>131</typeIndex>
297 <typeString>APP_INTENT_HOST_DEL_ALL</typeString>
298 <CLI>del-all-host-intents</CLI>
299 <CLIParamNum>0</CLIParamNum>
300 <sleepBeforeCheck>5</sleepBeforeCheck>
301 </removeAllHostIntents>
302
303 <installAllPointIntents>
304 <status>on</status>
305 <typeIndex>132</typeIndex>
306 <typeString>APP_INTENT_POINT_ADD_ALL</typeString>
307 <CLI>add-all-point-intents</CLI>
308 <CLIParamNum>0</CLIParamNum>
309 <sleepBeforeCheck>10</sleepBeforeCheck>
310 </installAllPointIntents>
311
312 <removeAllPointIntents>
313 <status>on</status>
314 <typeIndex>133</typeIndex>
315 <typeString>APP_INTENT_POINT_DEL_ALL</typeString>
316 <CLI>del-all-point-intents</CLI>
317 <CLIParamNum>0</CLIParamNum>
318 <sleepBeforeCheck>5</sleepBeforeCheck>
319 </removeAllPointIntents>
320
321 <randomONOSToggle>
322 <status>on</status>
323 <typeIndex>140</typeIndex>
324 <typeString>ONOS_ONOS_RANDOM_TOGGLE</typeString>
325 <CLI>onos-toggle-random</CLI>
326 <CLIParamNum>1</CLIParamNum>
327 <sleepBeforeCheck>10</sleepBeforeCheck>
328 </randomONOSToggle>
329 </EVENT>
330
331 <SCHEDULER>
332 <pendingEventsCapacity>1</pendingEventsCapacity>
333 <runningEventsCapacity>10</runningEventsCapacity>
334 <scheduleLoopSleep>0.1</scheduleLoopSleep>
335 </SCHEDULER>
336
337 <GENERATOR>
338 <listenerPort>6000</listenerPort>
339 <insertEventRetryInterval>1</insertEventRetryInterval>
340 </GENERATOR>
341
342 <TOPO>
343 <topo0>
344 <fileName>topoTripleIpv6.py</fileName>
345 </topo0>
346
347 <topo1>
348 <fileName>topoAttIpv6.py</fileName>
349 </topo1>
350
351 <topo2>
352 <fileName>topoChordalIpv6.py</fileName>
353 </topo2>
354
355 <topo3>
356 <fileName>topoSpineIpv6.py</fileName>
357 </topo3>
358
359 <topo4>
360 <fileName>topoRingIpv6.py</fileName>
361 </topo4>
362 </TOPO>
363
364 <CASE20>
365 <linkToggleNum>5</linkToggleNum>
366 <linkDownUpInterval>1</linkDownUpInterval>
367 </CASE20>
368
369 <CASE21>
370 <linkGroupSize>5</linkGroupSize>
371 <linkDownDownInterval>1</linkDownDownInterval>
372 <linkDownUpInterval>1</linkDownUpInterval>
373 </CASE21>
374
375 <CASE90>
376 <sleepSec>60</sleepSec>
377 </CASE90>
378</PARAMS>