[Kea-users] Hook

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] Hook

itay cohen
hello all

can i know with a hook if kea is selecting an address from a pool or from static reservation ?
or maybe in-pool vs out-of-pool ?

thank you
itay,



_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Hook

Francis Dupont
itay cohen writes:
> can i know with a hook if kea is selecting an address from a pool or from
> static reservation ?
> or maybe in-pool vs out-of-pool ?

=> today it is not very easy: the best way is to make all reservations
to put the query in a specific class (cf Reserving Client Classes in DHCPv4)
and to check it in a hook installed in a callout called after host identifier.

In a close future (likely before 1.4 beta) it will be integrated in Kea
with the KNOWN builtin class (note the callout restriction will remain)
but the code is not yet written so not reviewed or merged.

Of course if all reserved addresses are outside pools (common but not
mandatory) it is enough to check if the address is in a pool.

Thanks

Francis Dupont <[hidden email]>
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users