blob: 85b2e0e0d81737fb7b34b77b94ded53ec8e9842c [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>
39 <package>off</package>
40 <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 Wang3c276252016-09-21 15:21:36 -070097 <coreFlowNum>4</coreFlowNum>
98 <coreFlowNum6>6</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
255 <addAllChecks>
256 <status>on</status>
257 <typeIndex>110</typeIndex>
258 <typeString>CHECK_ALL</typeString>
259 <CLI>check-all</CLI>
260 <CLIParamNum>0</CLIParamNum>
261 </addAllChecks>
262
263 <randomLinkToggle>
264 <status>on</status>
265 <typeIndex>120</typeIndex>
266 <typeString>NETWORK_LINK_RANDOM_TOGGLE</typeString>
267 <CLI>link-toggle-random</CLI>
268 <CLIParamNum>1</CLIParamNum>
269 <sleepBeforeCheck>10</sleepBeforeCheck>
270 </randomLinkToggle>
271
272 <randomLinkGroupToggle>
273 <status>on</status>
274 <typeIndex>121</typeIndex>
275 <typeString>NETWORK_LINK_GROUP_RANDOM_TOGGLE</typeString>
276 <CLI>link-group-toggle-random</CLI>
277 <CLIParamNum>3</CLIParamNum>
278 <sleepBeforeCheck>10</sleepBeforeCheck>
279 </randomLinkGroupToggle>
280
281 <randomDeviceToggle>
282 <status>on</status>
283 <typeIndex>122</typeIndex>
284 <typeString>NETWORK_DEVICE_RANDOM_TOGGLE</typeString>
285 <CLI>device-toggle-random</CLI>
286 <CLIParamNum>1</CLIParamNum>
287 <sleepBeforeCheck>10</sleepBeforeCheck>
288 </randomDeviceToggle>
289
290 <randomDeviceGroupToggle>
291 <status>on</status>
292 <typeIndex>123</typeIndex>
293 <typeString>NETWORK_DEVICE_GROUP_RANDOM_TOGGLE</typeString>
294 <CLI>device-group-toggle-random</CLI>
295 <CLIParamNum>3</CLIParamNum>
296 <sleepBeforeCheck>10</sleepBeforeCheck>
297 </randomDeviceGroupToggle>
298
299 <installAllHostIntents>
300 <status>on</status>
301 <typeIndex>130</typeIndex>
302 <typeString>APP_INTENT_HOST_ADD_ALL</typeString>
303 <CLI>add-all-host-intents</CLI>
304 <CLIParamNum>0</CLIParamNum>
305 <sleepBeforeCheck>10</sleepBeforeCheck>
306 </installAllHostIntents>
307
308 <removeAllHostIntents>
309 <status>on</status>
310 <typeIndex>131</typeIndex>
311 <typeString>APP_INTENT_HOST_DEL_ALL</typeString>
312 <CLI>del-all-host-intents</CLI>
313 <CLIParamNum>0</CLIParamNum>
314 <sleepBeforeCheck>5</sleepBeforeCheck>
315 </removeAllHostIntents>
316
317 <installAllPointIntents>
318 <status>on</status>
319 <typeIndex>132</typeIndex>
320 <typeString>APP_INTENT_POINT_ADD_ALL</typeString>
321 <CLI>add-all-point-intents</CLI>
322 <CLIParamNum>0</CLIParamNum>
323 <sleepBeforeCheck>10</sleepBeforeCheck>
324 </installAllPointIntents>
325
326 <removeAllPointIntents>
327 <status>on</status>
328 <typeIndex>133</typeIndex>
329 <typeString>APP_INTENT_POINT_DEL_ALL</typeString>
330 <CLI>del-all-point-intents</CLI>
331 <CLIParamNum>0</CLIParamNum>
332 <sleepBeforeCheck>5</sleepBeforeCheck>
333 </removeAllPointIntents>
334
335 <randomONOSToggle>
336 <status>on</status>
337 <typeIndex>140</typeIndex>
338 <typeString>ONOS_ONOS_RANDOM_TOGGLE</typeString>
339 <CLI>onos-toggle-random</CLI>
340 <CLIParamNum>1</CLIParamNum>
341 <sleepBeforeCheck>10</sleepBeforeCheck>
342 </randomONOSToggle>
343 </EVENT>
344
345 <SCHEDULER>
346 <pendingEventsCapacity>1</pendingEventsCapacity>
347 <runningEventsCapacity>10</runningEventsCapacity>
348 <scheduleLoopSleep>0.1</scheduleLoopSleep>
349 </SCHEDULER>
350
351 <GENERATOR>
352 <listenerPort>6000</listenerPort>
353 <insertEventRetryInterval>1</insertEventRetryInterval>
354 </GENERATOR>
355
356 <TOPO>
357 <topo0>
358 <fileName>topoTripleIpv6.py</fileName>
359 </topo0>
360
361 <topo1>
362 <fileName>topoAttIpv6.py</fileName>
363 </topo1>
364
365 <topo2>
366 <fileName>topoChordalIpv6.py</fileName>
367 </topo2>
368
369 <topo3>
370 <fileName>topoSpineIpv6.py</fileName>
371 </topo3>
372
373 <topo4>
374 <fileName>topoRingIpv6.py</fileName>
375 </topo4>
376 </TOPO>
377
378 <CASE20>
379 <linkToggleNum>5</linkToggleNum>
380 <linkDownUpInterval>1</linkDownUpInterval>
381 </CASE20>
382
383 <CASE21>
384 <linkGroupSize>5</linkGroupSize>
385 <linkDownDownInterval>1</linkDownDownInterval>
386 <linkDownUpInterval>1</linkDownUpInterval>
387 </CASE21>
388
You Wang7a27f3a2016-07-05 10:12:27 -0700389 <CASE70>
390 <sleepSec>2</sleepSec>
391 <addHostIntentWeight>3</addHostIntentWeight>
392 <addPointIntentWeight>3</addPointIntentWeight>
393 <linkDownWeight>3</linkDownWeight>
394 <deviceDownWeight>2</deviceDownWeight>
395 </CASE70>
396
You Wang52163202016-07-14 16:37:15 -0700397 <CASE80>
398 <filePath>/home/admin/log-for-replay</filePath>
399 <sleepTime>0.1</sleepTime>
400 <skipChecks>on</skipChecks>
401 </CASE80>
402
You Wangdb927a52016-02-26 11:03:28 -0800403 <CASE90>
404 <sleepSec>60</sleepSec>
405 </CASE90>
406</PARAMS>