]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Simplify using external routers and metadata
authorDarragh O'Reilly <dara2002-openstack@yahoo.com>
Tue, 8 Oct 2013 10:36:05 +0000 (10:36 +0000)
committerDarragh O'Reilly <dara2002-openstack@yahoo.com>
Wed, 9 Oct 2013 08:41:35 +0000 (08:41 +0000)
commitc73b54e50b62c489f04432bdbc5bee678b18226e
treefa06a2d8788b39a8893f065964d00df4bf362277
parentf3fe7fa575886fde9c4ecc52263d6354a55ab72a
Simplify using external routers and metadata

The dhcp agent only pushes out the metadata
static route when the subnet is isolated, and it
determines that by checking if the gateway_ip is
not set. This makes it tricky to use external
routers and metadata from dhcp at the same time.

This patch changes how the dhcp agent determines
that the subnet is isolated. It now considers it
isolated if there is no Neutron router on it.
This makes it straightforward to use an external
router on a provider network and get the
metadata from the dhcp namespace.

Change-Id: I0e29a2f058564c267176dab26da00f6ef579808b
Closes-Bug: 1236783
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_linux_dhcp.py