davejohncole / kea_python

Embed Python in the Kea DHCP server.
Mozilla Public License 2.0
25 stars 15 forks source link

Add support for leases4 and deleted_leases4 arguments #4

Open djlambert opened 3 years ago

djlambert commented 3 years ago

In addition to query4 the leases4_committed hook takes two arguments leases4 and deleted_leases4 of type isc::dhcp::Leases4CollectionPtr.

I'm trying to update client DNS records on a Samba server. Since Kea doesn't support GSS-TSIG for DDNS I'm hoping to use kea_python and Samba Python modules instead of calling a shell script. The leases4_committed hook seems to be the place to do it.

davejohncole commented 3 years ago

You are trying things that I have not done so I am interested to see how things turn out.

djlambert commented 3 years ago

I'll definitely let you know, and will be putting the code on GitHub once it's working. I've come across others looking for the same functionality in my searching.

Would you be able to add support for these 2 arguments, time permitting, so I can utilize the hook?

davejohncole commented 3 years ago

Sure.

I keep getting distracted by my other (hardware and software) project, so it is not fair on you to leave you hanging. By all means fork my code and package it. If you want some further changes to the C++ code I can help you with that, but will be unpredictable in response time.

On Tue, May 25, 2021 at 2:33 AM Derek J. Lambert @.***> wrote:

I'll definitely let you know, and will be putting the code on GitHub once it's working. I've come across others looking for the same functionality in my searching.

Would you be able to add support for these 2 arguments, time permitting, so I can utilize the hook?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/davejohncole/kea_python/issues/4#issuecomment-847179003, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUSDEEHBYWML4OJ4XTF44TTPJ5WFANCNFSM45C5QFIA .