summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/pgsql_lease_mgr.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2024-01-12 14:11:37 +0100
committerFrancis Dupont <fdupont@isc.org>2024-01-17 11:06:16 +0100
commit511e9c43a4ba2964dcc11d6258edb509cd8f8ead (patch)
tree2c8a22a4923497d33036e27b09975c7430506e97 /src/lib/dhcpsrv/pgsql_lease_mgr.h
parent[#3149] Simplified getLinks (diff)
downloadkea-511e9c43a4ba2964dcc11d6258edb509cd8f8ead.tar.xz
kea-511e9c43a4ba2964dcc11d6258edb509cd8f8ead.zip
[#3149] Moved to getLeases6 overload
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r--src/lib/dhcpsrv/pgsql_lease_mgr.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h
index 5617f058c7..4f4332826d 100644
--- a/src/lib/dhcpsrv/pgsql_lease_mgr.h
+++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h
@@ -408,6 +408,19 @@ public:
getLeases6(const asiolink::IOAddress& lower_bound_address,
const LeasePageSize& page_size) const override;
+ /// @brief Returns a page of IPv6 leases for a subnet identifier.
+ ///
+ /// @param subnet_id subnet identifier.
+ /// @param lower_bound_address IPv6 address used as lower bound for the
+ /// returned range.
+ /// @param page_size maximum size of the page returned.
+ ///
+ /// @return collection of IPv6 leases
+ virtual Lease6Collection
+ getLeases6(SubnetID subnet_id,
+ const asiolink::IOAddress& lower_bound_address,
+ const LeasePageSize& page_size) const override;
+
/// @brief Returns a collection of expired DHCPv4 leases.
///
/// This method returns at most @c max_leases expired leases. The leases
@@ -724,10 +737,10 @@ public:
GET_LEASE6_PAGE, // Get page of leases beginning with an address
GET_LEASE6_UCTX_PAGE, // Get page of leases with user context
GET_LEASE6_SUBID, // Get IPv6 leases by subnet ID
+ GET_LEASE6_SUBID_PAGE, // Get page of IPv6 lease by subnet ID
GET_LEASE6_DUID, // Get IPv6 leases by DUID
GET_LEASE6_HOSTNAME, // Get IPv6 leases by hostname
GET_LEASE6_EXPIRE, // Get lease6 by expiration.
- GET_LEASE6_LINK, // Get page of lease6 by link
INSERT_LEASE4, // Add entry to lease4 table
INSERT_LEASE6, // Add entry to lease6 table
UPDATE_LEASE4, // Update a Lease4 entry
@@ -1093,19 +1106,6 @@ public:
const asiolink::IOAddress& lower_bound_address,
const LeasePageSize& page_size) override;
- /// @brief Returns existing IPv6 leases with on a given link.
- ///
- /// @param subnet_id subnet identifier.
- /// @param lower_bound_address IPv4 address used as lower bound for the
- /// returned range.
- /// @param page_size maximum size of the page returned.
- ///
- /// @return collection of IPv6 leases
- virtual Lease6Collection
- getLeases6ByLink(SubnetID subnet_id,
- const asiolink::IOAddress& lower_bound_address,
- const LeasePageSize& page_size) override;
-
/// @brief Upgrade extended info (v4).
///
/// For all leases with a not null user context.