neutron/neutron/tests/unit
Rodolfo Alonso Hernandez 3796c03fd1 Fix queries to retrieve allocations with network_segment_range
Fixed the queries to retrieve the segment ID allocations when service
plugin network_segment_range is enabled. With the previous
implementation, a project user was able to allocate a segment ID
belonging to other project segment range.

The solution implemented was discussed in [1]:
- A project user will retrieve segments from the project ranges.
- When depleted, the segment IDs will be retrieved from the shared
  range, never using another project segment ID.

[1]http://lists.openstack.org/pipermail/openstack-discuss/2020-February/012736.html

Conflicts:
      neutron/objects/network_segment_range.py
      neutron/objects/plugins/ml2/base.py
      neutron/objects/plugins/ml2/vxlanallocation.py
      neutron/objects/plugins/ml2/vlanallocation.py
      neutron/tests/unit/objects/test_network_segment_range.py

Change-Id: I953062d9ee8ee5ee9a9f07aff4a8222ac63ed525
Closes-Bug: #1863423
(cherry picked from commit 046672247d)
(cherry picked from commit bbe401aaf9)
2020-04-30 11:00:41 +00:00
..
agent Merge "Avoid raising NetworkInterfaceNotFound exception in DHCP agent logs" into stable/stein 2020-04-29 05:22:50 +00:00
api Fix bug: AttributeError arises while sorting with standard attributes 2020-02-03 11:02:28 +00:00
cmd Add check for external_network_bridge in neutron-status 2019-03-22 13:14:24 +00:00
common Packets getting lost during SNAT with too many connections 2019-05-20 17:39:47 -04:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
db Merge "Filter by owner SGs when retrieving the SG rules" into stable/stein 2020-04-23 17:22:30 +00:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Fix resource schemas and releated `get_sorts` test cases 2020-01-31 17:30:08 +00:00
hacking remove string use of neutron.common.rpc 2019-02-08 09:40:39 -07:00
ipam Allow first address in an IPv6 subnet as valid unicast 2019-05-22 14:13:31 +00:00
notifiers Refactor the L3 agent batch notifier 2019-09-10 05:40:18 +00:00
objects Fix queries to retrieve allocations with network_segment_range 2020-04-30 11:00:41 +00:00
pecan_wsgi Removing deprecated module neutron.api.versions 2018-03-28 14:15:50 +07:00
plugins Improve VLAN allocations synchronization 2020-04-28 09:17:51 +00:00
privileged Ensure netlink.nla_slot tuple key is a string 2020-04-09 13:43:42 +00:00
quota use get reader/writer session from neutron-lib 2018-07-06 14:43:31 -06:00
scheduler Fix sort issue in test_dhcp_agent_scheduler.test_filter_bindings 2019-08-12 08:16:43 +00:00
services Locate RP-tree parent by hypervisor name 2019-12-23 12:11:14 +01:00
tests Increase timeouts for OVSDB in functional tests 2019-09-13 10:57:02 +00:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Add dependency for service plugin 2019-02-16 00:17:53 +08:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Avoid loading same service plugin more than once 2019-02-21 11:17:02 +01:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py
test_policy.py Fix handling of network:shared field in policy module 2019-05-17 14:14:15 +00:00
test_service.py Fix default RPC worker count 2019-08-02 09:44:32 +01:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
testlib_api.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00