Re: [Openstack] Python API: Getting a list of floating ips?

2012-11-22 Thread Vishvananda Ishaya
This is an unfortunate consequence of floating ips not being in the original spec for the api and being added in the extension. I do believe the ordering is consistent, but you are probably safer to do a client.floating_ips.list() and filtering the resulting objects based on instance_id.

[Openstack] Python API: Getting a list of floating ips?

2012-11-21 Thread Lars Kellogg-Stedman
Using the Python API, what's the best of getting a list of floating ips assigned to an instance? The Server.addresses dictionary contains *both* fixed and floating ips, and doesn't appear to differentiate between them. E.g: srvr = client.servers.find(name='myinstance') print