summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/lease_mgr.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2022-10-14 17:01:57 +0200
committerFrancis Dupont <fdupont@isc.org>2022-10-18 19:28:45 +0200
commitd857f781253a8b741f8ae02ed0513651ce82c3ac (patch)
treed752077ce32c60b4957b284dd0bb539a4c2335e1 /src/lib/dhcpsrv/lease_mgr.cc
parent[#2585] Checkpoint: tests to add (diff)
downloadkea-d857f781253a8b741f8ae02ed0513651ce82c3ac.tar.xz
kea-d857f781253a8b741f8ae02ed0513651ce82c3ac.zip
[#2585] Checkpoint: finish unit tests
Diffstat (limited to 'src/lib/dhcpsrv/lease_mgr.cc')
-rw-r--r--src/lib/dhcpsrv/lease_mgr.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/lease_mgr.cc b/src/lib/dhcpsrv/lease_mgr.cc
index ed3d87607b..6373b56a63 100644
--- a/src/lib/dhcpsrv/lease_mgr.cc
+++ b/src/lib/dhcpsrv/lease_mgr.cc
@@ -361,6 +361,20 @@ LeaseMgr::getDBVersion() {
isc_throw(NotImplemented, "LeaseMgr::getDBVersion() called");
}
+void
+LeaseMgr::setExtendedInfoEnabled(const DatabaseConnection::ParameterMap& parameters) {
+ std::string extended_info_tables;
+ try {
+ extended_info_tables = parameters.at("extended-info-tables");
+ } catch (const exception&) {
+ extended_info_tables = "false";
+ }
+ // If extended_info_tables is 'true' we will enable them.
+ if (extended_info_tables == "true") {
+ setExtendedInfoEnabled(true);
+ }
+}
+
bool
LeaseMgr::upgradeLease4ExtendedInfo(const Lease4Ptr& lease) {
static OptionDefinitionPtr rai_def;