diff options
author | Marcin Siodelski <marcin@isc.org> | 2020-10-05 19:28:27 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2020-10-08 15:44:39 +0200 |
commit | 5d570cf077b886556a0e53c54ab34ebc13e24ace (patch) | |
tree | 32cda0863bc90672ead80efd4d362799e1117dd2 /src/lib/dhcpsrv/cfg_db_access.h | |
parent | [#1428] Configure unique IP in HostMgr (diff) | |
download | kea-5d570cf077b886556a0e53c54ab34ebc13e24ace.tar.xz kea-5d570cf077b886556a0e53c54ab34ebc13e24ace.zip |
[#1428] Use ip-reservations-unique in alloc engine
Diffstat (limited to 'src/lib/dhcpsrv/cfg_db_access.h')
-rw-r--r-- | src/lib/dhcpsrv/cfg_db_access.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/cfg_db_access.h b/src/lib/dhcpsrv/cfg_db_access.h index 6c73efc128..29b27c1bb6 100644 --- a/src/lib/dhcpsrv/cfg_db_access.h +++ b/src/lib/dhcpsrv/cfg_db_access.h @@ -75,7 +75,7 @@ public: std::list<std::string> getHostDbAccessStringList() const; /// @brief Modifies the setting imposing whether the IP reservations - /// are unique or can be non-unique. + /// are unique or can be non unique. /// /// This flag can be set to @c false when the server is explicitly /// configured to allow multiple hosts to have the same IP reservation. @@ -91,6 +91,15 @@ public: ip_reservations_unique_ = unique; } + /// @brief Returns the setting indicating if the IP reservations are + /// unique or can be non unique. + /// + /// @return true if the IP reservations must be unique or false if + /// the reservations can be non unique. + bool getIPReservationsUnique() const { + return (ip_reservations_unique_); + } + /// @brief Creates instance of lease manager and host data sources /// according to the configuration specified. void createManagers(); |