summaryrefslogtreecommitdiffstats
path: root/ci/clean.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-05-26 19:45:50 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-26 19:45:50 +0000
commitab0214e9baa282aa88108a98ccb040519f2ef76e (patch)
treeb33f0328d815deb7afb8a4f76f5127ffa52512e3 /ci/clean.sh
parent7eb710c246f88a43908d5bbebe33e693d82146d5 (diff)
parent73ae3482ce09b5b561a783ebfd31187b879c6f67 (diff)
Merge "Use linux bridge for virtual deployment"
Diffstat (limited to 'ci/clean.sh')
-rwxr-xr-xci/clean.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/ci/clean.sh b/ci/clean.sh
index 42090069..368ce8bc 100755
--- a/ci/clean.sh
+++ b/ci/clean.sh
@@ -20,6 +20,7 @@ source $CONFIG/lib/common-functions.sh
vm_index=4
ovs_bridges="br-admin br-private br-public br-storage"
+OPNFV_NETWORK_TYPES="admin_network private_network public_network storage_network"
# Clean off instack/undercloud VM
for vm in instack undercloud; do
@@ -39,10 +40,13 @@ for i in $(seq 0 $vm_index); do
rm -f /var/lib/libvirt/images/baremetal${i}.qcow2 2> /dev/null
done
+for network in ${OPNFV_NETWORK_TYPES}; do
+ virsh net-destroy ${network} 2> /dev/null
+ virsh net-undefine ${network} 2> /dev/null
+done
+
# Clean off created bridges
for bridge in ${ovs_bridges}; do
- virsh net-destroy ${bridge} 2> /dev/null | xargs echo -n
- virsh net-undefine ${bridge} 2> /dev/null | xargs echo -n
if detach_interface_from_ovs ${bridge} 2> /dev/null; then
ovs-vsctl del-br ${bridge} 2> /dev/null
fi