<div dir="ltr">Hello Francis, i've cloned the fdxhook branch to take a look but i can find no example of a hook written in python (or other language different than C++) is there any chance to get those examples?<div><br></div><div>Thanks in advance.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 15, 2017 at 1:40 AM, Francis Dupont <span dir="ltr"><<a href="mailto:fdupont@isc.org" target="_blank">fdupont@isc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Marcin writes:<br>
> In isc-dhcp-server we can execute scripts on 'event'.<br>
> How can I achive this functonality in kea server?<br>
> Kea supports hooks but I can't find how to execute own script on lease on<br>
> release. I'd like to add ip:mac from dhcp to ipset.<br>
<br>
=> yes hooks are the right solution: you have to write a hook for<br>
the lease4_release hook point doing what you like (including calling<br>
system()). Two notes:<br>
- hooks are synchronous, i.e., the server waits for the return<br>
(isc-dhcp-server too so it should not be a problem)<br>
- you can write hooks in other languages than C++<br>
(I pushed some monthes ago on github the fdxhook branch with<br>
experimental hooks in python, lua, ocaml, etc)<br>
<br>
Thanks<br>
<br>
Francis Dupont <<a href="mailto:fdupont@isc.org">fdupont@isc.org</a>><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>