blob: e461674290bcd7616b41bf70eb0b7dda1e13c6f4 [file] [log] [blame]
Claudine Chiue23b4562017-10-18 23:14:05 -04001<!--
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-vnet1" description="Virtual Network (vnet1) teardown steps">
17 <group name="Net-Teardown-Vnet1">
18
19 <step name="Check-NetworkId-Variable-Exists" exec="test '${networkId}' != ''"/>
20
21 <step name="Set-VirtualDevice-Teardown" unless="${virtualDevice}"
22 exec="echo @stc virtualDevice=of:1122334455660001"/>
23
24 <step name="Set-VirtualHost1-Id-Teardown" unless="${virtualHost1Id}"
25 exec="echo @stc virtualHost1Id=3A:13:39:73:9F:83"/>
26
27 <step name="Set-VirtualHost2-Id-Teardown" unless="${virtualHost2Id}"
28 exec="echo @stc virtualHost2Id=7A:64:F7:85:9B:31"/>
29
30 <step name="Remove-VirtualHost-2" requires="^"
31 exec="onos ${OCI} vnet-remove-host ${networkId} ${virtualHost2Id}/None"/>
32
33 <step name="Remove-VirtualHost-1" requires="^"
34 exec="onos ${OCI} vnet-remove-host ${networkId} ${virtualHost1Id}/None"/>
35
36 <step name="Remove-VirtualPort-2" requires="^"
37 exec="onos ${OCI} vnet-remove-port ${networkId} ${virtualDevice} 2"/>
38
39 <step name="Remove-VirtualPort-1" requires="^"
40 exec="onos ${OCI} vnet-remove-port ${networkId} ${virtualDevice} 1"/>
41
42 <step name="Remove-VirtualDevice-1" requires="^"
43 exec="onos ${OCI} vnet-remove-device ${networkId} ${virtualDevice}"/>
44
45 <step name="Remove-Vnet" requires="^"
46 exec="onos ${OCI} vnet-remove ${networkId}"/>
47
48 <step name="Check-TenantId-Variable-Exists" requires="^"
49 exec="test '${tenantId}' != ''"/>
50
51 <step name="Remove-Tenant" requires="Check-TenantId-Variable-Exists"
52 exec="onos ${OCI} vnet-remove-tenant ${tenantId}"/>
53
54 </group>
55</scenario>