]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Added config variable for External Network type in ML2
authorAman Kumar <amank@hp.com>
Fri, 23 Jan 2015 09:34:00 +0000 (01:34 -0800)
committerAman Kumar <amank@hp.com>
Wed, 15 Apr 2015 04:59:22 +0000 (04:59 +0000)
commit26b4e57858ef83ef9343f053c2835a95f6e6c860
tree1a58a4db610ac4a1ebc5575c3ff08983bccf2dbe
parent76a50743c0d659db7e40f9e72ed8fe0efe95953f
Added config variable for External Network type in ML2

Description:
With the ML2 Plugin, every network created has segments with
provider:network_types being tenant_network_types.
When applied to external networks, the types that could be in
tenant_network_types parameter (like vxlan or gre) are not appropriate.

Implementation:
Added new config variable 'external_network_type' in ml2_conf.ini
which contains the default network type for external networks
when no provider attributes are specified, by default it is None.

It also includes small code re-factoring/renaming of import statement.

DocImpact

Closes-Bug: #1328991

Co-Authored-By: Romil Gupta <romilg@hp.com>
Change-Id: Idbbe6bced73cfedbe0f8e7abba35f87589b1a004
etc/neutron/plugins/ml2/ml2_conf.ini
neutron/plugins/ml2/config.py
neutron/plugins/ml2/managers.py
neutron/tests/unit/plugins/ml2/test_plugin.py