neutron/neutron/tests/unit/objects
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
..
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-14 17:31:31 +02:00
port Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
qos Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04: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 Use BaseDbObjectTestCase in AddressScope UT 2016-10-12 14:17:15 -05: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 Workaround in NetworkSegmentRange OVO until "project_id" migration 2020-04-24 10:33:18 +00:00
test_common_types.py use test tools from neutron-lib 2019-06-05 06:21:04 -06: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 Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_network_segment_range.py Make phynet paramter also is optional when network_segment_range enabled 2021-06-08 11:26:30 +00:00
test_objects.py Add qos_network_policy_id to Port OVO 2019-07-01 11:11:31 +00: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:43:04 +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 security groups via RBAC mechanism 2019-03-09 17:30:14 -06:00
test_rbac_db.py use payloads for RBAC_POLICY events 2019-05-07 08:31:54 -06:00
test_router.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_securitygroup.py Filter by owner SGs when retrieving the SG rules 2020-04-14 18:37:12 +00:00
test_servicetype.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_subnet.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_subnetpool.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00: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