aboutsummaryrefslogtreecommitdiffstats
path: root/test/ete
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:32:55 -0800
commitdec0baa317b55fdda4f8b668eae835b6ac971286 (patch)
tree5506e5ef21de3be914a4947d258968bb8bd7a279 /test/ete
parent0793d6c94e9c8e71af02df2bd40524d3e7136e53 (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/ete')
-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)