fix nova-manage floating delete
use address_to_hosts bug 953716 Change-Id: I041b12204028d43a30cc412a8ea6c17f1fc6f6ff
This commit is contained in:
parent
da23487487
commit
22ee7378c6
@ -660,7 +660,7 @@ class FloatingIpCommands(object):
|
||||
@args('--ip_range', dest="ip_range", metavar='<range>', help='IP range')
|
||||
def delete(self, ip_range):
|
||||
"""Deletes floating ips by range"""
|
||||
for address in self.network_to_host_list(netaddr.IPNetwork(ip_range)):
|
||||
for address in self.address_to_hosts(ip_range):
|
||||
db.floating_ip_destroy(context.get_admin_context(),
|
||||
str(address))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user