13 #include <boost/shared_ptr.hpp>
87 return (enterprise_id_);
94 enterprise_id_ = enterprise_id;
131 return (current_duid_);
140 std::vector<uint8_t> identifier_;
149 uint32_t enterprise_id_;
160 typedef boost::shared_ptr<CfgDUID>
CfgDUIDPtr;
boost::shared_ptr< DUID > DuidPtr
uint32_t getTime() const
Returns time for the DUID-LLT.
Base class for user context.
boost::shared_ptr< Element > ElementPtr
bool persist() const
Checks if server identifier should be stored on disk.
uint16_t getHType() const
Returns hardware type for DUID-LLT and DUID-LL.
boost::shared_ptr< const CfgDUID > ConstCfgDUIDPtr
Pointer to the const object.
void setType(const DUID::DUIDType &type)
Sets DUID type.
void setHType(const uint16_t htype)
Sets new hardware type for DUID-LLT and DUID-LL.
DUIDType
specifies DUID type
const DuidPtr getCurrentDuid() const
Fetches the duid created by create()
Abstract class for configuration Cfg_* classes.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
DUID::DUIDType getType() const
Returns DUID type.
void setTime(const uint32_t new_time)
Sets new time for DUID-LLT.
void setPersist(const bool persist)
Sets a boolean flag indicating if the server identifier should be stored on the disk (if true) or not...
void setEnterpriseId(const uint32_t enterprise_id)
Sets new enterprise id.
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::vector< uint8_t > getIdentifier() const
Returns identifier.
uint32_t getEnterpriseId() const
Returns enterprise id for the DUID-EN.
DuidPtr create(const std::string &duid_file_path)
Creates instance of a DUID from the current configuration.
boost::shared_ptr< CfgDUID > CfgDUIDPtr
Pointer to the Non-const object.
void setIdentifier(const std::string &identifier_as_hex)
Sets new identifier as hex string.
Holds manual configuration of the server identifier (DUID).