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 
<tom...@isc.org<mailto:tom...@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@lists.isc.org<mailto:Kea-users@lists.isc.org>
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

Reply via email to