Merge "Always attempt to delete entire floating IP range."
This commit is contained in:
commit
b9478a33bb
@ -372,8 +372,11 @@ class FloatingIpCommands(object):
|
|||||||
def delete(self, ip_range):
|
def delete(self, ip_range):
|
||||||
"""Deletes floating ips by range"""
|
"""Deletes floating ips by range"""
|
||||||
for address in self.address_to_hosts(ip_range):
|
for address in self.address_to_hosts(ip_range):
|
||||||
|
try:
|
||||||
db.floating_ip_destroy(context.get_admin_context(),
|
db.floating_ip_destroy(context.get_admin_context(),
|
||||||
str(address))
|
str(address))
|
||||||
|
except exception.FloatingIpNotFoundForAddress as ex:
|
||||||
|
print "Warning: %s" % ex
|
||||||
|
|
||||||
@args('--host', dest="host", metavar='<host>', help='Host')
|
@args('--host', dest="host", metavar='<host>', help='Host')
|
||||||
def list(self, host=None):
|
def list(self, host=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user