[kea-dev] Quoting integer values

Francis Dupont fdupont at isc.org
Fri Jan 16 12:45:50 UTC 2026


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.

> 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