blob: 6df7aa34fa3e13ab819116e10727544cd4b88d34 [file] [log] [blame]
Thomas Vachuskae76f6532015-07-08 09:40:53 -07001<!--
2 ~ Copyright 2015 Open Networking Laboratory
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<scenario name="net-setup" description="Network setup steps">
17 <!-- TODO: parametrize this via recipes -->
18 <group name="Net-Setup">
19 <step name="Push-Topos" exec="onos-push-topos ${OCN}"/>
Thomas Vachuska0ec6ff42015-07-17 11:00:02 -070020 <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070021
22 <step name="Install-Apps"
23 exec="onos ${OC1} app activate org.onosproject.openflow org.onosproject.proxyarp org.onosproject.fwd"/>
24
25 <step name="Check-Apps" requires="Install-Apps"
26 exec="onos-check-apps ${OC1} drivers,openflow,proxyarp,fwd"/>
27
28 <step name="Wipe-Out-Data-Before" requires="~Check-Apps" exec="onos-wipe-out"/>
29
30 <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before"
31 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
32
33 <step name="Start-Mininet"
Thomas Vachuska0ec6ff42015-07-17 11:00:02 -070034 requires="Install-Apps,Initial-Summary-Check,Push-Topos,Stop-Mininet-If-Needed"
Thomas Vachuskae76f6532015-07-08 09:40:53 -070035 exec="onos-mininet start topos/topo att-onos.py ${ONOS_INSTANCES}"/>
36
37 <step name="Wait-For-Mininet" requires="Start-Mininet"
Thomas Vachuska0ec6ff42015-07-17 11:00:02 -070038 exec="onos-mininet wait 20"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070039
40 <step name="Check-Summary" requires="Wait-For-Mininet"
Thomas Vachuska2527a0f2015-07-14 11:38:21 -070041 exec="onos-check-summary ${OC1} [0-9]* 25 140 0"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070042
43 <step name="Balance-Masters" requires="Check-Summary"
44 exec="onos ${OC1} balance-masters"/>
45 </group>
46</scenario>