<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi James:<br>
<br>
Itay didn't really state why he wanted it but I can certainly see
the utility of what you're describing.<br>
Would you mind submitting a enhancement ticket for that? <br>
<br>
Thanks,<br>
<br>
Thomas<br>
<br>
<br>
On 8/18/17 9:21 AM, James Sumners wrote:<br>
</div>
<blockquote type="cite"
cite="mid:etPan.5996e9de.3f386402.cdcd@clayton.edu">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
<div class="bloop_markdown">
<p>That isn’t really a work around. The issue is that a comment
cannot be added in such a fashion that the configuration file
is valid JSON from start to finish. The desire is to be able
to add a property in any configuration object that is there
for the configuration writer to read, not for the parser to
care about.</p>
</div>
<div class="bloop_original_html">
<div id="bloop_customfont">
<br>
</div>
<br>
<div class="airmail_ext_on"><br>
From: <span>Thomas Markwalder</span> <a
href="mailto:tmark@isc.org" moz-do-not-send="true">
<tmark@isc.org></a><br>
Date: <span>August 18, 2017 at 9:18:15 AM</span><br>
To: <span><a class="moz-txt-link-abbreviated" href="mailto:kea-users@lists.isc.org">kea-users@lists.isc.org</a></span> <a
href="mailto:kea-users@lists.isc.org" moz-do-not-send="true">
<kea-users@lists.isc.org></a><br>
Subject: <span> Re: [Kea-users] free text parameter under each
subnet
<br>
</span></div>
<br>
<blockquote type="cite" class="clean_bq"><span>
<div>
<div>
<title></title>
<div class="moz-cite-prefix">One work around for this
would be define a custom option:<br>
<br>
"Dhcp4":<br>
{<br>
:<br>
"option-def": [<br>
{<br>
"name": "newtextstring",<br>
"code": 222,<br>
"type": "string"<br>
} ]<br>
:<br>
:<br>
"subnet4": [{<br>
"subnet": "175.16.1.0/24",<br>
"pools": [ { "pool": "175.16.1.100 -
175.16.1.200" } ],<br>
"option-data": [<br>
{ "name": "newtextstring", "data":
"internal server pool" }<br>
:<br>
]<br>
:<br>
<br>
Maybe not that pretty but you could do it. The option
wouldn't get sent to clients unless they asked for
it. The bigger question is what you want to do with
this value?<br>
<br>
Regards,<br>
<br>
Thomas Markwalder<br>
ISC Software Engineering<br>
<br>
On 8/18/17 9:02 AM, James Sumners wrote:<br>
</div>
<blockquote type="cite"
cite="mid:etPan.5996e573.3fc0b03f.cdcd@clayton.edu">
<div class="bloop_markdown">
<p>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).</p>
<p>With such a property allowed it would be possible
to write completely valid JSON such that editors
and can work with it.</p>
</div>
<div class="bloop_original_html">
<div id="bloop_customfont"><br>
</div>
<br>
<div class="airmail_ext_on"><br>
From: <span>Francis Dupont</span> <a
href="mailto:fdupont@isc.org"
moz-do-not-send="true">
<fdupont@isc.org></a><br>
Date: <span>August 18, 2017 at 8:11:00 AM</span><br>
To: <span>James Sumners</span> <a
href="mailto:jamessumners@clayton.edu"
moz-do-not-send="true">
<jamessumners@clayton.edu></a><br>
Cc: <span><a class="moz-txt-link-abbreviated"
href="mailto:kea-users@lists.isc.org"
moz-do-not-send="true">kea-users@lists.isc.org</a></span>
<a href="mailto:kea-users@lists.isc.org"
moz-do-not-send="true"><kea-users@lists.isc.org></a>,
<span>itay cohen</span> <a
href="mailto:icohen9987@gmail.com"
moz-do-not-send="true">
<icohen9987@gmail.com></a><br>
Subject: <span>Re: [Kea-users] free text
parameter under each subnet<br>
</span></div>
<br>
<blockquote type="cite" class="clean_bq">
<div>
<div><span>James Sumners writes:<br>
> Unfortunately the parser doesn't ignore
unknown properties.<br>
<br>
=> not unfortunately: it is by design and
I am sure you'd like the<br>
parser to catch a trivial spelling error
than to silently ignore it.<br>
<br>
Regards<br>
<br>
Francis Dupont <a
class="moz-txt-link-rfc2396E"
href="mailto:fdupont@isc.org"
moz-do-not-send="true"><fdupont@isc.org></a><br>
<br>
PS: as you expect to add a new subnet
property you need to patch the<br>
parser. Note in pools you have the
user-context property which can be used<br>
for the same goal and can be extended (i.e.,
post a request) to subnets<br>
or other syntax elements (only host
reservations will be complex because<br>
of external host databases).<br>
</span></div>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kea-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org" moz-do-not-send="true">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users" moz-do-not-send="true">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
</blockquote>
<p><br>
</p>
_______________________________________________ <br>
Kea-users mailing list <br>
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a> <br>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a> <br>
</div>
</div>
</span></blockquote>
</div>
<div class="bloop_markdown">
</div>
</blockquote>
<p><br>
</p>
</body>
</html>