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