[Kea-users] Get leases via hook

Rui Pedro Caldeira rpcaldeira at outlook.com
Wed Sep 21 17:23:26 UTC 2016


Ok, got it! Thank you!


<https://about.me/rpcaldeira?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links>

[https://aboutme.imgix.net/background/users/r/p/c/rpcaldeira_outlook.com_1455023098_86.jpg?w=105&q=90&dpr=1&auto=format,redeye&rect=0,14,756,504]

Rui Pedro Caldeira
about.me/rpcaldeira




On Tue, Sep 20, 2016 at 6:47 PM, Tomek Mrugalski <tomasz at isc.org<mailto:tomasz at isc.org>> wrote:
W dniu 20.09.2016 o 18:55, Rui Pedro Caldeira pisze:
> Hello guys, i have a question. Is there any way I can get all leases
> from kea in a hook library code?
No. We're not aware of any use case that would require getting all the
leases at once, so this capability is not currently supported.

Do you have any specific use case for it?

If you want to get specific leases, you could call
LeaseMgrFactory::getLeaseMgrPtr() and then use various getLease4() or
getLease6() calls as defined in lease_mgr.h. But you need to know
something about the lease you're looking for.

On a somewhat related note, we have several lease manipulation commands
planned. They're described here:
http://kea.isc.org/wiki/ControlAPIRequirements. I was wondering if any
of those would be helpful to achieve whatever you're trying to do.

Tomek

_______________________________________________
Kea-users mailing list
Kea-users at lists.isc.org<mailto:Kea-users at lists.isc.org>
https://lists.isc.org/mailman/listinfo/kea-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20160921/89fc820b/attachment.htm>


More information about the Kea-users mailing list