blob: f21c563b1a5134ab6e017dc4d1d9fb0686c0fe4a [file] [log] [blame]
Claudine Chiuab8d7cd2017-11-14 11:39:26 -05001<!--
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="net-teardown-vnet2" description="Virtual Network (vnet2) teardown steps">
17 <group name="Net-Teardown-Vnet2">
18
19 <step name="Check-NetworkId-Variable-Exists" exec="test '${networkId}' != ''"/>
20
21 <step name="Set-VirtualDevice1-Teardown" unless="${virtualDevice1}"
22 exec="echo @stc virtualDevice1=of:1122334455660003"/>
23
24 <step name="Set-VirtualDevice2-Teardown" unless="${virtualDevice2}"
25 exec="echo @stc virtualDevice2=of:1122334455660004"/>
26
27 <step name="Set-VirtualHost1-Id-Teardown" unless="${virtualHost1Id}"
28 exec="echo @stc virtualHost1Id=00:00:00:00:00:03"/>
29
30 <step name="Set-VirtualHost2-Id-Teardown" unless="${virtualHost2Id}"
31 exec="echo @stc virtualHost2Id=00:00:00:00:00:02"/>
32
33 <step name="Remove-Bidirectional-VirtualLink" requires="^"
Ray Milkey481ec332018-03-09 13:47:23 -080034 exec="onos ${OCI} vnet-remove-link --bidirectional ${networkId} ${virtualDevice2} 2 ${virtualDevice1} 2"/>
Claudine Chiuab8d7cd2017-11-14 11:39:26 -050035
36 <step name="Show-VirtualLink-Teardown" requires="^"
37 exec="onos ${OCI} vnet-links ${networkId}"/>
38
39 <step name="Remove-VirtualHost-2" requires="^"
40 exec="onos ${OCI} vnet-remove-host ${networkId} ${virtualHost2Id}/None"/>
41
42 <step name="Remove-VirtualHost-1" requires="^"
43 exec="onos ${OCI} vnet-remove-host ${networkId} ${virtualHost1Id}/None"/>
44
45 <step name="Show-VirtualHosts-Teardown" requires="^"
46 exec="onos ${OCI} vnet-hosts ${networkId}"/>
47
48 <step name="Remove-VirtualPort-11" requires="^"
49 exec="onos ${OCI} vnet-remove-port ${networkId} ${virtualDevice1} 1"/>
50
51 <step name="Remove-VirtualPort-12" requires="^"
52 exec="onos ${OCI} vnet-remove-port ${networkId} ${virtualDevice1} 2"/>
53
54 <step name="Remove-VirtualPort-21" requires="^"
55 exec="onos ${OCI} vnet-remove-port ${networkId} ${virtualDevice2} 1"/>
56
57 <step name="Remove-VirtualPort-22" requires="^"
58 exec="onos ${OCI} vnet-remove-port ${networkId} ${virtualDevice2} 2"/>
59
60 <step name="Remove-VirtualDevice-1" requires="^"
61 exec="onos ${OCI} vnet-remove-device ${networkId} ${virtualDevice1}"/>
62
63 <step name="Remove-VirtualDevice-2" requires="^"
64 exec="onos ${OCI} vnet-remove-device ${networkId} ${virtualDevice2}"/>
65
66 <step name="Remove-Vnet" requires="^"
67 exec="onos ${OCI} vnet-remove ${networkId}"/>
68
69 <step name="Check-TenantId-Variable-Exists" requires="^"
70 exec="test '${tenantId}' != ''"/>
71
72 <step name="Remove-Tenant" requires="Check-TenantId-Variable-Exists"
73 exec="onos ${OCI} vnet-remove-tenant ${tenantId}"/>
74 </group>
75</scenario>