[Kea-users] Execute script

alexis alzrck at gmail.com
Sat Apr 15 14:16:28 UTC 2017


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?

Thanks in advance.

On Sat, Apr 15, 2017 at 1:40 AM, Francis Dupont <fdupont at isc.org> wrote:

> Marcin writes:
> > In isc-dhcp-server we can execute scripts on 'event'.
> > How can I achive this functonality in kea server?
> > Kea supports hooks but I can't find how to execute own script on lease on
> > release. I'd like to add ip:mac from dhcp to ipset.
>
> => yes hooks are the right solution: you have to write a hook for
> the lease4_release hook point doing what you like (including calling
> system()). Two notes:
>  - hooks are synchronous, i.e., the server waits for the return
>   (isc-dhcp-server too so it should not be a problem)
>  - you can write hooks in other languages than C++
>   (I pushed some monthes ago on github the fdxhook branch with
>    experimental hooks in python, lua, ocaml, etc)
>
> Thanks
>
> Francis Dupont <fdupont at isc.org>
> _______________________________________________
> Kea-users mailing list
> 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/20170415/4f57a71a/attachment.htm>


More information about the Kea-users mailing list