Kea 3.1.1
isc::class_cmds::ClassCmdsImpl Class Reference

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.
 

Detailed Description

Implementation of the ClassCmds class.

It provides functions for class manipulations.

Definition at line 32 of file class_cmds.cc.

Constructor & Destructor Documentation

◆ ClassCmdsImpl()

isc::class_cmds::ClassCmdsImpl::ClassCmdsImpl ( )
inline

Constructor.

Definition at line 35 of file class_cmds.cc.

References isc::dhcp::CfgMgr::getFamily(), and isc::dhcp::CfgMgr::instance().

+ Here is the call graph for this function:

◆ ~ClassCmdsImpl()

isc::class_cmds::ClassCmdsImpl::~ClassCmdsImpl ( )
inline

Destructor.

Definition at line 40 of file class_cmds.cc.

Member Function Documentation

◆ addClass()

void isc::class_cmds::ClassCmdsImpl::addClass ( CalloutHandle & callout_handle)
inline

Returns a response to a 'class-add' command.

Parameters
callout_handleReference 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().

+ Here is the call graph for this function:

◆ delClass()

void isc::class_cmds::ClassCmdsImpl::delClass ( CalloutHandle & callout_handle)
inline

Processes and returns a response to 'class-del' command.

Parameters
callout_handleReference 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.

+ Here is the call graph for this function:

◆ getClass()

void isc::class_cmds::ClassCmdsImpl::getClass ( CalloutHandle & callout_handle) const
inline

Returns a response to a 'class-get' command.

Parameters
callout_handleReference 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.

+ Here is the call graph for this function:

◆ getClassList()

void isc::class_cmds::ClassCmdsImpl::getClassList ( CalloutHandle & callout_handle) const
inline

Returns a response to a 'class-list' command.

Parameters
callout_handleReference 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().

+ Here is the call graph for this function:

◆ updateClass()

void isc::class_cmds::ClassCmdsImpl::updateClass ( CalloutHandle & callout_handle)
inline

Returns a response to a 'class-update' command.

Parameters
callout_handleReference 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().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: