]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Adds default route to DHCP namespace for upstream name resolution.
authorCarl Baldwin <carl.baldwin@hp.com>
Fri, 31 May 2013 20:44:14 +0000 (20:44 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Wed, 19 Jun 2013 15:32:35 +0000 (15:32 +0000)
commit5dd0cf15463e181b92c8809c2dcc7603bb156a0e
tree71b1c27ef0312b9198528a5d4a4fda49edfbd710
parenta0f8d5a35454a54766af3494fcd16233434364e7
Adds default route to DHCP namespace for upstream name resolution.

Any time the DHCP server is updated this code will maintain a default
route in the DHCP namespace using the gateway_ip attribute of the
first DHCP-enabled IPV4 subnet in the list of subnets where gateway_ip
is not None.  This strategy uses the same gateway ip that the DHCP
server hands to the VMs on the network.

Change-Id: I0807550a848e1b610c7775d215643ad9c83629ed
Fixes: Bug #1181378
quantum/agent/dhcp_agent.py
quantum/tests/unit/test_dhcp_agent.py