blob: 7c3571f2f1e4dee9f24097f91b2cc79f0a4b854d [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
22 <step name="Check-Vnet-Link" requires="^"
23 exec="onos ${OCI} vnet-links ${networkId}"/>
24
Claudine Chiub0d0ada2016-06-06 18:03:09 -040025 <step name="Remove-Bidirectional-Link" requires="^"
26 exec="onos -f ${OCI} vnet-remove-link --bidirectional ${networkId} device2 2 device1 1"/>
Claudine Chiu0005a4d2016-05-25 12:13:43 -040027
Claudine Chiub0d0ada2016-06-06 18:03:09 -040028 <step name="Check-intents-removed" requires="^"
29 exec="onos-check-intent ${OCI} networkId=${networkId} IGNORE_STATE 0"/>
Claudine Chiu0005a4d2016-05-25 12:13:43 -040030
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
Ray Milkey32715622016-07-12 10:15:55 -070049 <step name="Check-TenantId-Variable-Exists" requires="^"
Claudine Chiu0005a4d2016-05-25 12:13:43 -040050 exec="test '${tenantId}' != ''"/>
51
52 <step name="Remove-Tenant" requires="Check-TenantId-Variable-Exists"
53 exec="onos ${OCI} vnet-remove-tenant ${tenantId}"/>
54
Claudine Chiu0005a4d2016-05-25 12:13:43 -040055 </group>
56</scenario>