neutron/neutron/common
Rodolfo Alonso Hernandez be1a0daab0 Randomize segmentation ID assignation
If plugin "network_segment_range" is not enabled and a new segment
is required, if no segmentation ID is provided in the request, the
segmentation ID assigned is randomly retrieved from the non
allocated segmentation IDs.

The goal is to improve the concurrent network (and segment) creation.
If several segments are created in parallel, this random query
will return a different segmentation ID to each one, avoiding the
database retry request.

Closes-Bug: #1920923

Conflicts:
    neutron/common/utils.py
    neutron/plugins/ml2/drivers/helpers.py
    neutron/tests/functional/objects/plugins/ml2/test_base.py
    neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py

Change-Id: Id3f71611a00e69c4f22340ca4d05d95e4373cf69
(cherry picked from commit 6eaa6d83d7)
(cherry picked from commit ab56a5cd65)
2021-09-14 17:31:31 +02:00
..
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
_constants.py Auto-remove floating agent gw ports on net/subnet delete 2021-01-26 15:09:42 +04:00
_deprecate.py Fix flake8 N534 untranslated exception message 2018-10-19 15:46:04 -04:00
cache_utils.py Fix return correct cache when reusing port 2020-04-08 12:08:13 +00:00
config.py Enable ovsdb debug messages in functional and fullstack 2021-06-03 18:54:07 +00:00
coordination.py Add a generic coordination lock mechanism 2019-06-06 09:56:58 +08:00
eventlet_utils.py Monkey patch original current_thread _active 2020-05-06 07:44:10 +00: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 Randomize segmentation ID assignation 2021-09-14 17:31:31 +02:00