diff options
| author | Chuck Short <zulcss@ubuntu.com> | 2011-06-07 10:39:30 -0400 |
|---|---|---|
| committer | Chuck Short <zulcss@ubuntu.com> | 2011-06-07 10:39:30 -0400 |
| commit | 0c3c0ef6e0604e24ab3f2ec25554a867fe64bd45 (patch) | |
| tree | 53a0073d2db760cf9fd34d0ad9d8bfa12269c695 /bin | |
| parent | 4b0b0361ed8d231844344d014412f7b647baae0b (diff) | |
Use IPNetwork rather than IPRange
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 4 |
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)) |
