[Kea-users] free text parameter under each subnet

James Sumners JamesSumners at clayton.edu
Fri Aug 18 13:02:07 UTC 2017


That’s definitely a strong argument for a strict parser. Maybe adding support for a “comment” property would be a good compromise. The property could be any valued (i.e. string, object, array, whatever).

With such a property allowed it would be possible to write completely valid JSON such that editors and can work with it.



From: Francis Dupont <fdupont at isc.org><mailto:fdupont at isc.org>
Date: August 18, 2017 at 8:11:00 AM
To: James Sumners <jamessumners at clayton.edu><mailto:jamessumners at clayton.edu>
Cc: kea-users at lists.isc.org <kea-users at lists.isc.org><mailto:kea-users at lists.isc.org>, itay cohen <icohen9987 at gmail.com><mailto:icohen9987 at gmail.com>
Subject:  Re: [Kea-users] free text parameter under each subnet

James Sumners writes:
> Unfortunately the parser doesn't ignore unknown properties.

=> not unfortunately: it is by design and I am sure you'd like the
parser to catch a trivial spelling error than to silently ignore it.

Regards

Francis Dupont <fdupont at isc.org>

PS: as you expect to add a new subnet property you need to patch the
parser. Note in pools you have the user-context property which can be used
for the same goal and can be extended (i.e., post a request) to subnets
or other syntax elements (only host reservations will be complex because
of external host databases).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170818/e8d875c9/attachment.htm>


More information about the Kea-users mailing list