redhat-imaging/novaimagebuilder — pull request #19 by steveloranz (2014-05-30 21:12:49+00:00)
Title: add and remove floating IPs to a NovaInstance

Change-Id: Id97243058d86384464e30dc80d8728a4fe97faaf

>>> from StackEnvironment import StackEnvironment
>>> se = StackEnvironment()
>>> se.nova.floating_ips.list()
[, ]
>>> instance = se.launch_instance(root_disk=('glance','242b6ad9-a2dc-4e1e-83ce-1fe0d7b0e492'))
>>> instance.floating_ips
[]
>>> instance.add_floating_ip()
>>> instance.floating_ips
[]
>>> instance.remove_floating_ip(instance.floating_ips[0])
>>> instance.floating_ips
[]
>>>