Merge "Remove external_network_bridge option"

This commit is contained in:
Jenkins 2017-01-23 18:50:20 +00:00 committed by Gerrit Code Review
commit 0887d96ac5
5 changed files with 3 additions and 41 deletions

View File

@ -92,12 +92,6 @@
# (optional) L3 agent extensions to enable.
# 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 (
$package_ensure = 'present',
$enabled = true,
@ -119,17 +113,11 @@ class neutron::agents::l3 (
$purge_config = false,
$availability_zone = $::os_service_default,
$extensions = $::os_service_default,
# DEPRECATED PARAMETERS
$external_network_bridge = $::os_service_default,
) {
include ::neutron::deps
include ::neutron::params
if ! is_service_default ($external_network_bridge) {
warning('parameter external_network_bridge is deprecated')
}
resources { 'neutron_l3_agent_config':
purge => $purge_config,
}
@ -144,7 +132,6 @@ class neutron::agents::l3 (
neutron_l3_agent_config {
'DEFAULT/debug': value => $debug;
'DEFAULT/external_network_bridge': value => $external_network_bridge;
'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;

View File

@ -45,18 +45,12 @@
# in the vpnaas config.
# Defaults to false.
#
# === Deprecated Parameters
#
# [*external_network_bridge*]
# (optional) Deprecated. Defaults to $::os_service_default
#
class neutron::agents::vpnaas (
$package_ensure = present,
$enabled = true,
$manage_service = true,
$vpn_device_driver = 'neutron.services.vpn.device_drivers.ipsec.OpenSwanDriver',
$interface_driver = 'neutron.agent.linux.interface.OVSInterfaceDriver',
$external_network_bridge = $::os_service_default,
$ipsec_status_check_interval = $::os_service_default,
$purge_config = false,
) {
@ -103,14 +97,6 @@ class neutron::agents::vpnaas (
'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 {
ensure_resource( 'package', 'neutron-vpnaas-agent', {
'ensure' => $package_ensure,

View File

@ -0,0 +1,3 @@
---
deprecations:
- Removed deprecated option external_network_bridge.

View File

@ -37,7 +37,6 @@ describe 'neutron::agents::l3' 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/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/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>')

View File

@ -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('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/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
it 'installs neutron vpnaas agent package' do