neutron/neutron/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 usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
l2pop Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
linuxbridge Remove rootwrap execution (3) 2021-02-06 16:26:20 +00:00
macvtap Merge "Set process name for agents" 2020-07-08 13:40:10 +00: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 constant for bagpipe flooding table 2021-03-08 13:24:58 +00:00
ovn Merge "Mech driver Resource Provider UUID5 namespaces should be different" 2021-03-11 14:26:19 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
helpers.py Relocate _delete_expired_default_network_segment_ranges 2020-07-02 17:26:10 +00:00
mech_agent.py Filter ML2Plugin mech driver supported extensions 2020-09-01 17:19:38 +00:00
type_flat.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00
type_geneve.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00
type_gre.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00
type_local.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00
type_tunnel.py Remove "six" library 2020-07-28 16:55:52 +00:00
type_vlan.py Fix VLAN driver tests 2021-03-16 15:43:33 +00:00
type_vxlan.py Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00