neutron/neutron/tests
Rodolfo Alonso Hernandez ab56a5cd65 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/tests/unit/plugins/ml2/drivers/test_type_vlan.py

Change-Id: Id3f71611a00e69c4f22340ca4d05d95e4373cf69
(cherry picked from commit 6eaa6d83d7)
2021-09-10 11:22:53 +02:00
..
common Remove "six" library 2020-07-28 16:55:52 +00:00
contrib [OVN] Unify OVN/OVS compilation 2020-07-07 22:05:59 +00:00
etc Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
fullstack Add minimum bw qos rule validation for network 2021-03-04 14:30:58 +00:00
functional Randomize segmentation ID assignation 2021-09-10 11:22:53 +02:00
unit Randomize segmentation ID assignation 2021-09-10 11:22:53 +02:00
var
__init__.py
base.py Remove "six" library 2020-07-28 16:55:52 +00:00
post_mortem_debug.py
tools.py Remove references to unittest2 library 2020-01-14 09:03:26 +00:00