neutron/neutron/tests/unit/objects
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
..
db remove the neutron.db._model_query module 2019-01-25 08:55:25 -07:00
logapi Enable an update test in UT of logging 2017-07-07 12:01:49 +09:00
plugins Randomize segmentation ID assignation 2021-09-10 11:27:15 +02:00
port Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
qos Remove QoS related objects unneeded compatibility conversions 2019-09-27 12:06:07 +00:00
__init__.py objects.base: avoid db access if object does not have changes 2015-07-03 02:02:17 +03:00
test_address_scope.py Allow sharing of address scopes via RBAC mechanism 2020-03-19 16:51:39 +02:00
test_agent.py New agent attribute: resources_synced 2019-02-21 13:45:15 +01:00
test_auto_allocate.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_base.py Allow sharing of address scopes via RBAC mechanism 2020-03-19 16:51:39 +02:00
test_conntrack_helper.py Conntrack Helper - OVO and db script 2019-05-20 18:00:18 +02:00
test_flavor.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_floatingip.py Refactoring _create_test methods for OVO UTs 2017-04-17 12:05:19 -07:00
test_ipam.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_l3_hamode.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_l3agent.py Add specific values to specific fields in get_random_object_fields() 2017-07-25 15:16:25 +09:00
test_metering.py Metering to OVO 2017-04-26 11:44:58 -07:00
test_network.py Allow sharing of address scopes via RBAC mechanism 2020-03-19 16:51:39 +02:00
test_network_segment_range.py Make phynet paramter also is optional when network_segment_range enabled 2021-06-08 11:25:58 +00:00
test_objects.py Allow sharing of subnet pools via RBAC mechanism 2020-04-09 19:02:47 +03:00
test_port_forwarding.py Support fetching specific db column in OVO 2018-12-11 19:29:28 +00:00
test_ports.py Auto-delete dhcp ports on segment delete 2020-07-13 12:40:18 +02:00
test_provisioning_blocks.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_quota.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_rbac.py Allow sharing of subnet pools via RBAC mechanism 2020-04-09 19:02:47 +03:00
test_rbac_db.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
test_router.py Ensure there is always at most 1 dvr fip gw port per agent and network 2020-02-07 08:32:33 +00:00
test_securitygroup.py Allow sharing of address scopes via RBAC mechanism 2020-03-19 16:51:39 +02:00
test_servicetype.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_subnet.py Serialize subnet creating depending on the network ID 2019-12-02 17:19:03 +00:00
test_subnetpool.py Allow sharing of subnet pools via RBAC mechanism 2020-04-09 19:02:47 +03:00
test_tag.py Refactoring _create_test methods for OVO UTs 2017-04-17 12:05:19 -07:00
test_trunk.py use trunk constants from neutron-lib 2019-04-23 13:54:11 -06:00