blob: 99f2ec08237acf59738ce87912f3b9fed6c0f0ae [file] [log] [blame]
Claudine Chiue23b4562017-10-18 23:14:05 -04001<!--
2 ~ Copyright 2017-present Open Networking Foundation
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="vnet1-test" description="vnet 1 test">
17 <import file="${ONOS_SCENARIOS}/net-setup.xml"/>
18 <dependency name="Net-Setup"/>
19
20 <import file="${ONOS_SCENARIOS}/net-deactivate-fwd.xml"/>
21 <dependency name="Net-Deactivate-Fwd" requires="Net-Setup"/>
22
23 <step name="Check-ping-does-not-work-1" requires="Net-Deactivate-Fwd"
24 exec="onos-mininet sendAndExpect h1 ping -c3 h2 --expect \ 100% packet loss"/>
25
26 <import file="${ONOS_SCENARIOS}/net-setup-vnet1.xml"/>
27 <dependency name="Net-Setup-Vnet1" requires="Check-ping-does-not-work-1"/>
28
29 <import file="${ONOS_SCENARIOS}/net-activate-fwdvn.xml"/>
30 <dependency name="Net-Activate-Fwdvn" requires="Net-Setup-Vnet1"/>
31
32 <step name="Check-ping-does-work-1" requires="Net-Activate-Fwdvn"
33 exec="onos-mininet sendAndExpect h1 ping -c3 h2 --expect \ 0% packet loss"/>
34
35 <import file="${ONOS_SCENARIOS}/net-deactivate-fwdvn.xml"/>
36 <dependency name="Net-Deactivate-Fwdvn" requires="Check-ping-does-work-1"/>
37
38 <step name="Check-ping-does-not-work-2" requires="Net-Deactivate-Fwdvn"
39 exec="onos-mininet sendAndExpect h1 ping -c3 h2 --expect \ 100% packet loss"/>
40
41 <import file="${ONOS_SCENARIOS}/net-teardown-vnet1.xml"/>
42 <dependency name="Net-Teardown-Vnet1" requires="~Net-Deactivate-Fwdvn,~Check-ping-does-not-work-2"/>
43
44 <import file="${ONOS_SCENARIOS}/net-teardown.xml"/>
45 <dependency name="Net-Teardown" requires="~Net-Teardown-Vnet1"/>
46</scenario>