neutron/neutron/tests/unit/api
Brian Haley e905bd8ed9 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:58:18 +00:00
..
rpc Fix lack of routes for neighbour IPv4 subnets 2018-06-01 19:58:18 +00:00
v2 Allow unprivileged users to get their quota usage 2017-08-12 18:21:20 +00:00
__init__.py Send DHCP notifications regardless of agent status 2013-12-19 07:08:19 +00:00
test_api_common.py Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
test_extensions.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_versions.py Pecan: Get loaded by paste deploy 2017-02-17 14:54:27 -06:00