modify sc lab pod yaml as real configure
[yardstick.git] / yardstick / benchmark / scenarios / networking / ping6_teardown.bash
1 #!/bin/bash
2
3 ##############################################################################
4 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11 source /opt/admin-openrc.sh
12 # delete VM
13 nova delete VM1
14 nova delete VM2
15 nova delete vRouter
16 #clear routes
17 neutron router-update ipv6-router --routes action=clear
18
19 #VM1,VM2 port delete
20 neutron port-delete --name eth0-VM1
21 neutron port-delete --name eth0-VM2
22
23 #vRouter port delete
24 neutron port-delete --name eth0-vRouter
25 neutron port-delete --name eth1-vRouter
26
27 #delete key
28 nova keypair-delete vRouterKey
29
30 #delete ipv6 router interface
31 neutron router-interface-delete ipv6-router ipv6-int-subnet2
32 neutron router-interface-delete ipv6-router ipv4-int-subnet2
33
34 #delete subnet
35 neutron subnet-delete --name ipv6-int-subnet2
36 neutron subnet-delete --name ipv4-int-subnet2
37
38 #clear gateway
39 neutron router-gateway-clear ipv4-router ext-net
40 neutron router-gateway-clear ipv6-router ext-net
41
42 #delete ipv4 router interface
43 neutron router-interface-delete ipv4-router ipv4-int-subnet1
44 neutron subnet-delete --name ipv4-int-subnet1
45
46 #delete network
47 neutron net-delete ipv6-int-network2
48 neutron net-delete ipv4-int-network1
49
50 # delete router
51 neutron router-delete ipv4-router
52 neutron router-delete ipv6-router
53
54 # delete glance image
55 glance --os-image-api-version 1 image-delete Fedora22