[Kea-users] checking for a valid kea json conf
Darren Ankney
darren.ankney at gmail.com
Thu Jun 5 20:04:27 UTC 2025
Hi Gregor,
if you execute (for example):
kea-dhcp4 -T /etc/kea/kea-dhcp4.conf
kea-dhcp4 will come pretty close to actually starting the server. It
should catch most problems. Do note that capital T in -T as the lower
-t does not perform as many checks. This, of course, doesn't mean that
it will find configuration errors that would not prevent Kea from
starting.
Thank you,
Darren Ankney
On Tue, Jun 3, 2025 at 10:35 AM Gregor Kling <gregor.kling at its.thm.de> wrote:
>
>
> On 6/3/25 16:15, Francis Dupont wrote:
> > <server> -t <config_file> (it does not check everything but at least
> > syntax errors are detected and reported).
>
>
> Does syntax error here also mean it detects parameters that are used at
> places
>
> there are not supposed to?
>
> The warning all-keys.json for example mentions mutually exclusive params:
>
> // WARNING: This example configuration is not meant for production use.
> // The Kea DHCPv4 server will refuse this configuration because it contains
> // mutually exclusive configuration parameters.
>
> > There is also an old ticket proposing to export the parsing part to
> > a library so such tools should become very easy to write.
> >
> > Regards
> >
> > Francis Dupont <fdupont at isc.org>
> >
> > PS: the API provides a config-test too.
>
>
> Thanks.
>
>
> gg
>
> --
> Gregor Kling
>
> Abteilung ITS, Sachgebiet ITS-N
> Technische Hochschule Mittelhessen
> University of Applied Sciences
> Tel: 0641/309-1292
> E-Mail: gregor.kling at its.thm.de
>
> --
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
More information about the Kea-users
mailing list