diff options
Diffstat (limited to 'src/lib/dhcpsrv/cfg_mac_source.h')
-rw-r--r-- | src/lib/dhcpsrv/cfg_mac_source.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/cfg_mac_source.h b/src/lib/dhcpsrv/cfg_mac_source.h index 802a780fa8..cfb9fb110b 100644 --- a/src/lib/dhcpsrv/cfg_mac_source.h +++ b/src/lib/dhcpsrv/cfg_mac_source.h @@ -7,6 +7,7 @@ #ifndef CFG_MAC_SOURCE_H #define CFG_MAC_SOURCE_H +#include <cc/cfg_to_element.h> #include <stdint.h> #include <vector> #include <string> @@ -21,7 +22,7 @@ typedef std::vector<uint32_t> CfgMACSources; /// /// It's a simple wrapper around a vector of uint32_t, with each entry /// holding one MAC source. -class CfgMACSource { +class CfgMACSource : public isc::data::CfgToElement { public: /// @brief Default constructor. @@ -68,6 +69,11 @@ class CfgMACSource { mac_sources_.clear(); } + /// @brief Unparse a configuration objet + /// + /// @return a pointer to unparsed configuration + virtual isc::data::ElementPtr toElement() const; + protected: /// @brief Actual MAC sources storage CfgMACSources mac_sources_; |