]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2719] Addressed remaining comments
authorThomas Markwalder <tmark@isc.org>
Thu, 23 Mar 2023 11:12:39 +0000 (07:12 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 23 Mar 2023 11:18:26 +0000 (07:18 -0400)
modified:
    doc/examples/kea4/all-keys.json
    src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc

doc/examples/kea4/all-keys.json
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc

index 075b54d301c2f1a04167f0952e41ba33a711044c..86f5038659be9a73bcd637ec073f5fb4f1ac3dd9 100644 (file)
                 "min-valid-lifetime": 4000,
 
                 // Class max valid lifetime.
-                "max-valid-lifetime": 8000
+                "max-valid-lifetime": 8000,
+
+                // If greater than zero, it is the lifetime of leases temporarily allocated
+                // on DISCOVER.  When zero (the default) leases are not allocated on DISCOVER.
+                "offer-lifetime" : 65
             },
             {
                 // Default value of the class specific bootfile name. Empty name
index 337065425c0cf1490286cfcdf5eb6cba14eb9c7a..942944b2d76dba7965ba434fffb58d932132c6ce 100644 (file)
@@ -5945,7 +5945,7 @@ TEST_F(AllocEngine4Test, getOfferLft4) {
             exp_allocate
         },
         {
-            // Useing class value of zero should override non-zero set at
+            // Using class value of zero should override non-zero set at
             // subnet level, lease should have actual valid lft
             "zero from class",
             { "offer_lft_zero" },