neutron/neutron/tests/unit/plugins/ml2
Kailun Qin a01b7125cd Use network segment ranges for segment allocation
This patch makes necessary changes to ML2 type drivers and plugin
manager for network segment range extension support when it is loaded.

When the network segment range extension is not loaded, no impact to the
current flow.

When the extension is loaded,
- populating a range that is managed from the configuration file [1]_,
  such as "VLAN IDs", "VXLAN VNI IDs", "GRE tunnel IDs",
  "Geneve VNI IDs" to the network segment range DB table as a "default"
  and "shared" entry to maintain backward compatibility;
- reloading the "default" segment ranges when Neutron server
  starts/restarts;
- creating a set of "default" network segment ranges out of the
  ML2-config-file-defined ranges [1]_ and the segment allocation
  operations are always retrieving the information from the DB to have
  the network segment ranges fully administered via API;
- when a tenant allocates a segment, it will first allocate from an
  available segment range assigned to the tenant, and then a shared
  range if no tenant specific allocation is possible.

[1] /etc/neutron/plugins/ml2/ml2_conf.ini

Co-authored-by: Allain Legacy <Allain.legacy@windriver.com>

Partially-implements: blueprint network-segment-range-management
Change-Id: I522940fc4d054f5eec1110eb2c424e32e8ae6bad
2019-03-09 22:04:20 +00:00
..
drivers Use network segment ranges for segment allocation 2019-03-09 22:04:20 +00:00
extensions Add propagate_uplink_status to port 2018-11-29 19:33:16 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py supported_vnic_type configurable for ovs 2018-10-15 20:35:49 +02:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Move db agent schedulers test to a more appropriate place 2015-08-24 15:14:13 +03:00
test_db.py Incorporate capability for multiple mac generation 2018-11-08 09:43:33 -05:00
test_driver_context.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_ext_portsecurity.py Refactoring config options for ml2 config opts 2017-09-08 15:34:49 -04:00
test_extension_driver_api.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_managers.py Fix ml2 hierarchical port binding driver check error. 2018-07-20 05:57:05 +00:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Merge "Delete port binding level for deleted bindings" 2019-03-05 15:41:45 +00:00
test_port_binding.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_rpc.py Add binding activation to the Linuxbridge agent 2018-07-19 15:12:20 -05:00
test_security_group.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00
test_tracked_resources.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00