Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2016-present 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="net-teardown-vnets" description="Network (vnets) teardown steps"> |
| 17 | <group name="Net-Teardown-Vnets"> |
| 18 | |
| 19 | <step name="Check-NetworkId-Variable-Exists" |
| 20 | exec="test '${networkId}' != ''"/> |
| 21 | |
| 22 | <step name="Check-Vnet-Link" requires="^" |
| 23 | exec="onos ${OCI} vnet-links ${networkId}"/> |
| 24 | |
Claudine Chiu | b0d0ada | 2016-06-06 18:03:09 -0400 | [diff] [blame] | 25 | <step name="Remove-Bidirectional-Link" requires="^" |
| 26 | exec="onos -f ${OCI} vnet-remove-link --bidirectional ${networkId} device2 2 device1 1"/> |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 27 | |
Claudine Chiu | b0d0ada | 2016-06-06 18:03:09 -0400 | [diff] [blame] | 28 | <step name="Check-intents-removed" requires="^" |
| 29 | exec="onos-check-intent ${OCI} networkId=${networkId} IGNORE_STATE 0"/> |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 30 | |
| 31 | <step name="Ping-hosts-2" requires="^" |
| 32 | exec="onos-mininet sendAndExpect h4 ping -c1 h9 --expect \ 100% packet loss"/> |
| 33 | |
| 34 | <step name="Remove-Port-2" requires="^" |
| 35 | exec="onos ${OCI} vnet-remove-port ${networkId} device2 2"/> |
| 36 | |
| 37 | <step name="Remove-Port-1" requires="^" |
| 38 | exec="onos ${OCI} vnet-remove-port ${networkId} device1 1"/> |
| 39 | |
| 40 | <step name="Remove-Device-2" requires="^" |
| 41 | exec="onos ${OCI} vnet-remove-device ${networkId} device2"/> |
| 42 | |
| 43 | <step name="Remove-Device-1" requires="^" |
| 44 | exec="onos ${OCI} vnet-remove-device ${networkId} device1"/> |
| 45 | |
| 46 | <step name="Remove-Vnet" requires="^" |
| 47 | exec="onos ${OCI} vnet-remove ${networkId}"/> |
| 48 | |
| 49 | <step name="Check-TenantId-Variable-Exists" requires="^" |
| 50 | exec="test '${tenantId}' != ''"/> |
| 51 | |
| 52 | <step name="Remove-Tenant" requires="Check-TenantId-Variable-Exists" |
| 53 | exec="onos ${OCI} vnet-remove-tenant ${tenantId}"/> |
| 54 | |
| 55 | <step name="Enable-FwdApp" requires="^" if="echo $ONOS_APPS | grep -w fwd" |
| 56 | exec="onos ${OCI} onos:app activate org.onosproject.fwd"/> |
| 57 | |
| 58 | </group> |
| 59 | </scenario> |