<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">Ok, got it! Thank you!</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width:auto;height:20px;font-size:0px"> </td>
</tr>
<tr>
<td style="width:auto">
<div style="line-height:0"><a href="https://about.me/rpcaldeira?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links" style="text-decoration:none;display:inline-block" target="_blank">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width:107px;line-height:1;vertical-align:top" valign="top" align="left">
<img alt="--" style="display:block;width:0;height:0;overflow:hidden" width="0" height="0">
<div><img src="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" alt="" style="margin:0;padding:0;display:block;border:1px solid #eeeeee" width="105" height="70">
</div>
</td>
<td style="width:10px;font-size:0px"> </td>
<td style="width:auto;line-height:1;padding:0px;padding-bottom:3px;vertical-align:bottom" valign="bottom" align="left">
<div style="margin:0;font-size:18px;font-weight:bold;color:#333333;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,Sans-Serif">
Rui Pedro Caldeira</div>
<div style="margin:0;margin-top:1px;font-size:12px;color:#2b82ad;font-family:proxima-nova-1,Proxima-Nova,Helvetica,Arial,Sans-Serif">
<img alt="https://" style="display:block;width:0;height:0;overflow:hidden" width="0" height="0">about.me/rpcaldeira</div>
</td>
</tr>
</tbody>
</table>
</a></div>
</td>
</tr>
<tr>
<td style="width:auto;height:20px;font-size:0px"><img src="https://about.me/t/sig?u=rpcaldeira" style="border:0;margin:0;padding:0;width:1;height:1;overflow:hidden" width="1" height="1"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Sep 20, 2016 at 6:47 PM, Tomek Mrugalski <span dir="ltr">
<<a href="mailto:tomasz@isc.org" target="_blank">tomasz@isc.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
W dniu 20.09.2016 o 18:55, Rui Pedro Caldeira pisze:<br>
<span class="">> Hello guys, i have a question. Is there any way I can get all leases<br>
> from kea in a hook library code?<br>
</span>No. We're not aware of any use case that would require getting all the<br>
leases at once, so this capability is not currently supported.<br>
<br>
Do you have any specific use case for it?<br>
<br>
If you want to get specific leases, you could call<br>
LeaseMgrFactory::<wbr>getLeaseMgrPtr() and then use various getLease4() or<br>
getLease6() calls as defined in lease_mgr.h. But you need to know<br>
something about the lease you're looking for.<br>
<br>
On a somewhat related note, we have several lease manipulation commands<br>
planned. They're described here:<br>
<a href="http://kea.isc.org/wiki/ControlAPIRequirements" rel="noreferrer" target="_blank">http://kea.isc.org/wiki/<wbr>ControlAPIRequirements</a>. I was wondering if any<br>
of those would be helpful to achieve whatever you're trying to do.<br>
<br>
Tomek<br>
<br>
______________________________<wbr>_________________<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/kea-users</a><br>
</blockquote>
</div>
<br>
</div>
</body>
</html>