Hi,
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.
Regarding the size limit of the config file I have no knowledge, I'm afraid.
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.
Hope this makes sense.
Best,
Nicolò.
January 10, 2024 at 10:02 AM, "Albert Shih" <albert.s...@obspm.fr> wrote:
>
> Le 10/01/2024 à 08:22:08+0000, Nicolò Borghi a écrit
>
> Hi,
>
> >
> > as far as I understand, either you find a way to handle the JSON
> > kea-dhcp4.conf
> >
>
> So you are saying I still can put everything inside one file ? Do you known
> if they are a limit of the size of the conf file ?
>
> >
> > configuration file (which is open source) or you buy the premium hook
> > library
> > exposing the MySQL/PostgreSQL Configuration Backend hooks.
> >
>
> Ok.
>
> >
> > Actually, Kea should be able to READ from a given DB, since those hook
> > libraries are open source as well. What is however not possible without the
> > premium package is to WRITE the configurations to the DB. Keep in mind
> > that the
> > DB tables have complex dependencies from each other, so it's not really
> > viable
> > to write directly to the DB.
> >
>
> Ok. I see the Kea can work with netbox, I also see the netbox have the
> «host reservation», in that case do I still need the premium hook ?
>
> Regards
>
> --
> Albert SHIH 🦫 🐸
> France
> Heure locale/Local time:
> mer. 10 janv. 2024 09:43:42 CET
> --
> ISC funds the development of this software with paid support subscriptions.
> Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
--
ISC funds the development of this software with paid support subscriptions.
Contact us at https://www.isc.org/contact/ for more information.
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users