Configure pagination
The pagination is useful to retrieve a large bunch of resources,
because a single request may fail (timeout).
Change-Id: I6272c36d231263f85c5cc5cf106cd33ca95a53d8
diff --git a/README.rst b/README.rst
index 084c423..4d4d1ca 100644
--- a/README.rst
+++ b/README.rst
@@ -21,6 +21,8 @@
server:
enabled: true
version: mitaka
+ allow_pagination: true
+ pagination_max_limit: 100
bind:
address: 172.20.0.1
port: 9696
@@ -52,6 +54,11 @@
audit:
enabled: false
+Note: The pagination is useful to retrieve a large bunch of resources,
+because a single request may fail (timeout). This is enabled with both
+parameters *allow_pagination* and *pagination_max_limit* as shown above.
+
+
Neutron VXLAN tenant networks with Network Nodes (with DVR for East-West
and Network node for North-South)
=========================================================================
diff --git a/neutron/files/liberty/neutron-server.conf.Debian b/neutron/files/liberty/neutron-server.conf.Debian
index 80a4559..5e30e61 100644
--- a/neutron/files/liberty/neutron-server.conf.Debian
+++ b/neutron/files/liberty/neutron-server.conf.Debian
@@ -137,7 +137,11 @@
# Enable or disable bulk create/update/delete operations
# allow_bulk = True
# Enable or disable pagination
-# allow_pagination = False
+{% if server.get('allow_pagination', false) %}
+allow_pagination = True
+{% else %}
+allow_pagination = False
+{% endif %}
# Enable or disable sorting
# allow_sorting = False
# Enable or disable overlapping IPs for subnets
@@ -155,7 +159,7 @@
# be greater than 0. If the number of items requested is greater than
# pagination_max_limit, server will just return pagination_max_limit
# of number of items.
-# pagination_max_limit = -1
+pagination_max_limit = {{ server.pagination_max_limit|default('-1') }}
# Maximum number of DNS nameservers per subnet
# max_dns_nameservers = 5
diff --git a/neutron/files/mitaka/neutron-server.conf.Debian b/neutron/files/mitaka/neutron-server.conf.Debian
index eae3a94..bc05c66 100644
--- a/neutron/files/mitaka/neutron-server.conf.Debian
+++ b/neutron/files/mitaka/neutron-server.conf.Debian
@@ -62,14 +62,18 @@
#allow_bulk = true
# Allow the usage of the pagination (boolean value)
-#allow_pagination = false
+{% if server.get('allow_pagination', false) %}
+allow_pagination = True
+{% else %}
+allow_pagination = False
+{% endif %}
# Allow the usage of the sorting (boolean value)
#allow_sorting = false
# The maximum number of items returned in a single response, value was
# 'infinite' or negative integer means no limit (string value)
-#pagination_max_limit = -1
+pagination_max_limit = {{ server.pagination_max_limit|default('-1') }}
# Default value of availability zone hints. The availability zone aware
# schedulers use this when the resources availability_zone_hints is empty.