neutron/neutron/api
Brian Haley 0f3ca4c135 Fix lack of routes for neighbour IPv4 subnets
According to [1], when a network contains more that one IPv4
subnet, they are returned in the 'classless-static-routes'
DHCP option, regardless of whether DHCP is enabled for them
or not.

However, the get_active_networks_info() method used for
synchronizing networks after the dhcp agent restarts filters
subnets with "enable_dhcp=True", which differs from the
get_network_info() method.  This will block VM access to
other VMs in the dhcp disabled subnets, even though they are
in the same network.  This is visible by looking at the "opts"
file before and after a restart.

Change the dhcp agent to ask for all subnets in its
get_active_networks_info() RPC call by adding an
enable_dhcp_filter argument to toggle the behavior, with the
default being True to not break backwards compatibility.

Based on https://review.openstack.org/#/c/352530/ by Quan Tian.

[1] https://review.openstack.org/#/c/125043/

Change-Id: I11ca1d1a603d02587f3b8d4a5a52a96b0587d61f
Closes-Bug: #1652654
(cherry picked from commit 2e34279ec3)
2018-06-01 19:56:52 +00:00
..
rpc Fix lack of routes for neighbour IPv4 subnets 2018-06-01 19:56:52 +00:00
v2 use callback payloads for REQUEST/RESPONSE events 2017-12-24 07:27:11 +00:00
views Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
__init__.py Added API extensions to detect sorting/pagination features 2016-08-01 22:57:15 +02:00
api_common.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
extensions.py Support that an extension extends a sub-resource 2017-11-15 08:59:45 +01:00
versions.py Remove dead versions code 2017-09-19 14:54:33 -07:00