summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/pgsql_lease_mgr.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2022-10-14 02:27:32 +0200
committerFrancis Dupont <fdupont@isc.org>2022-10-18 19:28:45 +0200
commit04133ea65a5b24cce5ea99113abe1bd42ab4ea32 (patch)
treecfe9fdfa6e6e602bd737bc8894e716dd2e85f9c0 /src/lib/dhcpsrv/pgsql_lease_mgr.h
parent[#2357] Updated doc (diff)
downloadkea-04133ea65a5b24cce5ea99113abe1bd42ab4ea32.tar.xz
kea-04133ea65a5b24cce5ea99113abe1bd42ab4ea32.zip
[#2585] Checkpoint: tests to add
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_lease_mgr.h')
-rw-r--r--src/lib/dhcpsrv/pgsql_lease_mgr.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/pgsql_lease_mgr.h b/src/lib/dhcpsrv/pgsql_lease_mgr.h
index 999c58d7bd..afb0082f34 100644
--- a/src/lib/dhcpsrv/pgsql_lease_mgr.h
+++ b/src/lib/dhcpsrv/pgsql_lease_mgr.h
@@ -1056,12 +1056,54 @@ private:
const asiolink::IOAddress& lower_bound_address,
const LeasePageSize& page_size) override;
+ /// @brief Delete lease6 extended info from tables.
+ ///
+ /// @param addr The address of the lease.
+ virtual void deleteExtendedInfo6(const isc::asiolink::IOAddress& addr) override;
+
+ /// @brief Add lease6 extended info into by-relay-id table.
+ ///
+ /// @param lease_addr The address of the lease.
+ /// @param link_addr The link address from the relay header.
+ /// @param relay_id The relay id from the relay header options.
+ virtual void addRelayId6(const isc::asiolink::IOAddress& lease_addr,
+ const isc::asiolink::IOAddress& link_addr,
+ const std::vector<uint8_t>& relay_id) override;
+
+ /// @brief Add lease6 extended info into by-remote-id table.
+ ///
+ /// @param lease_addr The address of the lease.
+ /// @param link_addr The link address from the remote header.
+ /// @param remote_id The remote id from the relay header options.
+ virtual void addRemoteId6(const isc::asiolink::IOAddress& lease_addr,
+ const isc::asiolink::IOAddress& link_addr,
+ const std::vector<uint8_t>& remote_id) override;
+
+ /// @brief Add lease6 extended info into by-link-addr table.
+ ///
+ /// @param lease_addr The address of the lease.
+ /// @param link_addr The link address from the remote header.
+ virtual void addLinkAddr6(const isc::asiolink::IOAddress& lease_addr,
+ const isc::asiolink::IOAddress& link_addr) override;
+
/// @brief Write V4 leases to a file.
virtual void writeLeases4(const std::string& /*filename*/) override;
/// @brief Write V6 leases to a file.
virtual void writeLeases6(const std::string& /*filename*/) override;
+ /// @brief Modifies the setting whether the lease extended info tables
+ /// are enabled.
+ ///
+ /// Transient redefine to refuse the enable setting.
+ /// @param enabled new setting.
+ virtual void setExtendedInfoEnabled(const bool enabled) override {
+ if (enabled) {
+ isc_throw(isc::NotImplemented,
+ "extended info tables are not yet supported by postgresql");
+ }
+ }
+
/// @brief Context RAII Allocator.
class PgSqlLeaseContextAlloc {
public: