Merge "Deprecate the useless quota_packet_filter parameter"

This commit is contained in:
Zuul 2021-09-10 10:32:48 +00:00 committed by Gerrit Code Review
commit 0e812d1bcd
3 changed files with 17 additions and 8 deletions

View File

@ -46,10 +46,6 @@
# (optional) Number of network gateways allowed per tenant, -1 for unlimited.
# Defaults to '5'.
#
# [*quota_packet_filter*]
# (optional) Number of packet_filters allowed per tenant, -1 for unlimited.
# Defaults to '100'.
#
# [*quota_vip*]
# (optional) Number of vips allowed per tenant.
# A negative value means unlimited.
@ -60,6 +56,12 @@
# A negative value means unlimited.
# Defaults to $::os_service_default.
#
# DEPRECATED PARAMETERS
#
# [*quota_packet_filter*]
# (optional) Number of packet_filters allowed per tenant, -1 for unlimited.
# Defaults to undef.
#
class neutron::quota (
$default_quota = $::os_service_default,
$quota_network = $::os_service_default,
@ -73,14 +75,19 @@ class neutron::quota (
$quota_security_group_rule = $::os_service_default,
$quota_driver = $::os_service_default,
$quota_network_gateway = 5,
$quota_packet_filter = 100,
$quota_vip = $::os_service_default,
# rbac extension
$quota_rbac_policy = $::os_service_default,
# DEPRECATED PARAMETERS
$quota_packet_filter = undef,
) {
include neutron::deps
if $quota_packet_filter != undef {
warning('The neutron::quota::quota_packet_filter parameter is deprecated and has no effect')
}
neutron_config {
'quotas/default_quota': value => $default_quota;
'quotas/quota_network': value => $quota_network;
@ -92,7 +99,6 @@ class neutron::quota (
'quotas/quota_security_group_rule': value => $quota_security_group_rule;
'quotas/quota_driver': value => $quota_driver;
'quotas/quota_network_gateway': value => $quota_network_gateway;
'quotas/quota_packet_filter': value => $quota_packet_filter;
'quotas/quota_vip': value => $quota_vip;
'quotas/quota_rbac_policy': value => $quota_rbac_policy;
}

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The ``neutron::quota::quota_packet_filter`` parameter has been deprecated
and has no effect now.

View File

@ -8,7 +8,6 @@ describe 'neutron::quota' do
let :default_params do
{
:quota_network_gateway => 5,
:quota_packet_filter => 100
}
end
@ -40,7 +39,6 @@ describe 'neutron::quota' do
:quota_security_group => 20,
:quota_security_group_rule => 200,
:quota_network_gateway => 5,
:quota_packet_filter => 100,
:quota_vip => 10,
:quota_rbac_policy => 10
})