neutron/neutron/common
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
..
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
_constants.py Fix queries to retrieve allocations with network_segment_range 2020-04-30 11:00:41 +00:00
_deprecate.py Fix flake8 N534 untranslated exception message 2018-10-19 15:46:04 -04:00
cache_utils.py Remove deprecated cache_url 2017-11-10 00:47:19 -05:00
config.py remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
constants.py move neutron only common constants to private module 2020-04-28 09:17:51 +00:00
eventlet_utils.py Windows: fix exec calls 2018-02-01 17:05:28 +02:00
ipv6_utils.py Allow Ipv6 addresses for nova_metadata_host 2018-10-11 02:07:05 +00:00
profiler.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
test_lib.py Revert "Removed test_lib module" 2015-06-29 08:27:41 +00:00
utils.py Add trunk subports to be one of dvr serviced device owners 2020-04-05 21:40:09 +02:00