Merge "Update db entry before upate the DHCP host file." into stable/folsom
This commit is contained in:
commit
9d307f1663
@ -1321,6 +1321,10 @@ class NetworkManager(manager.SchedulerDependentManager):
|
||||
self.instance_dns_manager.delete_entry(n,
|
||||
self.instance_dns_domain)
|
||||
|
||||
self.db.fixed_ip_update(context, address,
|
||||
{'allocated': False,
|
||||
'virtual_interface_id': None})
|
||||
|
||||
if teardown:
|
||||
network = self._get_network_by_id(context,
|
||||
fixed_ip_ref['network_id'])
|
||||
@ -1347,10 +1351,6 @@ class NetworkManager(manager.SchedulerDependentManager):
|
||||
# callback will get called by nova-dhcpbridge.
|
||||
self.driver.release_dhcp(dev, address, vif['address'])
|
||||
|
||||
self.db.fixed_ip_update(context, address,
|
||||
{'allocated': False,
|
||||
'virtual_interface_id': None})
|
||||
|
||||
def lease_fixed_ip(self, context, address):
|
||||
"""Called by dhcp-bridge when ip is leased."""
|
||||
LOG.debug(_('Leased IP |%(address)s|'), locals(), context=context)
|
||||
|
Loading…
Reference in New Issue
Block a user