blob: c030e739c763d84d4f144c651183e24f7a20a768 [file] [log] [blame]
Claudine Chiu0005a4d2016-05-25 12:13:43 -04001<!--
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
25 <step name="Remove-Link-1" requires="^"
26 exec="onos ${OCI} vnet-remove-link ${networkId} device1 1 device2 2"/>
27
28 <step name="Remove-Link-2" requires="^"
29 exec="onos ${OCI} vnet-remove-link ${networkId} device2 2 device1 1"/>
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>