blob: 8bcbfa7fcd6b1b55d0488afefbe53486ccefef40 [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 -->
Thomas Vachuska33937c42015-07-15 17:40:32 -070016<scenario name="net-link-down-up" description="Network link up-down test">
Thomas Vachuskae76f6532015-07-08 09:40:53 -070017 <!-- TODO: parametrize this via recipes -->
Thomas Vachuska33937c42015-07-15 17:40:32 -070018 <group name="Net-Link-Down-Up">
Thomas Vachuskae76f6532015-07-08 09:40:53 -070019 <step name="Ping-1"
20 exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect \ 0% packet loss"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070021 <step name="Link-1-Down" requires="~Ping-1"
Thomas Vachuskaa09c0ed2015-07-17 18:58:55 -070022 exec="onos-mininet sendAndExpect link s4 s7 down --expect ."/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070023 <step name="Ping-2" requires="~Link-1-Down"
Thomas Vachuskae76f6532015-07-08 09:40:53 -070024 exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect \ 0% packet loss"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070025 <step name="Link-2-Down" requires="~Ping-2"
Thomas Vachuskaa09c0ed2015-07-17 18:58:55 -070026 exec="onos-mininet sendAndExpect link s4 s5 down --expect ."/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070027 <step name="Ping-3" requires="~Link-2-Down"
28 exec="onos-mininet sendAndExpect h1 ping -c1 -w1 h4 --expect 100% packet loss"/>
29 <step name="Link-1-Up" requires="~Ping-3"
Thomas Vachuskae76f6532015-07-08 09:40:53 -070030 exec="onos-mininet sendAndExpect link s4 s7 up --expect ."/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070031 <step name="Ping-4" requires="~Link-1-Up"
Thomas Vachuskae76f6532015-07-08 09:40:53 -070032 exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect \ 0% packet loss"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070033 <step name="Link-2-Up" requires="~Ping-4"
Thomas Vachuskae76f6532015-07-08 09:40:53 -070034 exec="onos-mininet sendAndExpect link s4 s5 up --expect ."/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070035 <step name="Ping-5" requires="~Link-2-Up"
Thomas Vachuskae76f6532015-07-08 09:40:53 -070036 exec="onos-mininet sendAndExpect h1 ping -c1 h4 --expect \ 0% packet loss"/>
37 </group>
38</scenario>