<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span class="x_elementToProof ContentPasted0" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">Hi,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<div class="x_elementToProof ContentPasted0" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">
If you look at <a href="https://kea.readthedocs.io/en/latest/grammar/grammar.html" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" title="https://kea.readthedocs.io/en/latest/grammar/grammar.html" data-safelink="true" data-linkindex="0" style="margin:0px" class="ContentPasted0">https://kea.readthedocs.io/en/latest/grammar/grammar.html</a> you
 can see that valid_life_time is not an attribute of host-reservations:</div>
<div class="x_elementToProof" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">
<br class="ContentPasted0">
</div>
<div class="x_elementToProof" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">
<pre class="x_ContentPasted0 ContentPasted0" style="box-sizing:border-box;line-height:1.4;font-family:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;font-size:12px;margin:0px;padding:12px;display:block;overflow:auto;color:rgb(64, 64, 64)">reservation_param <span class="x_o x_ContentPasted0 ContentPasted0" style="margin:0px;color:rgb(102, 102, 102);box-sizing:border-box">::=</span> duid
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 753</span>                   | reservation_client_classes
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 754</span>                   | client_id_value
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 755</span>                   | circuit_id_value
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 756</span>                   | flex_id_value
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 757</span>                   | ip_address
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 758</span>                   | hw_address
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 759</span>                   | hostname
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 760</span>                   | option_data_list
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 761</span>                   | next_server
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 762</span>                   | server_hostname
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 763</span>                   | boot_file_name
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 764</span>                   | user_context
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 765</span>                   | comment
<span class="x_linenos x_ContentPasted0 ContentPasted0" style="border-width:0px 1px 0px 0px;border-right-style:solid;border-right-color:rgb(230, 233, 234);margin:0px 12px 0px 0px;padding:0px 12px 0px 0px;box-sizing:border-box;display:inline-block"> 766</span>                   | unknown_map_entry</pre>
<br class="ContentPasted0">
</div>
<div class="x_elementToProof ContentPasted0" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">
Cheers,</div>
<span class="x_elementToProof ContentPasted0" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">Veronique</span><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Kraishak Mahtha <kraishak.edu@gmail.com><br>
<b>Sent:</b> Wednesday, February 22, 2023 10:35 AM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> [Kea-users] got unexpected keyword "valid-lifetime" in reservations map.</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi All, 
<div><br>
</div>
<div>I am using the kea-dhcp of 2.2.0 version, I am trying to add a reservation entry along with a valid lifetime option value but I am facing the syntax issue saying "got unexpected keyword "valid-lifetime" in reservations map".</div>
<div><br>
</div>
<div>kea-dhcp4 -t kea-dhcp4.conf. --> syntax validator<br>
Syntax check failed with:  kea-dhcp4.conf  :59.7-22: got unexpected keyword<b> "valid-lifetime" in reservations map.</b><br>
<br>
</div>
<div>I took a sample example from the forums and tried as below:</div>
<div>"subnet4": [{<br>
        "subnet": "<a href="http://4.0.0.0/16">4.0.0.0/16</a>",<br>
        "valid-lifetime": 3600,<br>
        "option-data": [<br>
            {<br>
                "data": "<a href="http://test.com">test.com</a>",<br>
                "name": "domain-name"<br>
            },<br>
            {<br>
                "data": "255.255.0.0",<br>
                "name": "subnet-mask"<br>
            },<br>
            {<br>
                "data": "99.99.99.99",<br>
                "name": "routers"<br>
            }<br>
        ],<br>
        "pools": [{<br>
"pool": "4.0.0.2-4.0.0.202"<br>
        }],<br>
        "id": 843191<br>
    }],<br>
 "reservations": [<br>
    {<br>
      "hw-address": "01:23:45:67:89:ab",<br>
      "ip-address": "4.0.0.223",<br>
      "hostname": "<a href="http://example.com">example.com</a>",<br>
  <b>    "valid-lifetime": 86400</b><br>
    }<br>
  ]<br>
</div>
<div><br>
</div>
<div>I tried moving the reservation section inside the subnet but still I get the same, Can someone who has familiarity with reservation entries can guide me ?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks in advance</div>
<div>Kraishak</div>
</div>
</div>
</body>
</html>