Remove floating IPs in tempest config script

If cleaning leftovers from previous runs we need to remove firslty
all floating IPs.

Change-Id: Iaa8dee12a46b2ee1c9777be326e9c12c163f0667
This commit is contained in:
Sagi Shnaidman 2017-01-16 18:37:05 +02:00
parent a20695b649
commit 0c0a76c23e
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ rm -rf {{ working_dir }}/tempest
## * Clean up network if it exists from previous run
## ::
for i in $(neutron floatingip-list -c id -f value)
do
neutron floatingip-disassociate $i
neutron floatingip-delete $i
done
for i in $(neutron router-list -c id -f value); do neutron router-gateway-clear $i; done
for r in $(neutron router-list -c id -f value); do
for p in $(neutron router-port-list $r -c id -f value); do