<div dir="ltr"><p>Hi Kea Dev Team,</p><p>
</p><p>I’m migrating from ISC DHCP to Kea and encountered an issue when attempting to define a custom option using code 121. In ISC DHCP, I was able to define option 121 for custom use as follows:<br><br>option custom-option-121 code 121 = array of integer 8;<br><br></p><p>In Kea, when I try to replicate that using:</p><p>
</p><pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-flex gmail-items-center gmail-text-token-text-secondary gmail-px-4 gmail-py-2 gmail-text-xs gmail-font-sans gmail-justify-between gmail-h-9 gmail-bg-token-sidebar-surface-primary gmail-select-none gmail-rounded-t-2xl">"option-def": [<br>  {<br>    "name": "custom-option-121",<br>    "code": 121,<br>    "type": "uint8",</div><div class="gmail-flex gmail-items-center gmail-text-token-text-secondary gmail-px-4 gmail-py-2 gmail-text-xs gmail-font-sans gmail-justify-between gmail-h-9 gmail-bg-token-sidebar-surface-primary gmail-select-none gmail-rounded-t-2xl">    "array": true<br>    <br>  }<br>]</div></div></pre><p>I get the following error:<br>DHCP4_PARSER_FAIL failed to create or run parser for configuration element option-def: unable to override definition of option '121' in standard option space 'dhcp4'<br><br><br></p><p>I understand from the Kea ARM documentation (<a rel="noopener" class="gmail-" href="https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#id5">https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#id5</a>) that Option 121 is already part of the standard DHCPv4 option definitions. However, in my use case, I need to send custom data under option 121 because the client expects it.</p><p>Is there a supported way in Kea to:</p><ol>
<li>
<p>Override standard options like 121 with custom format/data?</p>
</li>
<li>
<p>Send custom data using option 121 in a way compatible with clients expecting it?</p>
</li>
</ol><p>



</p><p></p><p></p><p>Any advice or suggested workarounds would be greatly appreciated.<br>Note that this is not only for option 121, I am also using other option numbers also as custom option.<br><br>Best regards,<br>
Dipesh</p></div>