neutron/neutron/tests/unit/plugins/ml2/drivers
Rodolfo Alonso Hernandez f628905279 Fix VLAN driver tests
Since [1], the physical network VLAN ranges parser populates the
ranges for those entries without a defined range, allowing all
valid VLAN ranges ([1, 4094]).

Some VLAN driver tests, relying on the previous implementation,
considered that the physical network without a defined VLAN
range does not have segments to allocated (those segments
are created on the fly by
"SegmentTypeDriverallocate_fully_specified_segment).

Since [1], all physical network segments are stored in the
"ml2_vlan_allocations" table and set as non allocated.

This patch also reverts [2]. When the physical networks are defined
in "network_vlan_ranges", there is no distinction between tenant
and provided networks; the physical network segments are assigned
by the user. It is possible to create a provider network without
defining the segmentation ID, it will be provided by the Neutron
VLAN driver, if there are free segments for the required physical
network.

[1]https://review.opendev.org/c/openstack/neutron-lib/+/779515
[2]1376df7873c2ac77c256ab2fed928de41a2c1d58

Closes-Bug: #1919280
Related-Bug: #1918274
Related-Bug: #1649750

Change-Id: I191e020ddb97dcf8fb41139d35bfd699e125379b
2021-03-16 15:43:33 +00:00
..
agent Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
l2pop Merge "Switch to new engine facade in ML2 unit tests modules" 2020-04-30 22:20:07 +00:00
linuxbridge Remove rootwrap execution (3) 2021-02-06 16:26:20 +00:00
macvtap Set process name for agents 2020-07-01 12:28:29 +02:00
mech_sriov [SR-IOV] Do not fail if ip-link vf "min_tx_rate" is not supported 2021-03-11 09:46:03 +00:00
openvswitch Add support for VNIC type vDPA to ML2/OVS and ML2/OVN 2021-02-17 08:37:12 +00:00
ovn [OVN] Set mcast_flood_reports on LSPs 2021-03-09 09:14:46 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
base_type_tunnel.py Remove "six" library 2020-07-28 16:55:52 +00:00
ext_test.py Revert "Revert "objects: get, update and delete converted to Subnet OVO usage"" 2017-12-01 16:45:50 +07:00
mech_fake_agent.py Check mech driver connectivity during port binding 2019-09-11 07:05:54 +00:00
mech_faulty_agent.py Exit on failure to load mechanism drivers 2017-04-11 09:56:08 -05:00
mechanism_logger.py Filter ML2Plugin mech driver supported extensions 2020-09-01 17:19:38 +00:00
mechanism_test.py Filter ML2Plugin mech driver supported extensions 2020-09-01 17:19:38 +00:00
test_helpers.py Fix VLAN driver tests 2021-03-16 15:43:33 +00:00
test_type_flat.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_type_geneve.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00
test_type_gre.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00
test_type_local.py use plugin constants from neutron-lib 2017-10-16 09:32:20 -06:00
test_type_vlan.py Fix VLAN driver tests 2021-03-16 15:43:33 +00:00
test_type_vxlan.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00