2
0
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:
Tomek Mrugalski
2017-08-04 21:00:11 +02:00
parent d1be21aa57
commit 574356fa9e
18 changed files with 366 additions and 10 deletions

View File

@@ -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