]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use 0.0.0.0/0 host route as router option
authorVishvananda Ishaya <vishvananda@gmail.com>
Mon, 10 Jun 2013 21:37:26 +0000 (14:37 -0700)
committerVishvananda Ishaya <vishvananda@gmail.com>
Wed, 26 Jun 2013 18:01:11 +0000 (11:01 -0700)
commit86088a2241e6caaa31974b38f8024795c3d032f0
tree08e90c045ce77f81d4297a79f8868364d6f70230
parent090432c130426248204451340933454d072dc3ab
Use 0.0.0.0/0 host route as router option

There is a currently a hacky way to get the dhcp-agent to hand out a
gateway route using a host route on the subnet. If you pass a route
that has 0.0.0.0/0 as its destination, dnsmasq will pass it as a static
route. Unfortunately it will also pass the router option if the subnet
has a gateway set. This is inconsistent and precludes users from options
that are available in nova-network like using an external gateway.

This patch fixes things by allowing a 0.0.0.0/0 host route to override
the router setting passed by dnsmasq. This prevents the situation
where dnsmasq hands out two default routes.

Change-Id: Ia70223070bfd437f1c2eb48fde94491d7ee61fcb
quantum/agent/linux/dhcp.py
quantum/tests/unit/test_linux_dhcp.py