]> 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)
committerGerrit Code Review <review@openstack.org>
Mon, 13 Jan 2014 22:18:56 +0000 (22:18 +0000)
commit965542bfac90194bd032e5e6aeb6a507dcb11088
tree4af6fa8bf495a43087ff120182f7b5808fb46112
parentab1f474ace7105c5676e391ad0c70f496d7f309d
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