2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[5651] Implemented fetching IPv6 leases by address ranges.

Except Cassandra.
This commit is contained in:
Marcin Siodelski
2018-06-26 13:53:01 +02:00
parent 99da64ffd5
commit 25595be427
16 changed files with 278 additions and 37 deletions

View File

@@ -236,8 +236,6 @@ public:
/// @brief Returns a range of IPv4 leases.
///
/// Returned leases are ordered by IPv4 addresses.
///
/// @param lower_bound_address IPv4 address used as a lower bound for the
/// returned range. The lease for this address is included in the returned
/// range if the lease exists.
@@ -344,7 +342,7 @@ public:
/// - If there are no leases returned it indicates that the previous page
/// was the last page.
///
/// @param lower_bound_address IPv4 address used as lower bound for the
/// @param lower_bound_address IPv6 address used as lower bound for the
/// returned range.
/// @param page_size maximum size of the page returned.
///
@@ -353,6 +351,20 @@ public:
getLeases6(const asiolink::IOAddress& lower_bound_address,
const LeasePageSize& page_size) const;
/// @brief Returns a range of IPv6 leases.
///
/// @param lower_bound_address IPv6 address used as a lower bound for the
/// returned range. The lease for this address is included in the returned
/// range if the lease exists.
/// @param upper_bound_address IPv6 address used as an upper bound for the
/// returned range. The lease for this address is included in the returned
/// range if the lease exists.
///
/// @return Lease collection (may be empty if no IPv6 lease found).
virtual Lease6Collection
getLeases6(const asiolink::IOAddress& lower_bound_address,
const asiolink::IOAddress& upper_bound_address) const;
/// @brief Returns a collection of expired DHCPv4 leases.
///
/// This method returns at most @c max_leases expired leases. The leases