blob: 551db085924952fa1ebb9be7bbdee94f99d91db6 [file] [log] [blame]
Thomas Vachuskae76f6532015-07-08 09:40:53 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2015-present Open Networking Foundation
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 -->
Thomas Vachuska33937c42015-07-15 17:40:32 -070016<scenario name="net-link-down-up" description="Network link up-down test">
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070017 <!-- Note: This scenario is tailored using 'topo' recipe mechanism; see topos/*.recipe files -->
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"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070020 exec="onos-mininet sendAndExpect ${OPS} ping -c1 ${OPD} --expect \ 0% packet loss"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070021 <step name="Link-1-Down" requires="~Ping-1"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070022 exec="onos-mininet sendAndExpect link ${OPL1} down --expect ."/>
Ray Milkey6e968e12015-09-18 09:55:07 -070023 <step name="Ping-2-Prep" requires="~Link-1-Down"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070024 exec="onos-mininet sendAndExpect ${OPS} ping -c5 ${OPD} --expect ."/>
Ray Milkey6e968e12015-09-18 09:55:07 -070025 <step name="Ping-2" requires="~Ping-2-Prep"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070026 exec="onos-mininet sendAndExpect ${OPS} ping -c1 ${OPD} --expect \ 0% packet loss"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070027 <step name="Link-2-Down" requires="~Ping-2"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070028 exec="onos-mininet sendAndExpect link ${OPL2} down --expect ."/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070029 <step name="Ping-3" requires="~Link-2-Down"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070030 exec="onos-mininet sendAndExpect ${OPS} ping -c1 -w1 ${OPD} --expect 100% packet loss"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070031 <step name="Link-1-Up" requires="~Ping-3"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070032 exec="onos-mininet sendAndExpect link ${OPL1} up --expect ."/>
Ray Milkey6e968e12015-09-18 09:55:07 -070033 <step name="Ping-4-Prep" requires="~Link-1-Up"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070034 exec="onos-mininet sendAndExpect ${OPS} ping -c5 ${OPD} --expect ."/>
Ray Milkey6e968e12015-09-18 09:55:07 -070035 <step name="Ping-4" requires="~Ping-4-Prep"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070036 exec="onos-mininet sendAndExpect ${OPS} ping -c1 ${OPD} --expect \ 0% packet loss"/>
Thomas Vachuska1c152872015-08-26 18:41:10 -070037 <step name="Link-2-Up" requires="~Ping-4"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070038 exec="onos-mininet sendAndExpect link ${OPL2} up --expect ."/>
Ray Milkey6e968e12015-09-18 09:55:07 -070039 <step name="Ping-5-Prep" requires="~Link-2-Up"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070040 exec="onos-mininet sendAndExpect ${OPS} ping -c5 ${OPD} --expect ."/>
Ray Milkey6e968e12015-09-18 09:55:07 -070041 <step name="Ping-5" requires="~Ping-5-Prep"
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -070042 exec="onos-mininet sendAndExpect ${OPS} ping -c1 ${OPD} --expect \ 0% packet loss"/>
Thomas Vachuskae76f6532015-07-08 09:40:53 -070043 </group>
Ray Milkey6e968e12015-09-18 09:55:07 -070044</scenario>