Claudine Chiu | ab8d7cd | 2017-11-14 11:39:26 -0500 | [diff] [blame] | 1 | <!-- |
| 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="vnet2-test" description="vnet 2 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 h3 ping -c3 h2 --expect \ 100% packet loss"/> |
| 25 | |
| 26 | <import file="${ONOS_SCENARIOS}/net-setup-vnet2.xml"/> |
| 27 | <dependency name="Net-Setup-Vnet2" 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-Vnet2"/> |
| 31 | |
| 32 | <step name="Check-ping-does-work-1" requires="Net-Activate-Fwdvn" |
| 33 | exec="onos-mininet sendAndExpect h3 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 h3 ping -c3 h2 --expect \ 100% packet loss"/> |
| 40 | |
| 41 | <import file="${ONOS_SCENARIOS}/net-teardown-vnet2.xml"/> |
| 42 | <dependency name="Net-Teardown-Vnet2" 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-Vnet2"/> |
| 46 | </scenario> |