blob: ae54287d57ace3e6201b71f41e32f7f928468c26 [file] [log] [blame]
You Wang9fc5ce42019-01-23 15:10:08 -08001<PARAMS>
2 # 0. Initialize CHOTestMonkey
3 # 1. Set IPv6 configure
4 # 2. Load network configuration files
5 # 4. Copy topology libs and config files to Mininet
6 # 5. Load topology and balances all switches
7 # 6. Collect and store device and link data from ONOS
8 # 7. Collect and store host data from ONOS
You Wang469d4ac2019-01-31 12:33:26 -08009 # 10. Run all enabled checks
You Wang9fc5ce42019-01-23 15:10:08 -080010 # 70. Run randomly generated events
You Wang469d4ac2019-01-31 12:33:26 -080011 # 80. Replay events from log file
You Wang9fc5ce42019-01-23 15:10:08 -080012 # 100. Do nothing
13
14 <testcases>
You Wangc61aaa22019-02-01 15:49:48 -080015 0,2,4,5,6,7,10,70
You Wang9fc5ce42019-01-23 15:10:08 -080016 </testcases>
17
18 <GIT>
19 <pull>False</pull>
20 <branch>master</branch>
21 </GIT>
22
23 <TEST>
24 <topo>10</topo>
25 <IPv6>on</IPv6>
You Wangc61aaa22019-02-01 15:49:48 -080026 <restartCluster>True</restartCluster>
You Wang9fc5ce42019-01-23 15:10:08 -080027 <dataPlaneConnectivity>True</dataPlaneConnectivity>
28 <numCtrl>3</numCtrl>
29 <pauseTest>on</pauseTest>
30 <caseSleep>0</caseSleep>
31 <ipv6Regex>10[0-9]+::[0-9]+</ipv6Regex>
32 <ipv4Regex>10\.[0-9]+\.[0-9]+\.[0-9]+</ipv4Regex>
33 <karafCliTimeout>7200000</karafCliTimeout>
34 <testDuration>86400</testDuration>
35 <package>on</package>
36 </TEST>
37
38 <GRAPH>
39 <nodeCluster>CHO</nodeCluster>
40 <builds>20</builds>
41 </GRAPH>
42
43 <ENV>
44 <cellName>choTrellisCell</cellName>
45 <cellApps>drivers,openflow,segmentrouting,fpm,dhcprelay,netcfghostprovider,routeradvertisement,t3,hostprobingprovider</cellApps>
46 </ENV>
47
48 <EVENT>
49 <Event>
50 <status>on</status>
51 <typeIndex>0</typeIndex>
52 <typeString>NULL</typeString>
53 <CLI>null</CLI>
54 <CLIParamNum>0</CLIParamNum>
55 <rerunInterval>5</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -080056 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -080057 </Event>
58
59 <TestPause>
60 <status>on</status>
61 <typeIndex>1</typeIndex>
62 <typeString>TEST_PAUSE</typeString>
63 <CLI>pause-test</CLI>
64 <CLIParamNum>0</CLIParamNum>
65 </TestPause>
66
67 <TestResume>
68 <status>on</status>
69 <typeIndex>2</typeIndex>
70 <typeString>TEST_RESUME</typeString>
71 <CLI>resume-test</CLI>
72 <CLIParamNum>0</CLIParamNum>
73 </TestResume>
74
75 <TestSleep>
76 <status>on</status>
77 <typeIndex>3</typeIndex>
78 <typeString>TEST_SLEEP</typeString>
79 <CLI>sleep</CLI>
80 <CLIParamNum>1</CLIParamNum>
81 </TestSleep>
82
83 <TestDebug>
84 <status>on</status>
85 <typeIndex>4</typeIndex>
86 <typeString>TEST_DEBUG</typeString>
87 <CLI>debug-test</CLI>
88 <CLIParamNum>0</CLIParamNum>
89 </TestDebug>
90
You Wang9fc5ce42019-01-23 15:10:08 -080091 <TrafficCheck>
92 <status>on</status>
93 <typeIndex>12</typeIndex>
94 <typeString>CHECK_TRAFFIC</typeString>
95 <CLI>check-traffic</CLI>
96 <CLIParamNum>0</CLIParamNum>
97 <rerunInterval>10</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -080098 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -080099 <pingWait>1</pingWait>
100 <pingTimeout>10</pingTimeout>
101 </TrafficCheck>
102
103 <TopoCheck>
104 <status>on</status>
105 <typeIndex>13</typeIndex>
106 <typeString>CHECK_TOPO</typeString>
107 <CLI>check-topo</CLI>
108 <CLIParamNum>0</CLIParamNum>
109 <rerunInterval>5</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -0800110 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -0800111 </TopoCheck>
112
113 <ONOSCheck>
114 <status>on</status>
115 <typeIndex>14</typeIndex>
116 <typeString>CHECK_ONOS</typeString>
117 <CLI>check-onos</CLI>
118 <CLIParamNum>0</CLIParamNum>
119 <rerunInterval>10</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -0800120 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -0800121 </ONOSCheck>
122
123 <RaftLogSizeCheck>
124 <status>on</status>
125 <typeIndex>15</typeIndex>
126 <typeString>CHECK_RAFT_LOG_SIZE</typeString>
127 <CLI>check-raft-size</CLI>
128 <CLIParamNum>0</CLIParamNum>
129 </RaftLogSizeCheck>
130
131 <LinkDown>
132 <status>on</status>
133 <typeIndex>20</typeIndex>
134 <typeString>NETWORK_LINK_DOWN</typeString>
135 <CLI>link-down</CLI>
136 <CLIParamNum>2</CLIParamNum>
137 </LinkDown>
138
139 <LinkUp>
140 <status>on</status>
141 <typeIndex>21</typeIndex>
142 <typeString>NETWORK_LINK_UP</typeString>
143 <CLI>link-up</CLI>
144 <CLIParamNum>2</CLIParamNum>
145 </LinkUp>
146
147 <DeviceDown>
148 <status>on</status>
149 <typeIndex>22</typeIndex>
150 <typeString>NETWORK_DEVICE_DOWN</typeString>
151 <CLI>device-down</CLI>
152 <CLIParamNum>1</CLIParamNum>
153 </DeviceDown>
154
155 <DeviceUp>
156 <status>on</status>
157 <typeIndex>23</typeIndex>
158 <typeString>NETWORK_DEVICE_UP</typeString>
159 <CLI>device-up</CLI>
160 <CLIParamNum>1</CLIParamNum>
161 </DeviceUp>
162
163 <PortDown>
164 <status>on</status>
165 <typeIndex>24</typeIndex>
166 <typeString>NETWORK_PORT_DOWN</typeString>
167 <CLI>port-down</CLI>
168 <CLIParamNum>2</CLIParamNum>
169 </PortDown>
170
171 <PortUp>
172 <status>on</status>
173 <typeIndex>25</typeIndex>
174 <typeString>NETWORK_PORT_UP</typeString>
175 <CLI>port-up</CLI>
176 <CLIParamNum>2</CLIParamNum>
177 </PortUp>
178
179 <ONOSDown>
180 <status>on</status>
181 <typeIndex>40</typeIndex>
182 <typeString>ONOS_ONOS_DOWN</typeString>
183 <CLI>onos-down</CLI>
184 <CLIParamNum>1</CLIParamNum>
185 <rerunInterval>5</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -0800186 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -0800187 </ONOSDown>
188
189 <ONOSUp>
190 <status>on</status>
191 <typeIndex>41</typeIndex>
192 <typeString>ONOS_ONOS_UP</typeString>
193 <CLI>onos-up</CLI>
194 <CLIParamNum>1</CLIParamNum>
195 <rerunInterval>5</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -0800196 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -0800197 </ONOSUp>
198
199 <SetCfg>
200 <status>on</status>
201 <typeIndex>42</typeIndex>
202 <typeString>ONOS_SET_CFG</typeString>
203 <CLI>set-cfg</CLI>
204 <CLIParamNum>3</CLIParamNum>
205 <rerunInterval>5</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -0800206 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -0800207 </SetCfg>
208
209 <BalanceMasters>
210 <status>on</status>
211 <typeIndex>44</typeIndex>
212 <typeString>ONOS_BALANCE_MASTERS</typeString>
213 <CLI>balance-masters</CLI>
214 <CLIParamNum>0</CLIParamNum>
215 <rerunInterval>5</rerunInterval>
You Wangc61aaa22019-02-01 15:49:48 -0800216 <maxRerunNum>3</maxRerunNum>
You Wang9fc5ce42019-01-23 15:10:08 -0800217 </BalanceMasters>
218
219 <addAllChecks>
220 <status>on</status>
221 <typeIndex>110</typeIndex>
222 <typeString>CHECK_ALL</typeString>
223 <CLI>check-all</CLI>
224 <CLIParamNum>0</CLIParamNum>
225 </addAllChecks>
You Wang9fc5ce42019-01-23 15:10:08 -0800226 </EVENT>
227
228 <SCHEDULER>
229 <pendingEventsCapacity>1</pendingEventsCapacity>
230 <runningEventsCapacity>10</runningEventsCapacity>
231 <scheduleLoopSleep>0.1</scheduleLoopSleep>
232 </SCHEDULER>
233
234 <GENERATOR>
235 <listenerPort>6000</listenerPort>
236 <insertEventRetryInterval>1</insertEventRetryInterval>
237 </GENERATOR>
238
239 <TOPO>
240 <topo10>
241 <fileName>hagg.py</fileName>
242 </topo10>
243 <mininetArgs>--dhcp=1 --routers=1 --ipv6=1 --ipv4=1</mininetArgs>
You Wang469d4ac2019-01-31 12:33:26 -0800244 <loadTopoSleep>120</loadTopoSleep>
You Wangc61aaa22019-02-01 15:49:48 -0800245 <excludeNodes>cs0,cs1,r1,r2,nat,bgp1,bgp2,dhcp,dhcp6</excludeNodes>
You Wang9fc5ce42019-01-23 15:10:08 -0800246 </TOPO>
247
248 <CASE2>
249 <fileName>hagg.json</fileName>
250 <hostFileName>hagg.host</hostFileName>
251 </CASE2>
252
253 <CASE4>
254 <lib>routinglib.py,trellislib.py,trellis_fabric.py</lib>
255 <conf>bgpdbgp1.conf,bgpdbgp2.conf,bgpdr1.conf,bgpdr2.conf,dhcpd6.conf,dhcpd.conf,zebradbgp1.conf,zebradbgp2.conf</conf>
256 </CASE4>
257
258 <CASE70>
You Wang469d4ac2019-01-31 12:33:26 -0800259 <sleepSec>60</sleepSec>
You Wangc61aaa22019-02-01 15:49:48 -0800260 <eventWeight>
261 <port-down>3</port-down>
262 <device-down>2</device-down>
263 <onos-down>1</onos-down>
264 </eventWeight>
265 <skipSwitches>leaf5</skipSwitches>
266 <skipLinks>spine103,spine104,leaf1,leaf6</skipLinks>
You Wang9fc5ce42019-01-23 15:10:08 -0800267 </CASE70>
268
269 <CASE80>
270 <filePath>/home/sdn/log-for-replay</filePath>
You Wangc61aaa22019-02-01 15:49:48 -0800271 <sleepTime>5</sleepTime>
You Wang9fc5ce42019-01-23 15:10:08 -0800272 <skipChecks>on</skipChecks>
273 </CASE80>
274</PARAMS>