]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add route to metadata IP by default
authorEugene Nikanorov <enikanorov@mirantis.com>
Tue, 2 Jun 2015 02:15:39 +0000 (06:15 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Tue, 2 Jun 2015 02:28:44 +0000 (06:28 +0400)
commitcda0b14112484d4776c7ccb6be78b7e23fdd5424
tree0e6984d103e300c6c48d03301b6e7966c80a335a
parent27322e36e626dfc58f8ba4ddc65cfb7614afc2e2
Add route to metadata IP by default

Windows VMs try to resolve metadata ip 169.254.169.254 as
local address by default, which results in very slow access
to metadata url during boot.
Injecting direct route to metadata ip through a subnet's default
gateway helps Windows to avoid wasting time on mac resolution.

So this patch injects host route for metadata ip for networks plugged
into a router.

Closes-Bug: #1460793

Change-Id: Ic991f9d7f9a8cf942e3e29f2da03d73c0f26470a
neutron/agent/linux/dhcp.py
neutron/tests/unit/agent/linux/test_dhcp.py