]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5682] Example configs added.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 24 Jul 2018 18:42:58 +0000 (20:42 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 30 Jul 2018 17:03:18 +0000 (19:03 +0200)
doc/examples/kea4/advanced.json
doc/examples/kea6/advanced.json

index 608a154d2f5ba6d3e7ef34f9c2d83ca14e65b9a9..94b2bfc8e5e55f3d30de34a8da55a6f2cd59ce94 100644 (file)
         "re-detect": true
     },
 
+    "sanity-checks": {
+        // This parameter determines what to do when a new lease appears in the
+        // system (i.e. either is read from disk during memfile startup or is
+        // added via lease commands). There are five modes supported:
+        // none - do nothing, accept them as is
+        // warn - if subnet-id problems are detected, print a warning, but
+        //        otherwise load the lease as is. This is the default value.
+        // fix - attempt to fix the lease by finding appropriate subnet-id value.
+        //       if there is no suitable subnet, the lease is loaded as is.
+        // fix-del - attempt to fix the lease by findind appropriate subnet-id
+        //           value. If there is no suitable subnet, the lease is deleted.
+        // del - delete leases that have incorrect subnet-id values.
+        "lease-checks": "fix-del"
+    },
+
     // Option 43 last resort definition can make well-formed messages
     // to be rejected because they use not compatible "raw" value,
     // and different vendors may define different sub-options.
index 2d324b1a9d502da02eabdfab09f49a3893427885..f64572a3f6d5356f059582f7f522c9abaacb1fbb 100644 (file)
         "lfc-interval": 3600
     },
 
+     "sanity-checks": {
+        // This parameter determines what to do when a new lease appears in the
+        // system (i.e. either is read from disk during memfile startup or is
+        // added via lease commands). There are five modes supported:
+        // none - do nothing, accept them as is
+        // warn - if subnet-id problems are detected, print a warning, but
+        //        otherwise load the lease as is. This is the default value.
+        // fix - attempt to fix the lease by finding appropriate subnet-id value.
+        //       if there is no suitable subnet, the lease is loaded as is.
+        // fix-del - attempt to fix the lease by findind appropriate subnet-id
+        //           value. If there is no suitable subnet, the lease is deleted.
+        // del - delete leases that have incorrect subnet-id values.
+        "lease-checks": "fix-del"
+    },
+
     // Kea 0.9.1 introduced MAC/hardware addresses support in DHCPv6. There is
     // no single reliable method of getting MAC address information in DHCPv6.
     // Kea supports several methods. Depending on your network set up, some