ODL: Remove deprecated ovsdb_connection

This parameter was deprecated several cycles ago[1], and has been kept
for enough cycles to inform removal.

[1] 094e594d40

Change-Id: I9bb7007a4508af302c94797de0d0770429884f86
This commit is contained in:
Takashi Kajinami 2022-05-06 11:33:08 +09:00
parent df0d55cf78
commit d806c5a1bd
3 changed files with 7 additions and 17 deletions

View File

@ -37,18 +37,11 @@
# (optional) List of ODL features to enable
# Defaults to $::os_service_default
#
# === Deprecated Parameters
#
# [*ovsdb_connection*]
# (optional) Deprecated. The URI used to connect to the local OVSDB server
# Defaults to 'tcp:127.0.0.1:6639'
#
class neutron::plugins::ml2::opendaylight (
$package_ensure = 'present',
$odl_username = $::os_service_default,
$odl_password = $::os_service_default,
$odl_url = $::os_service_default,
$ovsdb_connection = 'tcp:127.0.0.1:6639',
$port_binding_controller = $::os_service_default,
$odl_hostconf_uri = $::os_service_default,
$odl_features = $::os_service_default,
@ -73,11 +66,8 @@ class neutron::plugins::ml2::opendaylight (
'ml2_odl/odl_features': value => join(any2array($odl_features), ',');
}
if $ovsdb_connection != 'tcp:127.0.0.1:6639' {
warning('The ovsdb_connection parameter is deprecated and will be removed in future releases')
}
# TODO(tkajinam): Remove this after Zed release.
neutron_config {
'OVS/ovsdb_connection': value => $ovsdb_connection;
'OVS/ovsdb_connection': ensure => absent;
}
}

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
The deprecated ``neutron::plugins::ml2::opendaylight::ovsdb_connection``
parameter has been removed.

View File

@ -15,7 +15,6 @@ describe 'neutron::plugins::ml2::opendaylight' do
{
:package_ensure => 'present',
:odl_url => '<SERVICE DEFAULT>',
:ovsdb_connection => 'tcp:127.0.0.1:6639',
:port_binding_controller => '<SERVICE DEFAULT>',
:odl_hostconf_uri => '<SERVICE DEFAULT>',
:odl_features => '<SERVICE DEFAULT>',
@ -49,10 +48,6 @@ describe 'neutron::plugins::ml2::opendaylight' do
should contain_neutron_plugin_ml2('ml2_odl/odl_hostconf_uri').with_value(params[:odl_hostconf_uri])
should contain_neutron_plugin_ml2('ml2_odl/odl_features').with_value(params[:odl_features])
end
it 'configures neutron server settings' do
should contain_neutron_config('OVS/ovsdb_connection').with_value(params[:ovsdb_connection])
end
end
on_supported_os({