Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | ce2a03d | 2017-08-03 19:21:03 -0700 | [diff] [blame] | 2 | ~ Copyright 2016-present Open Networking Foundation |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 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 | |
Ray Milkey | 3271562 | 2016-07-12 10:15:55 -0700 | [diff] [blame] | 19 | <step name="Check-NetworkId-Variable-Exists" |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 20 | exec="test '${networkId}' != ''"/> |
| 21 | |
Claudine Chiu | cc5f03e | 2016-07-14 17:09:04 -0400 | [diff] [blame] | 22 | <step name="Remove-Intent-1" requires="^" |
| 23 | exec="onos -f ${OCI} remove-vnet-intent -p ${networkId} org.onosproject.cli 21"/> |
| 24 | |
| 25 | <step name="Check-intents-removed-1" requires="^" |
| 26 | exec="onos-check-intent ${OCI} 21 WITHDRAWN 1"/> |
| 27 | |
| 28 | <step name="Remove-Intent-2" requires="^" |
| 29 | exec="onos -f ${OCI} remove-vnet-intent -p ${networkId} org.onosproject.cli 12"/> |
| 30 | |
| 31 | <step name="Check-intents-removed-2" requires="^" |
| 32 | exec="onos-check-intent ${OCI} 12 WITHDRAWN 1"/> |
| 33 | |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 34 | <step name="Check-Vnet-Link" requires="^" |
| 35 | exec="onos ${OCI} vnet-links ${networkId}"/> |
| 36 | |
Claudine Chiu | b0d0ada | 2016-06-06 18:03:09 -0400 | [diff] [blame] | 37 | <step name="Remove-Bidirectional-Link" requires="^" |
| 38 | 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] | 39 | |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 40 | <step name="Ping-hosts-2" requires="^" |
| 41 | exec="onos-mininet sendAndExpect h4 ping -c1 h9 --expect \ 100% packet loss"/> |
| 42 | |
| 43 | <step name="Remove-Port-2" requires="^" |
| 44 | exec="onos ${OCI} vnet-remove-port ${networkId} device2 2"/> |
| 45 | |
| 46 | <step name="Remove-Port-1" requires="^" |
| 47 | exec="onos ${OCI} vnet-remove-port ${networkId} device1 1"/> |
| 48 | |
| 49 | <step name="Remove-Device-2" requires="^" |
| 50 | exec="onos ${OCI} vnet-remove-device ${networkId} device2"/> |
| 51 | |
| 52 | <step name="Remove-Device-1" requires="^" |
| 53 | exec="onos ${OCI} vnet-remove-device ${networkId} device1"/> |
| 54 | |
| 55 | <step name="Remove-Vnet" requires="^" |
| 56 | exec="onos ${OCI} vnet-remove ${networkId}"/> |
| 57 | |
Ray Milkey | 3271562 | 2016-07-12 10:15:55 -0700 | [diff] [blame] | 58 | <step name="Check-TenantId-Variable-Exists" requires="^" |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 59 | exec="test '${tenantId}' != ''"/> |
| 60 | |
| 61 | <step name="Remove-Tenant" requires="Check-TenantId-Variable-Exists" |
| 62 | exec="onos ${OCI} vnet-remove-tenant ${tenantId}"/> |
| 63 | |
Claudine Chiu | 0005a4d | 2016-05-25 12:13:43 -0400 | [diff] [blame] | 64 | </group> |
| 65 | </scenario> |