Skip IP addresses that fail to delete (instead of raising a 500).
Change-Id: Ib30a0736277c90171e92617819ea34109481d8ad
This commit is contained in:
parent
4f09fd0f2f
commit
8868ad47a2
@ -240,7 +240,10 @@ class IPManager(base.Manager):
|
||||
self.up(interface)
|
||||
|
||||
for item in (prev_set - next_set):
|
||||
self.sudo(*fmt_args_delete(item))
|
||||
try:
|
||||
self.sudo(*fmt_args_delete(item))
|
||||
except RuntimeError:
|
||||
LOG.warning('IP could not be deleted: %s' % item)
|
||||
ip, prefix = item
|
||||
if ip.version == 4:
|
||||
self._delete_conntrack_state(ip)
|
||||
|
Loading…
Reference in New Issue
Block a user