summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTrey Morris <trey.morris@rackspace.com>2011-06-10 16:55:27 -0500
committerTrey Morris <trey.morris@rackspace.com>2011-06-10 16:55:27 -0500
commit878468db557b4498528d57804a1808388d7993ec (patch)
treea580f0884e465e6e687f77330ccf4b4f66692055 /bin
parenta442e9d3fb00b9a39b39586f1d3752b4f96dee8a (diff)
floating ips can now move around the network hosts
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 187db0c86..16b0cd1dd 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -518,13 +518,12 @@ class FixedIpCommands(object):
class FloatingIpCommands(object):
"""Class for managing floating ip."""
- def create(self, host, range):
- """Creates floating ips for host by range
- arguments: host ip_range"""
+ def create(self, range):
+ """Creates floating ips for zone by range
+ arguments: ip_range"""
for address in IPy.IP(range):
db.floating_ip_create(context.get_admin_context(),
- {'address': str(address),
- 'host': host})
+ {'address': str(address)})
def delete(self, ip_range):
"""Deletes floating ips by range
@@ -535,7 +534,8 @@ class FloatingIpCommands(object):
def list(self, host=None):
"""Lists all floating ips (optionally by host)
- arguments: [host]"""
+ arguments: [host]
+ Note: if host is given, only active floating IPs are returned"""
ctxt = context.get_admin_context()
if host is None:
floating_ips = db.floating_ip_get_all(ctxt)