<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div>Hi,</div><div><br></div><div>yes, I believe you can indeed put all in one file. At some point I considered writing some utility to read/write the JSON in order to reduce the risk of errors. I guess this could be a nice open source side project. Still, that would require handling the configuration reload (maybe via systemctl?), as the JSON-based reservations are not updated in real time (I think). There may be some chances using the kea-ctrl-agent API to reload the config. But I'm currently investigating this myself, so I don't have final thoughts.</div><div><br></div><div>Regarding the size limit of the config file I have no knowledge, I'm afraid.</div><div><br></div><div>Regarding netbox, I must admit I don't know it. However, I will offer my personal speculation: unless netbox takes the responsibility of ensuring the integrity of the Kea DB (which sounds unlikely), I think you may still need the task-specific official Kea hook to ensure proper handling. I mean, I've seen pieces of code handling direct "INSERT INTO" and "SELECT FROM" SQL queries, but they really look sketchy.</div><div><br></div><div>Hope this makes sense.</div><div><br></div><div>Best,</div><div>Nicolò.</div><div><br></div><div><br></div><div><br></div><p>January 10, 2024 at 10:02 AM, "Albert Shih" <<a href="mailto:Albert.Shih@obspm.fr?to=%22Albert%20Shih%22%20%3CAlbert.Shih%40obspm.fr%3E" target="_blank" tabindex="-1">Albert.Shih@obspm.fr</a>> wrote:</p><blockquote><div>Le 10/01/2024 à 08:22:08+0000, Nicolò Borghi a écrit</div><div><br></div><div>Hi, </div><div><br></div><blockquote>as far as I understand, either you find a way to handle the JSON kea-dhcp4.conf</blockquote><div><br></div><div>So you are saying I still can put everything inside one file ? Do you known</div><div>if they are a limit of the size of the conf file ?</div><div><br></div><blockquote><div>configuration file (which is open source) or you buy the premium hook library</div><div> exposing the MySQL/PostgreSQL Configuration Backend hooks.</div></blockquote><div><br></div><div>Ok. </div><div><br></div><blockquote><div>Actually, Kea should be able to READ from a given DB, since those hook</div><div> libraries are open source as well. What is however not possible without the</div><div> premium package is to WRITE the configurations to the DB. Keep in mind that the</div><div> DB tables have complex dependencies from each other, so it's not really viable</div><div> to write directly to the DB.</div></blockquote><div><br></div><div>Ok. I see the Kea can work with netbox, I also see the netbox have the</div><div>«host reservation», in that case do I still need the premium hook ? </div><div><br></div><div>Regards</div><div><br></div><div>-- </div><div>Albert SHIH 🦫 🐸</div><div>France</div><div>Heure locale/Local time:</div><div>mer. 10 janv. 2024 09:43:42 CET</div><div>-- </div><div>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.</div><div><br></div><div>To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.</div><div><br></div><div>Kea-users mailing list</div><div><a href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a></div><div><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a></div></blockquote><div><br></div></body></html>