]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove early yields in _iter_hosts in dhcp agent
authorKevin Benton <blak111@gmail.com>
Thu, 17 Sep 2015 16:53:46 +0000 (09:53 -0700)
committerKevin Benton <blak111@gmail.com>
Thu, 17 Sep 2015 17:13:17 +0000 (10:13 -0700)
commit1daf945f832716b98b8c2d630cd2e730178a46fa
tree4ee1d723179f30a96f550c322cc1c8041136b7df
parent7707cfd86f47dfc66411e274f343fe8484f9e250
Remove early yields in _iter_hosts in dhcp agent

There were early yields in the DHCP agent to handling skipping
lease setup for certain IPv6 addresses. However, the setup for
name resolution in _output_addn_hosts_file depends on the same
function so certain IPv6 addresses weren't getting name resolution.

This patch adjusts the function to return a flag indicating that
DHCP isn't required for the port so the callers setting up reservations
can skip based on that and the name resolution setup can continue
as normal.

Change-Id: I81b4669eadaa9119e08c6a5e1d2a7b5959babdcc
Closes-Bug: #1498665
neutron/agent/linux/dhcp.py
neutron/tests/unit/agent/linux/test_dhcp.py