Deprecate support for linuxbridge plugin config
The file no longer exists since linuxbridge was integrated to the ml2 plugin as a mechanism driver. Change-Id: Ib34c67905db31e32653314c8873a938dcbd04ed3
This commit is contained in:
parent
c86f68df96
commit
959c1cefee
@ -3,7 +3,7 @@ Puppet::Type.newtype(:neutron_plugin_linuxbridge) do
|
|||||||
ensurable
|
ensurable
|
||||||
|
|
||||||
newparam(:name, :namevar => true) do
|
newparam(:name, :namevar => true) do
|
||||||
desc 'Section/setting name to manage from linuxbridge_conf.ini'
|
desc 'Section/setting name to manage from linuxbridge_conf.ini (DEPRECATED)'
|
||||||
newvalues(/\S+\/\S+/)
|
newvalues(/\S+\/\S+/)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -72,9 +72,6 @@
|
|||||||
# [*bgp_dragent_config*]
|
# [*bgp_dragent_config*]
|
||||||
# (optional) Manage configuration of bgp_dragent.ini
|
# (optional) Manage configuration of bgp_dragent.ini
|
||||||
#
|
#
|
||||||
# [*plugin_linuxbridge_config*]
|
|
||||||
# (optional) Manage configuration of linuxbridge_conf.ini
|
|
||||||
#
|
|
||||||
# [*plugin_opencontrail_config*]
|
# [*plugin_opencontrail_config*]
|
||||||
# (optional) Manage configuration of plugins/opencontrail/ContrailPlugin.ini
|
# (optional) Manage configuration of plugins/opencontrail/ContrailPlugin.ini
|
||||||
#
|
#
|
||||||
@ -92,6 +89,9 @@
|
|||||||
# [*plugin_nvp_config*]
|
# [*plugin_nvp_config*]
|
||||||
# (optional) Manage configuration of /etc/neutron/plugins/nicira/nvp.ini
|
# (optional) Manage configuration of /etc/neutron/plugins/nicira/nvp.ini
|
||||||
#
|
#
|
||||||
|
# [*plugin_linuxbridge_config*]
|
||||||
|
# (optional) Manage configuration of linuxbridge_conf.ini
|
||||||
|
#
|
||||||
# NOTE: The configuration MUST NOT be already handled by this module
|
# NOTE: The configuration MUST NOT be already handled by this module
|
||||||
# or Puppet catalog compilation will fail with duplicate resources.
|
# or Puppet catalog compilation will fail with duplicate resources.
|
||||||
#
|
#
|
||||||
@ -113,13 +113,13 @@ class neutron::config (
|
|||||||
$metering_agent_config = {},
|
$metering_agent_config = {},
|
||||||
$vpnaas_agent_config = {},
|
$vpnaas_agent_config = {},
|
||||||
$bgp_dragent_config = {},
|
$bgp_dragent_config = {},
|
||||||
$plugin_linuxbridge_config = {},
|
|
||||||
$plugin_opencontrail_config = {},
|
$plugin_opencontrail_config = {},
|
||||||
$plugin_nuage_config = {},
|
$plugin_nuage_config = {},
|
||||||
$plugin_ml2_config = {},
|
$plugin_ml2_config = {},
|
||||||
$plugin_nsx_config = {},
|
$plugin_nsx_config = {},
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
$plugin_nvp_config = undef,
|
$plugin_nvp_config = undef,
|
||||||
|
$plugin_linuxbridge_config = undef,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include neutron::deps
|
include neutron::deps
|
||||||
@ -128,6 +128,10 @@ class neutron::config (
|
|||||||
warning('The plugin_nvp_config parameter is deprecated and has no effect.')
|
warning('The plugin_nvp_config parameter is deprecated and has no effect.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $plugin_linuxbridge_config != undef {
|
||||||
|
warning('The plugin_linuxbridge_config parameter is deprecated and has no effect.')
|
||||||
|
}
|
||||||
|
|
||||||
validate_legacy(Hash, 'validate_hash', $server_config)
|
validate_legacy(Hash, 'validate_hash', $server_config)
|
||||||
validate_legacy(Hash, 'validate_hash', $api_paste_ini)
|
validate_legacy(Hash, 'validate_hash', $api_paste_ini)
|
||||||
validate_legacy(Hash, 'validate_hash', $ovs_agent_config)
|
validate_legacy(Hash, 'validate_hash', $ovs_agent_config)
|
||||||
@ -145,7 +149,6 @@ class neutron::config (
|
|||||||
validate_legacy(Hash, 'validate_hash', $metering_agent_config)
|
validate_legacy(Hash, 'validate_hash', $metering_agent_config)
|
||||||
validate_legacy(Hash, 'validate_hash', $vpnaas_agent_config)
|
validate_legacy(Hash, 'validate_hash', $vpnaas_agent_config)
|
||||||
validate_legacy(Hash, 'validate_hash', $bgp_dragent_config)
|
validate_legacy(Hash, 'validate_hash', $bgp_dragent_config)
|
||||||
validate_legacy(Hash, 'validate_hash', $plugin_linuxbridge_config)
|
|
||||||
validate_legacy(Hash, 'validate_hash', $plugin_opencontrail_config)
|
validate_legacy(Hash, 'validate_hash', $plugin_opencontrail_config)
|
||||||
validate_legacy(Hash, 'validate_hash', $plugin_nuage_config)
|
validate_legacy(Hash, 'validate_hash', $plugin_nuage_config)
|
||||||
validate_legacy(Hash, 'validate_hash', $plugin_ml2_config)
|
validate_legacy(Hash, 'validate_hash', $plugin_ml2_config)
|
||||||
@ -168,7 +171,6 @@ class neutron::config (
|
|||||||
create_resources('neutron_metering_agent_config', $metering_agent_config)
|
create_resources('neutron_metering_agent_config', $metering_agent_config)
|
||||||
create_resources('neutron_vpnaas_agent_config', $vpnaas_agent_config)
|
create_resources('neutron_vpnaas_agent_config', $vpnaas_agent_config)
|
||||||
create_resources('neutron_bgp_dragent_config', $bgp_dragent_config)
|
create_resources('neutron_bgp_dragent_config', $bgp_dragent_config)
|
||||||
create_resources('neutron_plugin_linuxbridge', $plugin_linuxbridge_config)
|
|
||||||
create_resources('neutron_plugin_opencontrail', $plugin_opencontrail_config)
|
create_resources('neutron_plugin_opencontrail', $plugin_opencontrail_config)
|
||||||
create_resources('neutron_plugin_nuage', $plugin_nuage_config)
|
create_resources('neutron_plugin_nuage', $plugin_nuage_config)
|
||||||
create_resources('neutron_plugin_ml2', $plugin_ml2_config)
|
create_resources('neutron_plugin_ml2', $plugin_ml2_config)
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The ``neutron::config::plugin_linuxbridge_config`` parameter has been
|
||||||
|
deprecated and has no effect.
|
||||||
|
|
||||||
|
- |
|
||||||
|
The ``neutron_plugin_linuxbridge`` resource type has been deprecated and
|
||||||
|
will be removed in a futrue release.
|
@ -134,7 +134,6 @@ describe 'neutron::config' do
|
|||||||
shared_examples 'neutron_plugin_config' do
|
shared_examples 'neutron_plugin_config' do
|
||||||
let :params do
|
let :params do
|
||||||
{
|
{
|
||||||
:plugin_linuxbridge_config => config_hash,
|
|
||||||
:plugin_nsx_config => config_hash,
|
:plugin_nsx_config => config_hash,
|
||||||
:plugin_opencontrail_config => config_hash,
|
:plugin_opencontrail_config => config_hash,
|
||||||
:plugin_nuage_config => config_hash,
|
:plugin_nuage_config => config_hash,
|
||||||
@ -142,12 +141,6 @@ describe 'neutron::config' do
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configures arbitrary neutron_plugin_linuxbridge configurations' do
|
|
||||||
should contain_neutron_plugin_linuxbridge('DEFAULT/foo').with_value('fooValue')
|
|
||||||
should contain_neutron_plugin_linuxbridge('DEFAULT/bar').with_value('barValue')
|
|
||||||
should contain_neutron_plugin_linuxbridge('DEFAULT/baz').with_ensure('absent')
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'configures arbitrary neutron_plugin_nsx configurations' do
|
it 'configures arbitrary neutron_plugin_nsx configurations' do
|
||||||
should contain_neutron_plugin_nsx('DEFAULT/foo').with_value('fooValue')
|
should contain_neutron_plugin_nsx('DEFAULT/foo').with_value('fooValue')
|
||||||
should contain_neutron_plugin_nsx('DEFAULT/bar').with_value('barValue')
|
should contain_neutron_plugin_nsx('DEFAULT/bar').with_value('barValue')
|
||||||
|
Loading…
Reference in New Issue
Block a user