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.
Reviewed: https:/ /review. openstack. org/50292 github. com/openstack/ neutron/ commit/ c73b54e50b62c48 9f04432bdbc5bee 678b18226e
Committed: http://
Submitter: Jenkins
Branch: master
commit c73b54e50b62c48 9f04432bdbc5bee 678b18226e
Author: Darragh O'Reilly <email address hidden>
Date: Tue Oct 8 10:36:05 2013 +0000
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: I0e29a2f058564c 267176dab26da00 f6ef579808b
Closes-Bug: 1236783