diff options
author | Marcin Siodelski <marcin@isc.org> | 2019-03-06 12:15:04 +0100 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2019-03-07 14:00:36 +0100 |
commit | 3875af038ac3297d15dda9c10a5a8d05b3b00a52 (patch) | |
tree | 625069a3c03d8566e50f08588fb3ac900c52e841 /src/lib/dhcpsrv/subnet.h | |
parent | [#488,!259] Extracted common parsing functions to a new class. (diff) | |
download | kea-3875af038ac3297d15dda9c10a5a8d05b3b00a52.tar.xz kea-3875af038ac3297d15dda9c10a5a8d05b3b00a52.zip |
[#488,!259] Subnet's and Network's toElement do not output optionals.
Diffstat (limited to 'src/lib/dhcpsrv/subnet.h')
-rw-r--r-- | src/lib/dhcpsrv/subnet.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/lib/dhcpsrv/subnet.h b/src/lib/dhcpsrv/subnet.h index 0e720ede0b..31d6680ca7 100644 --- a/src/lib/dhcpsrv/subnet.h +++ b/src/lib/dhcpsrv/subnet.h @@ -16,8 +16,6 @@ #include <dhcpsrv/pool.h> #include <dhcpsrv/subnet_id.h> #include <dhcpsrv/triplet.h> -#include <util/optional.h> - #include <boost/multi_index/mem_fun.hpp> #include <boost/multi_index/indexed_by.hpp> #include <boost/multi_index/ordered_index.hpp> @@ -532,38 +530,6 @@ public: virtual bool clientSupported(const isc::dhcp::ClientClasses& client_classes) const; - /// @brief Sets siaddr for the Subnet4 - /// - /// Will be used for siaddr field (the next server) that typically is used - /// as TFTP server. If not specified, the default value of 0.0.0.0 is - /// used. - void setSiaddr(const util::Optional<asiolink::IOAddress>& siaddr); - - /// @brief Returns siaddr for this subnet - /// - /// @return siaddr value - util::Optional<asiolink::IOAddress> getSiaddr() const; - - /// @brief Sets server hostname for the Subnet4 - /// - /// Will be used for server hostname field (may be empty if not defined) - void setSname(const util::Optional<std::string>& sname); - - /// @brief Returns server hostname for this subnet - /// - /// @return server hostname value - const util::Optional<std::string>& getSname() const; - - /// @brief Sets boot file name for the Subnet4 - /// - /// Will be used for boot file name (may be empty if not defined) - void setFilename(const util::Optional<std::string>& filename); - - /// @brief Returns boot file name for this subnet - /// - /// @return boot file name value - const util::Optional<std::string>& getFilename() const; - /// @brief Returns DHCP4o6 configuration parameters. /// /// This structure is always available. If the 4o6 is not enabled, its @@ -608,15 +574,6 @@ private: /// @throw BadValue if invalid value is used virtual void checkType(Lease::Type type) const; - /// @brief siaddr value for this subnet - util::Optional<asiolink::IOAddress> siaddr_; - - /// @brief server hostname for this subnet - util::Optional<std::string> sname_; - - /// @brief boot file name for this subnet - util::Optional<std::string> filename_; - /// @brief All the information related to DHCP4o6 Cfg4o6 dhcp4o6_; }; |