[Kea-users] Releasing or deleting a lease

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] Releasing or deleting a lease

Tim Howe
Is there a way to manually release or delete a lease?

--TimH
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Releasing or deleting a lease

Thomas Markwalder
Hello:

You can manipulate leases through lease management commands supplied by
the Lease Commands hooks library (see
https://kea.isc.org/docs/kea-guide.html#lease-cmds).  The commands are
JSON text sent either directly to the kea-dhcp<4/6> server's Control
Channel socket (unix socket,
must be done on the server box), or via REST interface provided through
the Kea Control Agent.

So you'll need to configure the server to load the lease_cmds hooks lib
(https://kea.isc.org/docs/kea-guide.html#idp58545328) and to open
and control channel socket
(https://kea.isc.org/docs/kea-guide.html#dhcp4-ctrl-channel similar link
of v6), and then either use Control Channel
directly (https://kea.isc.org/docs/kea-guide.html#ctrl-channel-client
or configure and run the Kea Control Agent
(https://kea.isc.org/docs/kea-guide.html#kea-ctrl-agent) and use the
REST interface.

Regards,

Thomas Markwalder
ISC Software Engineering

On 06/01/2018 02:14 PM, Tim Howe wrote:
> Is there a way to manually release or delete a lease?
>
> --TimH
> _______________________________________________
> Kea-users mailing list
> [hidden email]
> https://lists.isc.org/mailman/listinfo/kea-users

_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Releasing or deleting a lease

Francis Dupont
In reply to this post by Tim Howe
lease_cmds hook (in Kea core code)?

Regards

Francis Dupont <[hidden email]>
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users