summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/pgsql_lease_mgr.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2023-05-25 02:29:39 +0200
committerFrancis Dupont <fdupont@isc.org>2023-07-06 22:11:32 +0200
commit5ab389783db0293a47c2f0ec679ffcd49feecc43 (patch)
tree77193a4b7c9576758fae9fbe13c982981cd1b1a2 /src/lib/dhcpsrv/pgsql_lease_mgr.h
parent[#2869] Implemented wipeExtendedInfoTables6 (diff)
downloadkea-5ab389783db0293a47c2f0ec679ffcd49feecc43.tar.xz
kea-5ab389783db0293a47c2f0ec679ffcd49feecc43.zip
[#2869] Implemented new deletes
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r--src/lib/dhcpsrv/pgsql_lease_mgr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h
index b94de61494..fafeebfc2e 100644
--- a/src/lib/dhcpsrv/pgsql_lease_mgr.h
+++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h
@@ -972,6 +972,7 @@ private:
std::string
checkLimits(isc::data::ConstElementPtr const& user_context, StatementIndex const stindex) const;
+public:
/// @brief Checks if the IPv4 lease limits set in the given user context are exceeded.
/// PostgreSQL implementation.
///
@@ -1146,6 +1147,7 @@ private:
/// @brief Write V6 leases to a file.
virtual void writeLeases6(const std::string& /*filename*/) override;
+private:
/// @brief Context RAII allocator.
class PgSqlLeaseContextAlloc {
public:
@@ -1249,6 +1251,15 @@ protected:
const std::vector<uint8_t>& remote_id) override;
private:
+ /// @brief Delete lease6 extended info from by-relay-id table.
+ ///
+ /// @param addr The address of the lease.
+ void deleteRelayId6(const isc::asiolink::IOAddress& addr);
+
+ /// @brief Delete lease6 extended info from by-remote-id table.
+ ///
+ /// @param addr The address of the lease.
+ void deleteRemoteId6(const isc::asiolink::IOAddress& addr);
// Members