<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">
I don't know. You should probably test, or get the answer of an expert.</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> Kraishak Mahtha <kraishak.edu@gmail.com><br>
<b>Sent:</b> Wednesday, February 22, 2023 11:19 AM<br>
<b>To:</b> Veronique Lefebure <Veronique.Lefebure@cern.ch><br>
<b>Cc:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] got unexpected keyword "valid-lifetime" in reservations map.</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Veronique,
<div><br>
</div>
<div>So for a reservation entry, if we want to define a lease time that is different from subnet can we do as follows? i.e define only the option 51(dhcp-lease-time) will this be efficient ?</div>
<div>"subnet4": [<br>
{<br>
"subnet": "<a href="http://4.0.0.0/16">4.0.0.0/16</a>",<br>
"valid-lifetime": 3600,<br>
"reservations": [<br>
{<br>
"ip-address": "4.0.255.243",<br>
"hostname": "3G00034Phone",<br>
"valid-lifetime": 126,<br>
"hw-address": "aa:bb:cc:dd:ee:55",<br>
"option-data": [<br>
{<br>
"data": "126",<br>
"name": "dhcp-lease-time"<br>
},<br>
{<br>
"data": "4.0.0.1",<br>
"name": "routers"<br>
}<br>
]<br>
}<br>
],<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": "4.0.0.1",<br>
"name": "routers"<br>
}<br>
],<br>
"pools": [<br>
{<br>
"pool": "4.0.0.2-4.0.0.202"<br>
}<br>
],<br>
"id": 843191<br>
}<br>
]<br>
</div>
<div><br>
</div>
<div>Thanks </div>
<div>Kraishak</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, Feb 22, 2023 at 3:18 PM Veronique Lefebure <<a href="mailto:Veronique.Lefebure@cern.ch">Veronique.Lefebure@cern.ch</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-2689993132197320284">
<div 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)">
<span 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)">
<div 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" rel="noopener noreferrer" title="https://kea.readthedocs.io/en/latest/grammar/grammar.html" target="_blank" style="margin:0px">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 style="font-size:12pt; margin:0px; background-color:rgb(255,255,255)"><br>
</div>
<div style="font-size:12pt; margin:0px; background-color:rgb(255,255,255)">
<pre 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 style="margin:0px; color:rgb(102,102,102); box-sizing:border-box">::=</span> duid
<span 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 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 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 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 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 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 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 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 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 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 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 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 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 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>
</div>
<div style="font-size:12pt; margin:0px; background-color:rgb(255,255,255)">Cheers,</div>
<span style="font-size:12pt; margin:0px; background-color:rgb(255,255,255)">Veronique</span><br>
</div>
<div id="x_m_-2689993132197320284appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_m_-2689993132197320284divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Kea-users <<a href="mailto:kea-users-bounces@lists.isc.org" target="_blank">kea-users-bounces@lists.isc.org</a>> on
behalf of Kraishak Mahtha <<a href="mailto:kraishak.edu@gmail.com" target="_blank">kraishak.edu@gmail.com</a>><br>
<b>Sent:</b> Wednesday, February 22, 2023 10:35 AM<br>
<b>To:</b> <a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a> <<a href="mailto:kea-users@lists.isc.org" target="_blank">kea-users@lists.isc.org</a>><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" target="_blank">4.0.0.0/16</a>",<br>
"valid-lifetime": 3600,<br>
"option-data": [<br>
{<br>
"data": "<a href="http://test.com" target="_blank">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" target="_blank">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>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>