diff options
author | Francis Dupont <fdupont@isc.org> | 2022-10-14 17:01:57 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2022-10-18 19:28:45 +0200 |
commit | d857f781253a8b741f8ae02ed0513651ce82c3ac (patch) | |
tree | d752077ce32c60b4957b284dd0bb539a4c2335e1 /src/lib/dhcpsrv/lease_mgr.cc | |
parent | [#2585] Checkpoint: tests to add (diff) | |
download | kea-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.cc | 14 |
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; |