From 5ceb761d380406e999a1ef4607308304a2c3d9fd Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 17 Mar 2025 19:15:31 +0900 Subject: [PATCH] Add support for [DEFAULT] pagination_max_limit Change-Id: Ie4935c6a436e7a6d045244dcd856968573842890 --- manifests/server.pp | 6 ++++++ .../notes/pagination_max_limit-c92f8b9ea2b2e305.yaml | 4 ++++ spec/classes/neutron_server_spec.rb | 1 + 3 files changed, 11 insertions(+) create mode 100644 releasenotes/notes/pagination_max_limit-c92f8b9ea2b2e305.yaml diff --git a/manifests/server.pp b/manifests/server.pp index db251d040..b3ec1e267 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -203,6 +203,10 @@ # (Optional) Set max request body size # Defaults to $facts['os_service_default']. # +# [*pagination_max_limit*] +# (Optional) The maximum number of items returned in a single response. +# Defaults to $facts['os_service_default']. +# # [*ovs_integration_bridge*] # (Optional) Name of Open vSwitch bridge to use # Defaults to $facts['os_service_default'] @@ -284,6 +288,7 @@ class neutron::server ( $auth_strategy = 'keystone', $enable_proxy_headers_parsing = $facts['os_service_default'], $max_request_body_size = $facts['os_service_default'], + $pagination_max_limit = $facts['os_service_default'], $ovs_integration_bridge = $facts['os_service_default'], $igmp_snooping_enable = $facts['os_service_default'], $igmp_flood = $facts['os_service_default'], @@ -340,6 +345,7 @@ Use the neutron::services::dr class instead.") 'DEFAULT/dhcp_load_type': value => $dhcp_load_type; 'DEFAULT/default_availability_zones': value => join(any2array($default_availability_zones), ','); 'DEFAULT/network_auto_schedule': value => $network_auto_schedule; + 'DEFAULT/pagination_max_limit': value => $pagination_max_limit; 'ovs/integration_bridge': value => $ovs_integration_bridge; 'service_providers/service_provider': value => $service_providers; 'ovs/igmp_snooping_enable': value => $igmp_snooping_enable; diff --git a/releasenotes/notes/pagination_max_limit-c92f8b9ea2b2e305.yaml b/releasenotes/notes/pagination_max_limit-c92f8b9ea2b2e305.yaml new file mode 100644 index 000000000..4d800ba43 --- /dev/null +++ b/releasenotes/notes/pagination_max_limit-c92f8b9ea2b2e305.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``neutron::server::pagination_max_limit`` parameter has been added. diff --git a/spec/classes/neutron_server_spec.rb b/spec/classes/neutron_server_spec.rb index 62a27bdd9..e222b797c 100644 --- a/spec/classes/neutron_server_spec.rb +++ b/spec/classes/neutron_server_spec.rb @@ -88,6 +88,7 @@ describe 'neutron::server' do :enable_proxy_headers_parsing => '', :max_request_body_size => '', ) + should contain_neutron_config('DEFAULT/pagination_max_limit').with_value('') should contain_neutron_config('ovs/integration_bridge').with_value('') should contain_neutron_config('ovs/igmp_snooping_enable').with_value('') should contain_neutron_config('ovs/igmp_flood').with_value('')