Thanks for sharing... I am looking to use the hooks for a couple things too, and have not touched C in a long time. It helps to see other examples to help scope my thing. I also need to make PXE work, so I will give your plugin a shot, and let you know how it goes.
Cheers, Jason On Fri, Dec 23, 2016 at 3:39 PM, Michael Gugino <[email protected]> wrote: > Hello all, > > I'm new to kea and investigating it for suitability for various > projects. If you have seen Facebook's use case of supplying response > parameters from a centralized location is a pretty nice approach and I > decided to implement similar functionality utilizing the hooks api. I'm > sharing it here because it looks like the community around kea is still > growing, so this implementation might meet someone's needs; also it might > serve as a little more in-depth reference for what I believe might be some > common tasks for implementing pkt4_send calls. > > What it does: implement's hook callout for pkt4_send. Overrides > siaddr, tftp-server-name and bootfile-name. Method of override is an HTTP > GET request (via libcurl) to retrieve a JSON body. JSON is parsed with > boost::ptree. Params are read manually from a JSON config file instead of > using module parameters in kea-dhcp4.conf as Ubuntu 16.04 currently ships > 1.0.0 and that is my target platform. > > I'm not an expert in C or C++, pull requests and feedback welcome: > https://github.com/michaelgugino/kea-pxe-replace-mod > > Thanks, > > Michael Gugino > > _______________________________________________ > Kea-users mailing list > [email protected] > https://lists.isc.org/mailman/listinfo/kea-users > >
_______________________________________________ Kea-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/kea-users
