From c1b98d0e9ddf623c23cf9341551c8013bf916baa Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 16 Sep 2015 11:09:26 +0100 Subject: Add support for adding a floating IP address to the pool. --- openstack/tester | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openstack/tester') 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 -- cgit v1.2.1