summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-12-06 10:32:55 -0800
committerGary Wu <gary.i.wu@huawei.com>2017-12-06 10:34:31 -0800
commit303a016e7c35d988add1838faad37f4d0432bc00 (patch)
treee7f22bd174fb76a0a0e106035eb06675b4bfce73 /test
parentb058e493280568e05cd3e8f44e157cb585ae1df8 (diff)
Add commands to clean up resources
Change-Id: I7bdcf9f1bbcd3af31165e9da658af01b36cf1238 Issue-ID: INT-278 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/ete/scripts/deploy-onap.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ete/scripts/deploy-onap.sh b/test/ete/scripts/deploy-onap.sh
index fc737440e..5c74da7c9 100755
--- a/test/ete/scripts/deploy-onap.sh
+++ b/test/ete/scripts/deploy-onap.sh
@@ -21,6 +21,14 @@ else
echo "No existing stacks to delete."
fi
+# miscellaneous cleanup
+openstack floating ip delete $(openstack floating ip list -c ID -f value)
+openstack port delete $(openstack port list -f value -c ID)
+openstack router delete $(openstack router list -f value -c ID)
+openstack port delete $(openstack port list -f value -c ID)
+openstack router delete $(openstack router list -f value -c ID)
+openstack port delete $(openstack port list -f value -c ID)
+openstack volume delete $(openstack volume list -f value -c ID)