blob: a574cbafa85d9ef94fcb0719c6509e5d11e5e15e [file] [log] [blame]
Thomas Vachuska4cfcc562015-06-03 09:51:02 -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="basic-net" description="Basic network functionality test">
17 <group name="Basic-Net">
Thomas Vachuska0a4c2702015-07-06 08:43:41 -070018 <step name="Push-Topos" exec="onos-push-topos ${OCN}"/>
19
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070020 <step name="Install-Apps"
Thomas Vachuska0a4c2702015-07-06 08:43:41 -070021 exec="onos ${OC1} app activate org.onosproject.openflow org.onosproject.proxyarp org.onosproject.fwd"/>
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070022 <step name="Check-Apps" requires="Install-Apps"
23 exec="onos-check-apps ${OC1} drivers,openflow,proxyarp,fwd"/>
24
Thomas Vachuska0a4c2702015-07-06 08:43:41 -070025 <step name="Wipe-Out-Data" requires="~Check-Apps"
26 exec="onos ${OC1} wipe-out please"/>
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070027
Thomas Vachuska0a4c2702015-07-06 08:43:41 -070028 <step name="Check-Summary" requires="~Wipe-Out-Data"
29 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
30
31 <step name="Start-Mininet" requires="Install-Apps,Check-Summary,Push-Topos"
32 exec="onos-mininet start topos/att-onos ${ONOS_INSTANCES}"/>
33
34 <step name="Wait-For-Mininet" requires="Install-Apps,Check-Summary"
35 exec="onos-mininet wait 15"/>
36
37 <step name="Check-Summary-Again" requires="Wait-For-Mininet"
38 exec="onos-check-summary ${OC1} [0-9]* 25 112 0"/>
39
40 <step name="Config-Topo" requires="Check-Summary-Again"
41 exec="onos-topo-cfg ${OC1} ${ONOS_ROOT}/tools/test/topos/attmpls.json"/>
42
43 <step name="Check-Summary-Yet-Again" requires="~Config-Topo"
44 exec="onos-check-summary ${OC1} [0-9]* 25 112 25"/>
45
46 <step name="Ping-All" requires="Wait-For-Mininet,~Check-Summary-Again"
47 exec="onos-mininet send py net.pingAll(1)"/>
48
49 <step name="Verify-Ping-All" requires="~Ping-All"
50 exec="onos-mininet expect Results: .* dropped"/>
51
52 <step name="Stop-Mininet" requires="~Verify-Ping-All"
53 exec="onos-mininet stop"/>
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070054 </group>
55</scenario>