[Kea-users] Config backend and Rest API

Ahiya Zadok ahiya at younity.io
Mon Aug 28 15:18:37 UTC 2023


Thank you, Darren,

I'll go through these useful links.



-----Original Message-----
From: Darren Ankney <darren.ankney at gmail.com>
Sent: Monday, 28 August 2023 17:35
To: Ahiya Zadok <ahiya at younity.io>
Cc: kea-users at lists.isc.org
Subject: Re: [Kea-users] Config backend and Rest API

Hi,

Let me start by mentioning this article:
https://kb.isc.org/docs/experimenting-with-postgresql-high-availability
If you scroll down to the section titled: "Testing Kea API commands with
PGPool-II backend", you will find an example of using the database backend
to store leases, host reservations, and configuration.

Maintenance of database stored Host reservations requires the host commands
hook
(https://kea.readthedocs.io/en/kea-2.4.0/arm/hooks.html#libdhcp-host-cmds-so-host-commands).
This is a premium hook that must be purchased or a support contract must be
purchased in order to obtain the hook.

Configuration parameters stored in the database require the Configuration
Backend Commands hook
(https://kea.readthedocs.io/en/kea-2.4.0/arm/hooks.html#libdhcp-cb-cmds-so-configuration-backend-commands).
This is also a premium hook.

Also required for Configuration backend storage is the specific
MySQL/MariaDB
(https://kea.readthedocs.io/en/kea-2.4.0/arm/hooks.html#libdhcp-mysql-cb-so-configuration-backend-for-mysql)
or PostgreSQL
(https://kea.readthedocs.io/en/kea-2.4.0/arm/hooks.html#libdhcp-pgsql-cb-so-configuration-backend-for-postgresql)
configuration backend hook.  Neither of these are premium hooks.

Leases stored in the database may be accessed with the Lease Commands hook
(https://kea.readthedocs.io/en/kea-2.4.0/arm/hooks.html#libdhcp-lease-cmds-so-lease-commands-for-easier-lease-management).
This is not a premium hook.

The Kea control agent is NOT premium hook:
https://kea.readthedocs.io/en/kea-2.4.0/arm/agent.html It is an optional Kea
component that allows API communication over IP rather than directly to the
unix socket of the appropriate Kea component.

You can see each of these hooks in use at the aforementioned article.

Thank you,

Darren Ankney

On Mon, Aug 28, 2023 at 7:26 AM Ahiya Zadok <ahiya at younity.io> wrote:
>
> Hi
>
>
>
> I’m new to Kea; we are currently using ISC DHCP and are considering moving
> to Kea.
>
> We have dozens of sites with multiple subnets each.
>
>
>
> I considered using the config backend architecture because of the
> centralized management and configuration ability, and in the future, I
> will integrate it with a CMDB (IPAM) like NetBox.
>
> Looking at Kea documents, it seems that the CB is part of the Community
> version, but it requires the Kea Control Agent (Rest API), which is part
> of the commercial version.
>
> So, I’m a bit confused here.
>
> I’d appreciate it if someone could shed some light on this matter.
>
> Is it possible to use the CB and rest API with the Community version?
>
>
>
>
>
> Thank you all in advance!
>
>
>
>
>
> --
> 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 at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users


More information about the Kea-users mailing list