]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Teach DHCP Agent about DVR router interfaces
authorBrian Haley <brian.haley@hp.com>
Fri, 3 Oct 2014 21:32:01 +0000 (17:32 -0400)
committerBrian Haley <brian.haley@hp.com>
Tue, 7 Oct 2014 19:22:55 +0000 (15:22 -0400)
commit29250949012e9c0a60b0ddb56ddbf18d7b68106b
tree9fa9625f9ac2060a0c3b93eb5df649d5e14907f9
parent26a17ccf9c507d6cd67410334d6f0883e1d927ea
Teach DHCP Agent about DVR router interfaces

When DVR is enabled and enable_isolated_metadata=True,
the DHCP agent should only inject a metadata host route
when there is no port with the gateway IP address configured
on the subnet.  Add a check for DEVICE_OWNER_DVR_INTERFACE
when we look at each port's device_owner field, otherwise
it will always add this route to the opts file when DVR
is enabled.

Change-Id: I3ff3bb85105b8215b36535983016d8c0ff3d8cb7
Closes-bug: #1377307
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_dhcp_agent.py
neutron/tests/unit/test_linux_dhcp.py