Remove external_network_bridge option
The external_network_bridge parameter has been deprecated and will be removed in Ocata. Change-Id: I866f405f35445069ce52fc47d53c28e03e8ab2f1 Depends-On: Ifd9fd2393ceb9b0d1a4b83a9954d581a43bdb0d4
This commit is contained in:
parent
40e0286385
commit
7156a85ffb
@ -92,12 +92,6 @@
|
|||||||
# (optional) L3 agent extensions to enable.
|
# (optional) L3 agent extensions to enable.
|
||||||
# Defaults to $::os_service_default
|
# Defaults to $::os_service_default
|
||||||
#
|
#
|
||||||
# === Deprecated Parameters
|
|
||||||
#
|
|
||||||
# [*external_network_bridge*]
|
|
||||||
# (optional) Deprecated. The name of the external bridge
|
|
||||||
# Defaults to $::os_service_default
|
|
||||||
#
|
|
||||||
class neutron::agents::l3 (
|
class neutron::agents::l3 (
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$enabled = true,
|
$enabled = true,
|
||||||
@ -119,17 +113,11 @@ class neutron::agents::l3 (
|
|||||||
$purge_config = false,
|
$purge_config = false,
|
||||||
$availability_zone = $::os_service_default,
|
$availability_zone = $::os_service_default,
|
||||||
$extensions = $::os_service_default,
|
$extensions = $::os_service_default,
|
||||||
# DEPRECATED PARAMETERS
|
|
||||||
$external_network_bridge = $::os_service_default,
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include ::neutron::deps
|
include ::neutron::deps
|
||||||
include ::neutron::params
|
include ::neutron::params
|
||||||
|
|
||||||
if ! is_service_default ($external_network_bridge) {
|
|
||||||
warning('parameter external_network_bridge is deprecated')
|
|
||||||
}
|
|
||||||
|
|
||||||
resources { 'neutron_l3_agent_config':
|
resources { 'neutron_l3_agent_config':
|
||||||
purge => $purge_config,
|
purge => $purge_config,
|
||||||
}
|
}
|
||||||
@ -144,7 +132,6 @@ class neutron::agents::l3 (
|
|||||||
|
|
||||||
neutron_l3_agent_config {
|
neutron_l3_agent_config {
|
||||||
'DEFAULT/debug': value => $debug;
|
'DEFAULT/debug': value => $debug;
|
||||||
'DEFAULT/external_network_bridge': value => $external_network_bridge;
|
|
||||||
'DEFAULT/interface_driver': value => $interface_driver;
|
'DEFAULT/interface_driver': value => $interface_driver;
|
||||||
'DEFAULT/gateway_external_network_id': value => $gateway_external_network_id;
|
'DEFAULT/gateway_external_network_id': value => $gateway_external_network_id;
|
||||||
'DEFAULT/handle_internal_only_routers': value => $handle_internal_only_routers;
|
'DEFAULT/handle_internal_only_routers': value => $handle_internal_only_routers;
|
||||||
|
@ -45,18 +45,12 @@
|
|||||||
# in the vpnaas config.
|
# in the vpnaas config.
|
||||||
# Defaults to false.
|
# Defaults to false.
|
||||||
#
|
#
|
||||||
# === Deprecated Parameters
|
|
||||||
#
|
|
||||||
# [*external_network_bridge*]
|
|
||||||
# (optional) Deprecated. Defaults to $::os_service_default
|
|
||||||
#
|
|
||||||
class neutron::agents::vpnaas (
|
class neutron::agents::vpnaas (
|
||||||
$package_ensure = present,
|
$package_ensure = present,
|
||||||
$enabled = true,
|
$enabled = true,
|
||||||
$manage_service = true,
|
$manage_service = true,
|
||||||
$vpn_device_driver = 'neutron.services.vpn.device_drivers.ipsec.OpenSwanDriver',
|
$vpn_device_driver = 'neutron.services.vpn.device_drivers.ipsec.OpenSwanDriver',
|
||||||
$interface_driver = 'neutron.agent.linux.interface.OVSInterfaceDriver',
|
$interface_driver = 'neutron.agent.linux.interface.OVSInterfaceDriver',
|
||||||
$external_network_bridge = $::os_service_default,
|
|
||||||
$ipsec_status_check_interval = $::os_service_default,
|
$ipsec_status_check_interval = $::os_service_default,
|
||||||
$purge_config = false,
|
$purge_config = false,
|
||||||
) {
|
) {
|
||||||
@ -103,14 +97,6 @@ class neutron::agents::vpnaas (
|
|||||||
'DEFAULT/interface_driver': value => $interface_driver;
|
'DEFAULT/interface_driver': value => $interface_driver;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! is_service_default ($external_network_bridge) {
|
|
||||||
warning('parameter external_network_bridge is deprecated')
|
|
||||||
}
|
|
||||||
|
|
||||||
neutron_vpnaas_agent_config {
|
|
||||||
'DEFAULT/external_network_bridge': value => $external_network_bridge;
|
|
||||||
}
|
|
||||||
|
|
||||||
if $::neutron::params::vpnaas_agent_package {
|
if $::neutron::params::vpnaas_agent_package {
|
||||||
ensure_resource( 'package', 'neutron-vpnaas-agent', {
|
ensure_resource( 'package', 'neutron-vpnaas-agent', {
|
||||||
'ensure' => $package_ensure,
|
'ensure' => $package_ensure,
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- Removed deprecated option external_network_bridge.
|
@ -37,7 +37,6 @@ describe 'neutron::agents::l3' do
|
|||||||
|
|
||||||
it 'configures l3_agent.ini' do
|
it 'configures l3_agent.ini' do
|
||||||
is_expected.to contain_neutron_l3_agent_config('DEFAULT/debug').with_value(p[:debug])
|
is_expected.to contain_neutron_l3_agent_config('DEFAULT/debug').with_value(p[:debug])
|
||||||
is_expected.to contain_neutron_l3_agent_config('DEFAULT/external_network_bridge').with_value('<SERVICE DEFAULT>')
|
|
||||||
is_expected.to contain_neutron_l3_agent_config('DEFAULT/interface_driver').with_value(p[:interface_driver])
|
is_expected.to contain_neutron_l3_agent_config('DEFAULT/interface_driver').with_value(p[:interface_driver])
|
||||||
is_expected.to contain_neutron_l3_agent_config('DEFAULT/gateway_external_network_id').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_neutron_l3_agent_config('DEFAULT/gateway_external_network_id').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_neutron_l3_agent_config('DEFAULT/handle_internal_only_routers').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_neutron_l3_agent_config('DEFAULT/handle_internal_only_routers').with_value('<SERVICE DEFAULT>')
|
||||||
|
@ -64,19 +64,6 @@ describe 'neutron::agents::vpnaas' do
|
|||||||
is_expected.to contain_neutron_vpnaas_agent_config('vpnagent/vpn_device_driver').with_value(p[:vpn_device_driver]);
|
is_expected.to contain_neutron_vpnaas_agent_config('vpnagent/vpn_device_driver').with_value(p[:vpn_device_driver]);
|
||||||
is_expected.to contain_neutron_vpnaas_agent_config('ipsec/ipsec_status_check_interval').with_value('<SERVICE DEFAULT>');
|
is_expected.to contain_neutron_vpnaas_agent_config('ipsec/ipsec_status_check_interval').with_value('<SERVICE DEFAULT>');
|
||||||
is_expected.to contain_neutron_vpnaas_agent_config('DEFAULT/interface_driver').with_value(p[:interface_driver]);
|
is_expected.to contain_neutron_vpnaas_agent_config('DEFAULT/interface_driver').with_value(p[:interface_driver]);
|
||||||
is_expected.to contain_neutron_vpnaas_agent_config('DEFAULT/external_network_bridge').with_value('<SERVICE DEFAULT>');
|
|
||||||
end
|
|
||||||
|
|
||||||
context 'with external_network_bridge as br-ex' do
|
|
||||||
before do
|
|
||||||
params.merge!(
|
|
||||||
:external_network_bridge => 'br-ex'
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'configures vpnaas_agent.ini' do
|
|
||||||
is_expected.to contain_neutron_vpnaas_agent_config('DEFAULT/external_network_bridge').with_value(p[:external_network_bridge]);
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'installs neutron vpnaas agent package' do
|
it 'installs neutron vpnaas agent package' do
|
||||||
|
Loading…
Reference in New Issue
Block a user