Deprecate neutron::agents::l3::gateway_external_network_id
Its actual parameter in neutron was already deprecated[1], and now is useless because external_network_bridge is no longer set. [1] 391ac43bf3862d67cee3ea0f628bd7958e585c7f Change-Id: I66b26f2ca503826d3f414717ef3722a6c356f981
This commit is contained in:
parent
085747a2a5
commit
a962699bc7
@ -26,10 +26,6 @@
|
||||
# (optional) Driver to interface with neutron
|
||||
# Defaults to OVSInterfaceDriver
|
||||
#
|
||||
# [*gateway_external_network_id*]
|
||||
# (optional) The ID of the external network in neutron
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*handle_internal_only_routers*]
|
||||
# (optional) L3 Agent will handle non-external routers
|
||||
# Defaults to $::os_service_default
|
||||
@ -95,13 +91,18 @@
|
||||
# will be passed.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*gateway_external_network_id*]
|
||||
# (optional) The ID of the external network in neutron
|
||||
# Defaults to undef
|
||||
#
|
||||
class neutron::agents::l3 (
|
||||
$package_ensure = 'present',
|
||||
$enabled = true,
|
||||
$manage_service = true,
|
||||
$debug = $::os_service_default,
|
||||
$interface_driver = 'neutron.agent.linux.interface.OVSInterfaceDriver',
|
||||
$gateway_external_network_id = $::os_service_default,
|
||||
$handle_internal_only_routers = $::os_service_default,
|
||||
$metadata_port = $::os_service_default,
|
||||
$periodic_interval = $::os_service_default,
|
||||
@ -116,11 +117,21 @@ class neutron::agents::l3 (
|
||||
$availability_zone = $::os_service_default,
|
||||
$extensions = $::os_service_default,
|
||||
$radvd_user = $::os_service_default,
|
||||
# DEPRECATED PARAMETERS
|
||||
$gateway_external_network_id = undef,
|
||||
) {
|
||||
|
||||
include neutron::deps
|
||||
include neutron::params
|
||||
|
||||
if $gateway_external_network_id != undef {
|
||||
warning('gateway_external_network_id parameter is deprecated and has no effect')
|
||||
}
|
||||
|
||||
neutron_l3_agent_config {
|
||||
'DEFAULT/gateway_external_network_id': ensure => absent;
|
||||
}
|
||||
|
||||
resources { 'neutron_l3_agent_config':
|
||||
purge => $purge_config,
|
||||
}
|
||||
@ -136,7 +147,6 @@ class neutron::agents::l3 (
|
||||
neutron_l3_agent_config {
|
||||
'DEFAULT/debug': value => $debug;
|
||||
'DEFAULT/interface_driver': value => $interface_driver;
|
||||
'DEFAULT/gateway_external_network_id': value => $gateway_external_network_id;
|
||||
'DEFAULT/handle_internal_only_routers': value => $handle_internal_only_routers;
|
||||
'DEFAULT/metadata_port': value => $metadata_port;
|
||||
'DEFAULT/periodic_interval': value => $periodic_interval;
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
The neutron::agents::l3::gateway_external_network_id parameter has been
|
||||
deprecated and has no effect.
|
@ -32,7 +32,6 @@ describe 'neutron::agents::l3' do
|
||||
it 'configures l3_agent.ini' do
|
||||
should contain_neutron_l3_agent_config('DEFAULT/debug').with_value('<SERVICE DEFAULT>')
|
||||
should contain_neutron_l3_agent_config('DEFAULT/interface_driver').with_value(p[:interface_driver])
|
||||
should contain_neutron_l3_agent_config('DEFAULT/gateway_external_network_id').with_value('<SERVICE DEFAULT>')
|
||||
should contain_neutron_l3_agent_config('DEFAULT/handle_internal_only_routers').with_value('<SERVICE DEFAULT>')
|
||||
should contain_neutron_l3_agent_config('DEFAULT/metadata_port').with_value('<SERVICE DEFAULT>')
|
||||
should contain_neutron_l3_agent_config('DEFAULT/periodic_interval').with_value('<SERVICE DEFAULT>')
|
||||
|
Loading…
Reference in New Issue
Block a user