]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#805,!5-p] Updated the ARM
authorThomas Markwalder <tmark@isc.org>
Fri, 9 Aug 2019 19:59:40 +0000 (15:59 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 16 Aug 2019 21:56:27 +0000 (17:56 -0400)
Updated the ARM and added a ChangeLog entry.

ChangeLog
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst

index 4d05cfc10df3928c82166f83ab7778ca0de4b079..05f09fb9155cf9cab4d1c9b2b5987447451733aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1653.  [security]              tmark
+       Added a new parameter, "max-row-errors", to Memfile lease database
+       configuration for kea-dhcp4 and kea-dhcp6.  This parameter can be
+       used to limit the number of rows discarded due to error during
+       lease file loading after which the server will abandon the effort
+       and exit. The default value of 0 disables the limit.
+       (Gitlab #805,!5-p git TBD)
+
 1652.  [security]              tmark
        Prevent the DHCP servers from asserting when malformed
        hostname or FQDN options are received.  Now the servers will
index 704b72071bd14bb5fe2efb5c179d5a79ce2a36c4..b44f74cc458ad20bc0803001154c53ab8f6984dd 100644 (file)
@@ -321,7 +321,14 @@ can be used to configure the memfile backend.
    value of the ``lfc-interval`` is ``3600``. A value of 0 disables the
    LFC.
 
-An example configuration of the memfile backend is presented below:
+-  ``max-row-errors``: when the server loads a lease file, it is processed
+   row by row, each row contaning a single lease. If a row is flawed and
+   cannot be processed correctly the server will log it, discard the row,
+   and go on to the next row. This parameter can be used to set a limit on
+   the number of such discards that may occur after which the server will
+   abandon the effort and exit.  The default value of 0 disables the limit
+   and allows the server to process the entire file, regardless of how many
+   rows are discarded.
 
 ::
 
@@ -330,14 +337,16 @@ An example configuration of the memfile backend is presented below:
            "type": "memfile",
            "persist": true,
            "name": "/tmp/kea-leases4.csv",
-           "lfc-interval": 1800
+           "lfc-interval": 1800,
+           "max-row-errors": 100
        }
    }
 
 This configuration selects the ``/tmp/kea-leases4.csv`` as the storage
 for lease information and enables persistence (writing lease updates to
 this file). It also configures the backend to perform a periodic cleanup
-of the lease file every 30 minutes.
+of the lease file every 30 minutes and sets the maximum number of row
+errors to 100.
 
 It is important to know how the lease file contents are organized to
 understand why the periodic lease file cleanup is needed. Every time the
index b3cf5d32e06a22b8c530133215bdced7762cbd77..d2b3b53a0e2fc3cabb759d9806939e0f649ed533 100644 (file)
@@ -296,6 +296,15 @@ can be used to configure the memfile backend.
    default value of the ``lfc-interval`` is ``3600``. A value of 0
    disables the LFC.
 
+-  ``max-row-errors``: when the server loads a lease file, it is processed
+   row by row, each row contaning a single lease. If a row is flawed and
+   cannot be processed correctly the server will log it, discard the row,
+   and go on to the next row. This parameter can be used to set a limit on
+   the number of such discards that may occur after which the server will
+   abandon the effort and exit.  The default value of 0 disables the limit
+   and allows the server to process the entire file, regardless of how many
+   rows are discarded.
+
 An example configuration of the memfile backend is presented below:
 
 ::
@@ -305,14 +314,17 @@ An example configuration of the memfile backend is presented below:
            "type": "memfile",
            "persist": true,
            "name": "/tmp/kea-leases6.csv",
-           "lfc-interval": 1800
+           "lfc-interval": 1800,
+           "max-row-errors": 100
        }
    }
 
 This configuration selects the ``/tmp/kea-leases6.csv`` as the storage
 for lease information and enables persistence (writing lease updates to
 this file). It also configures the backend to perform a periodic cleanup
-of the lease file every 30 minutes.
+of the lease file every 30 minutes and sets th maximum number of row
+errors to 100.
+
 
 It is important to know how the lease file contents are organized to
 understand why the periodic lease file cleanup is needed. Every time the