blob: c6683471c0b9a27b315412b5a325a5e57c47feff [file] [log] [blame]
Andrea Campanella60a5a982016-06-20 16:17:18 +02001<!--
2 ~ Copyright 2016-present 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-geant" 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}"/>
20
21 <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/>
22 <step name="Wipe-Out-Data-Before" exec="onos-wipe-out" requires="^"/>
23
24 <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before"
25 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
26
27 <step name="Config-Topo" requires="~Initial-Summary-Check"
28 exec="onos-netcfg ${OC1} ${ONOS_ROOT}/tools/test/topos/geantmpls-cfg.json"/>
29
30 <step name="Start-Mininet"
31 requires="Install-Apps,Config-Topo,Push-Topos,Stop-Mininet-If-Needed"
32 exec="onos-mininet start topos/topo geantmpls.py ${ONOS_INSTANCES}"/>
33
34 <step name="Wait-For-Mininet" requires="Start-Mininet"
35 exec="onos-mininet wait 10"/>
36
37 <step name="ARP-Hosts" requires="~Wait-For-Mininet"
38 exec="onos-mininet sendAndExpect gratuitousArp --expect ."/>
39
40 <step name="Check-Summary" requires="ARP-Hosts"
Andrea Campanellaad509f92016-06-21 15:06:12 +020041 exec="onos-check-summary ${OC1} [0-9]* 31 108 31"/>
Andrea Campanella60a5a982016-06-20 16:17:18 +020042
43 <step name="Balance-Masters" requires="~Check-Summary" if="${OC2}"
44 exec="onos ${OC1} balance-masters"/>
45
46 <step name="Check-Flows" requires="~Balance-Masters,~Check-Summary" delay="5"
47 exec="onos-check-flows ${OC1}"/>
48 </group>
49</scenario>