neutron/neutron/tests/unit/api
Brian Haley 2e34279ec3 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
2018-05-17 22:31:44 -04:00
..
rpc Fix lack of routes for neighbour IPv4 subnets 2018-05-17 22:31:44 -04:00
v2 pecan.jsonify v1.3 adjustment 2018-04-18 15:37: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 Support that an extension extends a sub-resource 2017-11-15 08:59:45 +01:00