blob: fe19c33b5f6249d0a10a209271b655a6739305a0 [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
Ray Milkey32715622016-07-12 10:15:55 -070019 <step name="Check-NetworkId-Variable-Exists"
Claudine Chiu0005a4d2016-05-25 12:13:43 -040020 exec="test '${networkId}' != ''"/>
21
Claudine Chiucc5f03e2016-07-14 17:09:04 -040022 <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 Chiu0005a4d2016-05-25 12:13:43 -040034 <step name="Check-Vnet-Link" requires="^"
35 exec="onos ${OCI} vnet-links ${networkId}"/>
36
Claudine Chiub0d0ada2016-06-06 18:03:09 -040037 <step name="Remove-Bidirectional-Link" requires="^"
38 exec="onos -f ${OCI} vnet-remove-link --bidirectional ${networkId} device2 2 device1 1"/>
Claudine Chiu0005a4d2016-05-25 12:13:43 -040039
Claudine Chiu0005a4d2016-05-25 12:13:43 -040040 <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 Milkey32715622016-07-12 10:15:55 -070058 <step name="Check-TenantId-Variable-Exists" requires="^"
Claudine Chiu0005a4d2016-05-25 12:13:43 -040059 exec="test '${tenantId}' != ''"/>
60
61 <step name="Remove-Tenant" requires="Check-TenantId-Variable-Exists"
62 exec="onos ${OCI} vnet-remove-tenant ${tenantId}"/>
63
Claudine Chiu0005a4d2016-05-25 12:13:43 -040064 </group>
65</scenario>