]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use information from the dnsmasq hosts file to call dhcp_release
authorCarl Baldwin <carl.baldwin@hp.com>
Tue, 12 Nov 2013 22:52:47 +0000 (22:52 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:11 +0000 (15:20 +0800)
commit587836da40e2b87de065361cc204a3469622b4cc
tree1716fc3624e5d9810ad17964588546e2b5a4b1a0
parentc8515c24782c88f2802a22fe968fb01b584920c1
Use information from the dnsmasq hosts file to call dhcp_release

Certain situations can cause the DHCP agent's local cache to get out
of sync with the leases held internally by dnsmasq.  This method of
detecting when to call dhcp_release is idempotent and not dependent on
the cache.  It is more robust.

Change-Id: I4eafd9cfb94a77a2f0229f89de5483dad23725cf
Closes-Bug: #1250644
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_linux_dhcp.py