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

Change-Id: Id3f71611a00e69c4f22340ca4d05d95e4373cf69
(cherry picked from commit 6eaa6d83d7)
(cherry picked from commit ab56a5cd65)
2021-09-10 11:27:15 +02:00
..
agent [stable only] Disable functional IPv6 GRE tests 2021-08-03 15:30:48 +02:00
api Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
cmd Deprecate config option "ovs_integration_bridge" 2020-02-17 11:02:16 +00:00
common All functional tests logs results now 2018-11-21 19:58:18 +00:00
db Remove FT "test_has_offline_migrations_*" tests 2021-04-07 09:17:48 +00:00
objects Randomize segmentation ID assignation 2021-09-10 11:27:15 +02:00
pecan_wsgi Remove references to unittest2 library 2020-01-14 09:03:26 +00:00
plugins [ovn]: Create neutron_pg_drop Port Group on init 2021-07-27 08:42:02 -05:00
privileged Migrate "netstat" to oslo.privsep 2021-02-25 09:55:41 +01:00
resources [OVN] Add OVN functional tests - part 1 2020-02-18 13:33:52 +00:00
sanity Use pyroute2 for SRIOV VF commands 2020-06-26 06:09:48 +00:00
scheduler Add binding_index to NetworkDhcpAgentBinding 2019-08-29 12:52:07 +04:00
services Revert "DVR: Remove control plane arp updates for DVR" 2021-03-09 13:08:28 +00:00
tests Mark NetcatTesterTestCase tests as unstable 2020-02-14 14:08:52 +00:00
__init__.py tests: removed 'retargetable' framework 2017-05-02 16:45:49 +00:00
base.py [ovn]: Create neutron_pg_drop Port Group on init 2021-07-27 08:42:02 -05:00
constants.py TrunkManager for the OVS agent 2016-08-24 02:52:17 -04:00
requirements.txt [ussuri] Fix tests with new pip resolver 2020-12-16 09:53:09 +01:00
test_server.py Use "multiprocessing.Queue" for "TestNeutronServer" related tests 2021-07-02 10:00:29 +00:00
test_service.py Modify api and rpc default number of workers 2019-02-19 13:24:01 -07:00