]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Skip adding ips from non dhcp enabled subnets to hosts file
authorItsuro Oda <oda@valinux.co.jp>
Tue, 6 Jan 2015 00:35:25 +0000 (09:35 +0900)
committerItsuro Oda <oda@valinux.co.jp>
Tue, 6 Jan 2015 00:41:01 +0000 (09:41 +0900)
commitdc3ab47b21d444774bcc70fde6f6763c22dc8ae1
tree5070fcfd32ff48512c61803009b73029126fffba
parent197838bb7dbd288da641ea62922638ff2e5cda0f
Skip adding ips from non dhcp enabled subnets to hosts file

If a network had a mix of dhcp and non dhcp enabled subnets,
then ips from all subnets were added to the hosts file.
This fix ensures only ips from dhcp enabled subnets are added.

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