<div dir="auto">Thank You for update. </div><div dir="auto">Unfortunately for me libdhcp<span style="background-color:rgba(0,0,0,0);border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">_cb_cmds.so is paid hook so it seems there is no way to add subnet to db via API without subscription. </span></div><div dir="auto"><span style="background-color:rgba(0,0,0,0);border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">Manual SQL insert with audit log, server tag, etc works, but I wanted to avoid database schema change in the future. </span></div><div dir="auto"><span style="background-color:rgba(0,0,0,0);border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)"><br></span></div><div dir="auto"><span style="background-color:rgba(0,0,0,0);border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">Thanks </span></div><div dir="auto"><span style="background-color:rgba(0,0,0,0);border-color:rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(204,204,204);color:rgb(0,0,0)">Marcin</span></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Nov 19, 2025 at 16:16 Darren Ankney <<a href="mailto:darren.ankney@gmail.com">darren.ankney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi,<br>
<br>
One more update, it should be noted that the libdhcp_subnet_cmds.so<br>
(<a href="https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-subnet-cmds-so-subnet-commands-to-manage-subnets-and-shared-networks" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-subnet-cmds-so-subnet-commands-to-manage-subnets-and-shared-networks</a>)<br>
hook is incompatible with the configuration backend and cannot be used<br>
to alter the subnet configuration anywhere but in memory (written out<br>
to the configuration file with a subsequent config-write call).  This<br>
is noted here: <a href="https://kea.readthedocs.io/en/stable/arm/config.html#incompatible-software" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/stable/arm/config.html#incompatible-software</a><br>
<br>
Thank you,<br>
Darren Ankney<br>
<br>
On Wed, Nov 19, 2025 at 9:45 AM Darren Ankney <<a href="mailto:darren.ankney@gmail.com" target="_blank">darren.ankney@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> Using the configuration backend<br>
> (<a href="https://kea.readthedocs.io/en/stable/arm/dhcp6-srv.html#dhcp6-cb" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/stable/arm/dhcp6-srv.html#dhcp6-cb</a>)<br>
> requires loading two hooks:<br>
><br>
> - libdhcp_cb_cmds.so<br>
> (<a href="https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-cb-cmds-so-configuration-backend-commands" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-cb-cmds-so-configuration-backend-commands</a>)<br>
> which provides the API commands necessary to manage the configuration<br>
> in the database.<br>
> - and one of libdhcp_mysql.so<br>
> (<a href="https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-mysql-so-database-backend-for-mysql" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-mysql-so-database-backend-for-mysql</a>)<br>
> or libdhcp_pgsql.so<br>
> (<a href="https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-pgsql-so-database-backend-for-postgresql" rel="noreferrer" target="_blank">https://kea.readthedocs.io/en/stable/arm/hooks.html#libdhcp-pgsql-so-database-backend-for-postgresql</a>)<br>
> depending on which database server software you use.<br>
><br>
> Thank you,<br>
> Darren Ankney<br>
><br>
> On Tue, Nov 18, 2025 at 6:44 PM Marcin Jurczuk <<a href="mailto:spock@omegastar.eu" target="_blank">spock@omegastar.eu</a>> wrote:<br>
> ><br>
> > Hi,<br>
> > I read basically all documentation about libdhcp_subnet_cmds hook and I still can't figure out how to force system to puth subnet config to database.<br>
> > hosts_cmds have this option  called "operation-target" that allows you to define where config should be stored. It is not mentioned in subnet hook.<br>
> > I'm able to insert network to config file(after API call to write cfg) but not to db.<br>
> > What is operation-target equivalent or how force kea do save subnet to database.<br>
> ><br>
> > Thanks in advance.<br>
> > --<br>
> > ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
> ><br>
> > To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
> > <a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users.Kea-users@lists.isc.org" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users.<br>
Kea-users@lists.isc.org</a><br>
</blockquote></div></div>