Merge "Make nova-network use FixedIP for timeouts"
This commit is contained in:
commit
69219acd7d
@ -358,9 +358,9 @@ class NetworkManager(manager.Manager):
|
|||||||
now = timeutils.utcnow()
|
now = timeutils.utcnow()
|
||||||
timeout = CONF.fixed_ip_disassociate_timeout
|
timeout = CONF.fixed_ip_disassociate_timeout
|
||||||
time = now - datetime.timedelta(seconds=timeout)
|
time = now - datetime.timedelta(seconds=timeout)
|
||||||
num = self.db.fixed_ip_disassociate_all_by_timeout(context,
|
num = fixed_ip_obj.FixedIP.disassociate_all_by_timeout(context,
|
||||||
self.host,
|
self.host,
|
||||||
time)
|
time)
|
||||||
if num:
|
if num:
|
||||||
LOG.debug(_('Disassociated %s stale fixed ip(s)'), num)
|
LOG.debug(_('Disassociated %s stale fixed ip(s)'), num)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user