From 5a3424849d2e64d0cb0de60cb55091df6dfba75d Mon Sep 17 00:00:00 2001 From: blsaws Date: Mon, 14 Mar 2016 14:20:06 -0700 Subject: Add security group removal JIRA: COPPER-4 Change-Id: I6216b7e98c86e839506170fe0a42e2a45b25e7d8 Signed-off-by: blsaws --- tests/adhoc/dmz01-clean.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/adhoc/dmz01-clean.sh b/tests/adhoc/dmz01-clean.sh index fff7dea..69f8754 100644 --- a/tests/adhoc/dmz01-clean.sh +++ b/tests/adhoc/dmz01-clean.sh @@ -38,6 +38,10 @@ instance=$(nova list | awk "/ cirros2 / { print \$2 }") if [ "$instance" != "" ]; then nova delete $instance fi +sg=$(neutron security-group-list | awk "/ dmz / { print \$2 }") + +neutron security-group-delete $sg + router=$(neutron router-list | awk "/ test_router / { print \$2 }") test_internal_interface=$(neutron router-port-list $router | grep 10.0.0.1 | awk '{print $2}') -- cgit 1.2.3-korg