summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2015-09-16 11:09:26 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2015-09-16 14:55:44 +0000
commitc1b98d0e9ddf623c23cf9341551c8013bf916baa (patch)
treec46c08a8c6f3c9da7a32a885556be665689e5ad3
parent93cd6b6b319c1eec4a1f2f2af5e49055443762d4 (diff)
downloadciat-tester-c1b98d0e9ddf623c23cf9341551c8013bf916baa.tar.gz
Add support for adding a floating IP address to the pool.
-rwxr-xr-xopenstack/tester3
1 files changed, 3 insertions, 0 deletions
diff --git a/openstack/tester b/openstack/tester
index 8b6e361..cf89942 100755
--- a/openstack/tester
+++ b/openstack/tester
@@ -214,6 +214,9 @@ class Deployment(object):
if ip.instance_id == None:
free_ip = ip
break
+ else:
+ free_ip = nc.floating_ips.create(
+ nc.floating_ip_pools.list()[0].name)
if free_ip != None:
instance = nc.servers.find(name=hostname)
# TODO: switch back to cli tool, as python