mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[5280] leaseWipe4,6 implemented in lease managers (base and memfile)
This commit is contained in:
@@ -329,6 +329,28 @@ public:
|
||||
/// @return Number of leases deleted.
|
||||
virtual uint64_t deleteExpiredReclaimedLeases4(const uint32_t secs);
|
||||
|
||||
/// @brief Removes specified IPv4 leases.
|
||||
///
|
||||
/// This rather dangerous method is able to remove all leases from specified
|
||||
/// subnet.
|
||||
///
|
||||
/// @todo: Not implemented yet.
|
||||
///
|
||||
/// @param subnet_id identifier of the subnet
|
||||
/// @return number of leases removed.
|
||||
virtual size_t wipeLeases4(const SubnetID& subnet_id);
|
||||
|
||||
/// @brief Removed specified IPv6 leases.
|
||||
///
|
||||
/// This rather dangerous method is able to remove all leases from specified
|
||||
/// subnet.
|
||||
///
|
||||
/// @todo: Not implemented yet.
|
||||
///
|
||||
/// @param subnet_id identifier of the subnet
|
||||
/// @return number of leases removed.
|
||||
virtual size_t wipeLeases6(const SubnetID& subnet_id);
|
||||
|
||||
/// @brief Deletes all expired-reclaimed DHCPv6 leases.
|
||||
///
|
||||
/// @param secs Number of seconds since expiration of leases before
|
||||
|
Reference in New Issue
Block a user