<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Itay:<br>
      <br>
      "user-context" is per pool not per subnet.   Our admin guide
      example is incorrect.  Try this:<br>
      <br>
      "pools": [ { <br>
                      "pool": "10.0.0.10 -  10.0.0.99",<br>
      <b>                "user-context": { "color": "red" }</b><br>
                     } ] ,
      <div><b>                      <br>
        </b></div>
      Meanwhile, I'll create a ticket to update the doc.<br>
      <br>
      Thanks,<br>
      <br>
      Thomas<br>
      <br>
      On 8/18/17 11:59 AM, itay cohen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKvjZfii_HoVLAai=yES4GVYSzUgaJwOi+uGamdYPKCy6xR+7g@mail.gmail.com">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr"><span>actually user-context is perfect for me,</span>
        <div>i tried the example in the admin guide,</div>
        <div><br>
        </div>
        <div>but when i use it i get an error:</div>
        <div>ERROR [kea-dhcp4.dhcp4/20619] DHCP4_INIT_FAIL failed to
          initialize Kea server: configuration error using file
          '/usr/local/etc/kea/kea.conf': /usr/local/etc/kea/kea.conf:<wbr>126.4-17:
          got unexpected keyword "user-context" in subnet4 map.</div>
        <div><br>
        </div>
        <div>
          <div>                { "subnet": "<a href="http://10.0.0.0/24"
              target="_blank" moz-do-not-send="true">10.0.0.0/24</a>",</div>
          <div>                        "id": 3001,</div>
          <div>                        "pools": [ { "pool": "10.0.0.10 -
             10.0.0.99" } ] ,</div>
          <div><b>                        "user-context": { "color":
              "red" },</b></div>
          <div>                        "relay": { "ip-address":
            "10.0.0.1" },</div>
          <div>                        "option-data": [ { "name":
            "routers", "data": "10.0.0.1"  } ],</div>
          <div>                        "renew-timer": 200,</div>
          <div>                        "rebind-timer": 400,</div>
          <div>                        "valid-lifetime": 600</div>
          <div>                },</div>
        </div>
        <div><br>
        </div>
        <div>please advise,</div>
        <div>thank you</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Aug 18, 2017 at 3:10 PM,
          Francis Dupont <span dir="ltr"><<a
              href="mailto:fdupont@isc.org" target="_blank"
              moz-do-not-send="true">fdupont@isc.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote"><span class="">James Sumners
              writes:<br>
              > Unfortunately the parser doesn't ignore unknown
              properties.<br>
              <br>
            </span>=> 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 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>
          </blockquote>
        </div>
        <br>
      </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">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>