summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-03-20 12:39:10 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-20 12:39:10 +0000
commit256593234e316d831476488a71509c30b961600e (patch)
tree82980d822fbaac61059ea81868d0449c25282f68
parent34dea93ae5adad32c3f88f867ebcf85da78e803c (diff)
parentf91a4783b6daf08573da4b72f55cb1dca68680bd (diff)
Merge "prototypes: bifrost: destroy-env: Delete nodes from vbmc"
-rwxr-xr-xprototypes/bifrost/scripts/destroy-env.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/prototypes/bifrost/scripts/destroy-env.sh b/prototypes/bifrost/scripts/destroy-env.sh
index 338123068..1138da904 100755
--- a/prototypes/bifrost/scripts/destroy-env.sh
+++ b/prototypes/bifrost/scripts/destroy-env.sh
@@ -20,6 +20,10 @@ for vm in $(virsh list --all --name); do
virsh destroy $vm || true
virsh undefine $vm || true
done
+# Delete all hosts from vbmc (look for a port number)
+for vm in $(vbmc list | awk '/[0-9]/{{ print $2 }}'); do
+ vbmc delete $vm
+done
service ironic-conductor stop || true