[kea-dev] Quoting integer values

Philip Prindeville philipp_subx at redfish-solutions.com
Fri Jan 16 17:18:26 UTC 2026



> On Jan 16, 2026, at 5:45 AM, Francis Dupont <fdupont at isc.org> wrote:
> 
> Philip Prindeville writes:
>> I'm looking at this table:
>> 
>> https://kea.readthedocs.io/en/stable/arm/dhcp4-srv.html#id6
>> 
>> Where it says that "dhcp-renewal-time" is a uint32 but I need to encode it as
>> a string in the config file:
>> 
>> Syntax check failed with: /etc/kea/kea-dhcp4.conf:191.25-28: syntax error, un
>> expected integer, expecting constant string
>> 
>> Or I get the above message:
>> 
>>   189               {
>>   190                 "name": "dhcp-renewal-time",
>>   191                 "data": 1800,
>>   192                 "always-send": true
>>   193               }
>> 
>> Why?
> 
> => data value is a string which when csv-format is true (the default)
> is interpreted according to the option definition so you must put
>    "data": "1800",
> and the option will take the 1800 value.


I tried adding

"csv-format":false

above but it still needs a string and not an integer.


> 
>> Other things like "valid-lifetime" don't require quotes.
> 
> => "valid-lifetime" value is an integer.
> 
> Just look at the grammar of the config file (or the bison file but
> the grammar is the doc is supposed to be easier to read...).
> 
> Thanks
> 
> Francis Dupont <fdupont at isc.org>



More information about the kea-dev mailing list