summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChuck Short <zulcss@ubuntu.com>2011-06-07 10:39:30 -0400
committerChuck Short <zulcss@ubuntu.com>2011-06-07 10:39:30 -0400
commit0c3c0ef6e0604e24ab3f2ec25554a867fe64bd45 (patch)
tree53a0073d2db760cf9fd34d0ad9d8bfa12269c695 /bin
parent4b0b0361ed8d231844344d014412f7b647baae0b (diff)
Use IPNetwork rather than IPRange
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 5ac0b8a0c..1f8ccf268 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -513,7 +513,7 @@ class FloatingIpCommands(object):
def create(self, host, range):
"""Creates floating ips for host by range
arguments: host ip_range"""
- for address in netaddr.IPRange(range):
+ for address in netaddr.IPNetwork(range):
db.floating_ip_create(context.get_admin_context(),
{'address': str(address),
'host': host})
@@ -521,7 +521,7 @@ class FloatingIpCommands(object):
def delete(self, ip_range):
"""Deletes floating ips by range
arguments: range"""
- for address in netaddr.IPRange(ip_range):
+ for address in netaddr.IPNetwork(ip_range):
db.floating_ip_destroy(context.get_admin_context(),
str(address))