Kea support in DHCPLSS plugin (or a new plugin)? #1632
Replies: 5 comments 5 replies
-
|
Some hints.. To go the API way, you want to have this in your kea config, this is for debian 13: A basic python script to pull the info we want looks like this then: |
Beta Was this translation helpful? Give feedback.
-
|
And a start of an integration: |
Beta Was this translation helpful? Give feedback.
-
|
Hi - thanks for the idea - I think the API route is cleaner. Happy to review a PR for it. See the plugins guide for details: https://docs.netalertx.com/PLUGINS_DEV/?h=plugin+deve#plugin-development-guide |
Beta Was this translation helpful? Give feedback.
-
|
@jokob-sk Ok, fine, created a PR :) |
Beta Was this translation helpful? Give feedback.
-
|
@jokob-sk Ok, I think I covered everything, even most of what the naggy rabbit had to say :) Still works: 22:34:59 [Plugins] Processed and deleted file: /tmp/log/plugins/last_result.KEALSS.log |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Kea is supposedly/possibly the future of DHCP (https://www.isc.org/kea/)
It would be nice if we can pull in DHCP leases from it :)
From a basic install on debian it creates this file:
cat /var/lib/kea/kea-leases4.csv
address,hwaddr,client_id,valid_lifetime,expire,subnet_id,fqdn_fwd,fqdn_rev,hostname,state,user_context,pool_id
But as I understand it Kea also supports databases, in which case scanning the above file won't help.
So another/additional approach could be API?
Seems someone had a look at that a long time ago:
https://www.reddit.com/r/opnsense/comments/1etkrpv/comment/lij7nzu/
Some actual API doc:
https://kea.readthedocs.io/en/latest/api.html#lease4-get-all
https://kea.readthedocs.io/en/latest/api.html#ref-reservation-get-all
Not sure yet what is required to use the API though :)
Beta Was this translation helpful? Give feedback.
All reactions