summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/pgsql_lease_mgr.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2023-05-26 11:12:12 +0200
committerFrancis Dupont <fdupont@isc.org>2023-07-06 22:11:33 +0200
commit76559da4f42afbe0ed8e0a65549edb608df2db97 (patch)
treef7363ff8680a49f3ad910f5e29978d181a241b05 /src/lib/dhcpsrv/pgsql_lease_mgr.h
parent[#2869] Updated v6 status-get (diff)
downloadkea-76559da4f42afbe0ed8e0a65549edb608df2db97.tar.xz
kea-76559da4f42afbe0ed8e0a65549edb608df2db97.zip
[#2869] Added extended-info6-upgrade
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r--src/lib/dhcpsrv/pgsql_lease_mgr.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h
index 511d51e654..28cd892c96 100644
--- a/src/lib/dhcpsrv/pgsql_lease_mgr.h
+++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h
@@ -1139,6 +1139,19 @@ public:
/// @return The number of updates in the database or 0.
virtual size_t buildExtendedInfoTables6(bool update, bool current) override;
+ /// @brief Upgrade extended info (v6).
+ ///
+ /// All leases with a not null user context.
+ /// - sanitize the user context
+ /// - update relay and remote id tables
+ /// - when the lease was modified update it in the database
+ /// This function implements the new BLQ hook command named
+ /// "extended-info6-upgrade".
+ ///
+ /// @param page_size The page size used for retrieval.
+ /// @return The number of updates in the database.
+ virtual size_t upgradeExtendedInfo6(const LeasePageSize& page_size) override;
+
/// @brief Wipe extended info table (v6).
virtual void wipeExtendedInfoTables6() override;