![]() |
Kea 3.1.1
|
Implementation of the ClassCmds
class.
More...
Public Member Functions | |
ClassCmdsImpl () | |
Constructor. | |
~ClassCmdsImpl () | |
Destructor. | |
void | addClass (CalloutHandle &callout_handle) |
Returns a response to a 'class-add' command. | |
void | delClass (CalloutHandle &callout_handle) |
Processes and returns a response to 'class-del' command. | |
void | getClass (CalloutHandle &callout_handle) const |
Returns a response to a 'class-get' command. | |
void | getClassList (CalloutHandle &callout_handle) const |
Returns a response to a 'class-list' command. | |
void | updateClass (CalloutHandle &callout_handle) |
Returns a response to a 'class-update' command. | |
Implementation of the ClassCmds
class.
It provides functions for class manipulations.
Definition at line 32 of file class_cmds.cc.
|
inline |
Constructor.
Definition at line 35 of file class_cmds.cc.
References isc::dhcp::CfgMgr::getFamily(), and isc::dhcp::CfgMgr::instance().
|
inline |
Destructor.
Definition at line 40 of file class_cmds.cc.
|
inline |
Returns a response to a 'class-add' command.
callout_handle | Reference to the callout handle holding command to be processed and where result should be stored. |
Definition at line 110 of file class_cmds.cc.
References isc::dhcp::ClientClassDefParser::checkParametersSupported(), CLASS_CMDS_CLASS_ADD, CLASS_CMDS_CLASS_ADD_FAILED, isc::class_cmds::class_cmds_logger, class_list(), isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::dhcp::CfgMgr::getCurrentCfg(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_INFO, Element::map, isc::dhcp::ClientClassDefParser::parse(), and isc::hooks::CalloutHandle::setArgument().
|
inline |
Processes and returns a response to 'class-del' command.
callout_handle | Reference to the callout handle holding command to be processed and where result should be stored. |
Definition at line 416 of file class_cmds.cc.
References CLASS_CMDS_CLASS_DEL, CLASS_CMDS_CLASS_DEL_EMPTY, CLASS_CMDS_CLASS_DEL_FAILED, isc::class_cmds::class_cmds_logger, isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::dhcp::CfgMgr::getCurrentCfg(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_INFO, isc::hooks::CalloutHandle::setArgument(), and Element::string.
|
inline |
Returns a response to a 'class-get' command.
callout_handle | Reference to the callout handle holding command to be processed and where result should be stored. |
Definition at line 170 of file class_cmds.cc.
References CLASS_CMDS_CLASS_GET, CLASS_CMDS_CLASS_GET_EMPTY, CLASS_CMDS_CLASS_GET_FAILED, isc::class_cmds::class_cmds_logger, isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), Element::createList(), Element::createMap(), isc::dhcp::CfgMgr::getCurrentCfg(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_INFO, isc::hooks::CalloutHandle::setArgument(), and Element::string.
|
inline |
Returns a response to a 'class-list' command.
callout_handle | Reference to the callout handle holding command to be processed and where result should be stored. |
Definition at line 240 of file class_cmds.cc.
References CLASS_CMDS_CLASS_LIST, CLASS_CMDS_CLASS_LIST_EMPTY, CLASS_CMDS_CLASS_LIST_FAILED, isc::class_cmds::class_cmds_logger, isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, Element::create(), isc::config::createAnswer(), Element::createList(), Element::createMap(), isc::dhcp::CfgMgr::getCurrentCfg(), isc::dhcp::CfgMgr::instance(), LOG_INFO, and isc::hooks::CalloutHandle::setArgument().
|
inline |
Returns a response to a 'class-update' command.
callout_handle | Reference to the callout handle holding command to be processed and where result should be stored. |
Definition at line 295 of file class_cmds.cc.
References isc::dhcp::ClientClassDefParser::checkParametersSupported(), CLASS_CMDS_CLASS_UPDATE, CLASS_CMDS_CLASS_UPDATE_EMPTY, CLASS_CMDS_CLASS_UPDATE_FAILED, isc::class_cmds::class_cmds_logger, class_list(), isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, Element::create(), isc::config::createAnswer(), isc::dhcp::CfgMgr::getCurrentCfg(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_INFO, Element::map, isc::dhcp::ClientClassDefParser::parse(), and isc::hooks::CalloutHandle::setArgument().