From 303a016e7c35d988add1838faad37f4d0432bc00 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Wed, 6 Dec 2017 10:32:55 -0800 Subject: Add commands to clean up resources Change-Id: I7bdcf9f1bbcd3af31165e9da658af01b36cf1238 Issue-ID: INT-278 Signed-off-by: Gary Wu --- test/ete/scripts/deploy-onap.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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) -- cgit 1.2.3-korg