blob: 1312049ceaa29d9fb18ab7325f30384736ae0193 [file] [log] [blame]
Thomas Vachuskae76f6532015-07-08 09:40:53 -07001<!--
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 ~ Copyright 2015-present Open Networking Laboratory
Thomas Vachuskae76f6532015-07-08 09:40:53 -07003 ~
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">
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070017 <!-- Note: This scenario is tailored using 'topo' recipe mechanism; see topos/*.recipe files -->
Thomas Vachuskae76f6532015-07-08 09:40:53 -070018 <group name="Net-Setup">
19 <step name="Push-Topos" exec="onos-push-topos ${OCN}"/>
20
Ray Milkey5baa3da2015-09-16 15:20:22 -070021 <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/>
Thomas Vachuska4d5310c2016-07-14 12:48:39 -070022 <step name="Clean-Mininet-If-Needed" env="~" exec="onos-mininet cleanup" requires="^"/>
Ray Milkey5baa3da2015-09-16 15:20:22 -070023 <step name="Wipe-Out-Data-Before" exec="onos-wipe-out" requires="^"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070024
25 <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before"
26 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
27
Thomas Vachuska36008462016-01-07 15:38:20 -080028 <step name="Config-Topo" requires="~Initial-Summary-Check"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070029 exec="onos-netcfg ${OC1} ${ONOS_ROOT}/tools/test/topos/${ONOS_TOPO}.json"/>
Thomas Vachuska36008462016-01-07 15:38:20 -080030
Thomas Vachuskae76f6532015-07-08 09:40:53 -070031 <step name="Start-Mininet"
Thomas Vachuska36008462016-01-07 15:38:20 -080032 requires="Install-Apps,Config-Topo,Push-Topos,Stop-Mininet-If-Needed"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070033 exec="onos-mininet start topos/topo ${ONOS_TOPO}.py ${ONOS_INSTANCES}"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070034
35 <step name="Wait-For-Mininet" requires="Start-Mininet"
Thomas Vachuska1c152872015-08-26 18:41:10 -070036 exec="onos-mininet wait 10"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070037
Thomas Vachuska541413d2016-04-05 16:37:27 -070038 <step name="ARP-Hosts" requires="~Wait-For-Mininet"
39 exec="onos-mininet sendAndExpect gratuitousArp --expect ."/>
40
41 <step name="Check-Summary" requires="ARP-Hosts"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070042 exec="onos-check-summary ${OC1} [0-9]* ${OTD} ${OTL} ${OTH}"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070043
Thomas Vachuskae827c0e2015-08-04 16:53:18 -070044 <step name="Balance-Masters" requires="~Check-Summary" if="${OC2}"
Thomas Vachuskae76f6532015-07-08 09:40:53 -070045 exec="onos ${OC1} balance-masters"/>
Thomas Vachuskaa02fc812015-07-21 18:37:58 -070046
Ray Milkey627f0e52016-02-24 13:38:29 -080047 <step name="Check-Flows" requires="~Balance-Masters,~Check-Summary" delay="5"
Thomas Vachuska409b9cb2015-07-31 13:07:12 -070048 exec="onos-check-flows ${OC1}"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070049 </group>
Ray Milkey5baa3da2015-09-16 15:20:22 -070050</scenario>