Kea 3.3.4
isc::cb::ConfigCmdsImpl Class Reference

Base class for the implementations of the callouts for cb_cmds library for DHCPv4 and DHCPv6. More...

#include <cb_cmds_impl.h>

Inheritance diagram for isc::cb::ConfigCmdsImpl:

Public Member Functions

 ConfigCmdsImpl ()
 Constructor.
template<typename FunType>
void delClientClass (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-class[46]-del command.
template<typename FunType>
void delGlobalOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-option[46]-global-del command.
template<typename FunType>
void delGlobalParameter (hooks::CalloutHandle &callout_handle, const data::SimpleKeywords &keywords, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-global-parameter[46]-del command.
template<typename FunType>
void delOptionDef (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-option-def[46]-del command.
template<typename FunType>
void delPoolOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-option[46]-pool-del command.
template<typename FunType>
void delServer (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-server[46]-del command.
template<typename FunType, typename FunType2>
void delSharedNetwork (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun, FunType2 delete_all_fun)
 Implements handler for remote-shared-network[46]-del command.
template<typename FunType>
void delSharedNetworkOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-option[46]-network-del command.
template<typename FunType>
void delSubnetId (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-subnet[46]-del-by-id command.
template<typename FunType>
void delSubnetOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-option[46]-subnet-del command.
template<typename FunType>
void delSubnetPrefix (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
 Implements handler for remote-subnet[46]-del-by-prefix command.
template<typename FunType>
void getAllClientClasses (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all)
 Implements handler for remote-class[46]-get-all command.
template<typename FunType>
void getAllGlobalOptions (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all_fun)
 Implements handler for remote-option[46]-global-get-all command.
template<typename FunType>
void getAllGlobalParameters (hooks::CalloutHandle &callout_handle, const data::SimpleKeywords &keywords, const uint16_t address_family, FunType get_all_fun)
 Implements handler for remote-global-parameter[46]-get-all command.
template<typename FunType>
void getAllOptionDefs (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all_fun)
 Implements handler for remote-option-def[46]-get-all command.
template<typename FunType>
void getAllServers (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all_fun)
 Implements handler for remote-server[46]-get-all command.
template<typename FunType>
void getClientClass (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
 Implements handler for remote-class[46]-get command.
template<typename FunType>
void getGlobalOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
 Implements handler for remote-option[46]-global-get command.
template<typename FunType>
void getGlobalParameter (hooks::CalloutHandle &callout_handle, const data::SimpleKeywords &keywords, const uint16_t address_family, FunType get_fun)
 Implements handler for remote-global-parameter[46]-get command.
template<typename FunType>
void getOptionDef (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
 Implements handler for remote-option-def[46]-get command.
template<typename FunType>
void getServer (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
 Implements handler for remote-server[46]-get command.
template<typename SharedNetworkPtrType, typename SubnetCollection, typename FunType, typename FunType2>
void getSharedNetwork (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun, FunType2 get_all)
 Implements handler for remote-shared-network[46]-get command.
template<typename SubnetPtrType, typename FunType>
void getSubnetId (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
 Implements handler for remote-subnet[46]-get-by-id command.
template<typename SubnetPtrType, typename FunType>
void getSubnetPrefix (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
 Implements handler for remote-subnet[46]-get-by-prefix command.
template<typename SharedNetworkCollection, typename FunType>
void listSharedNetworks (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all)
 Implements handler for remote-shared-network[46]-list command.
template<typename SubnetCollection, typename FunType>
void listSubnets (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all_fun)
 Implements handler for remote-subnet[46]-list command.
data::ElementPtr makeOptionInfoElement (const OptionDefinition &def) const
 Create an element map containing an OptionDef's code and space.
data::ElementPtr makeOptionInfoElement (const OptionDescriptor &desc) const
 Create an element map containing an OptionDescriptor's code, space, and client classes.
template<typename FunType>
void setClientClass (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-class[46]-set command.
template<typename FunType>
void setGlobalOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-option[46]-global-set command.
template<typename FunType>
void setGlobalParameter (hooks::CalloutHandle &callout_handle, const data::SimpleKeywords &keywords, const data::SimpleKeywords &list_keywords, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-global-parameter[46]-set command.
template<typename FunType>
void setOptionDef (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-option-def[46]-set command.
template<typename FunType>
void setPoolOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-option[46]-pool-set command.
template<typename FunType>
void setServer (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-server[46]-set command.
template<typename SharedNetworkPtrType, typename SharedNetworkParser, typename FunType>
void setSharedNetwork (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-shared-network[46]-set command.
template<typename FunType>
void setSharedNetworkOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-option[46]-network-set command.
template<typename SubnetPtrType, typename SubnetConfigParser, typename FunType>
void setSubnet (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-subnet[46]-set command.
template<typename FunType>
void setSubnetOption (hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
 Implements handler for remote-option[46]-subnet-set command.

Protected Attributes

boost::shared_ptr< ConfigCmdsParser > parser_
 Shared pointer to the commands parser.

Detailed Description

Base class for the implementations of the callouts for cb_cmds library for DHCPv4 and DHCPv6.

This class implements common code for callouts supported by the cb_cmds hooks library.

Definition at line 486 of file cb_cmds_impl.h.

Constructor & Destructor Documentation

◆ ConfigCmdsImpl()

isc::cb::ConfigCmdsImpl::ConfigCmdsImpl ( )

Constructor.

Definition at line 134 of file cb_cmds_impl.cc.

References parser_.

Member Function Documentation

◆ delClientClass()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delClientClass ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-class[46]-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 1510 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::hooks::CalloutHandle::getArgument(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delClientClass4(), and isc::cb::ConfigCmdsDhcp6Impl::delClientClass6().

Here is the call graph for this function:

◆ delGlobalOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delGlobalOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-option[46]-global-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 2002 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delGlobalOption4(), and isc::cb::ConfigCmdsDhcp6Impl::delGlobalOption6().

Here is the call graph for this function:

◆ delGlobalParameter()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delGlobalParameter ( hooks::CalloutHandle & callout_handle,
const data::SimpleKeywords & keywords,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-global-parameter[46]-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
keywordsKeywords of global parameters.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 583 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::data::Element::string, isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delGlobalParameter4(), and isc::cb::ConfigCmdsDhcp6Impl::delGlobalParameter6().

Here is the call graph for this function:

◆ delOptionDef()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delOptionDef ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-option-def[46]-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 1740 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delOptionDef4(), and isc::cb::ConfigCmdsDhcp6Impl::delOptionDef6().

Here is the call graph for this function:

◆ delPoolOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delPoolOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-option[46]-pool-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 2718 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::asiolink::IOAddress::IPV4_ZERO_ADDRESS(), isc::asiolink::IOAddress::IPV6_ZERO_ADDRESS(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delPoolOption4(), and isc::cb::ConfigCmdsDhcp6Impl::delPoolOption6().

Here is the call graph for this function:

◆ delServer()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delServer ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-server[46]-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 2253 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delServer4(), and isc::cb::ConfigCmdsDhcp6Impl::delServer6().

Here is the call graph for this function:

◆ delSharedNetwork()

template<typename FunType, typename FunType2>
void isc::cb::ConfigCmdsImpl::delSharedNetwork ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun,
FunType2 delete_all_fun )
inline

Implements handler for remote-shared-network[46]-del command.

Template Parameters
FunTypeType of delete method.
FunType2Type of deleteAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.
delete_all_fundeleteAll method.

Definition at line 1225 of file cb_cmds_impl.h.

References isc::cb::ConfigCmdsParser::ACTION_DELETE, isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::hooks::CalloutHandle::getArgument(), isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delSharedNetwork4(), and isc::cb::ConfigCmdsDhcp6Impl::delSharedNetwork6().

Here is the call graph for this function:

◆ delSharedNetworkOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delSharedNetworkOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-option[46]-network-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 2479 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delSharedNetworkOption4(), and isc::cb::ConfigCmdsDhcp6Impl::delSharedNetworkOption6().

Here is the call graph for this function:

◆ delSubnetId()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delSubnetId ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-subnet[46]-del-by-id command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 905 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delSubnet4Id(), and isc::cb::ConfigCmdsDhcp6Impl::delSubnet6Id().

Here is the call graph for this function:

◆ delSubnetOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delSubnetOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-option[46]-subnet-del command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 2595 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delSubnetOption4(), and isc::cb::ConfigCmdsDhcp6Impl::delSubnetOption6().

Here is the call graph for this function:

◆ delSubnetPrefix()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::delSubnetPrefix ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType delete_fun )
inline

Implements handler for remote-subnet[46]-del-by-prefix command.

Template Parameters
FunTypeType of delete method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
delete_fundelete method.

Definition at line 950 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::delSubnet4Prefix(), and isc::cb::ConfigCmdsDhcp6Impl::delSubnet6Prefix().

Here is the call graph for this function:

◆ getAllClientClasses()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getAllClientClasses ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_all )
inline

Implements handler for remote-class[46]-get-all command.

Template Parameters
FunTypeType of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_allgetAll method.

Definition at line 1615 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::dhcp::ClientClassDictionary::empty(), get_all(), isc::hooks::CalloutHandle::getArgument(), isc::dhcp::ClientClassDictionary::getClasses(), isc::db::info, isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getAllClientClasses4(), and isc::cb::ConfigCmdsDhcp6Impl::getAllClientClasses6().

Here is the call graph for this function:

◆ getAllGlobalOptions()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getAllGlobalOptions ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_all_fun )
inline

Implements handler for remote-option[46]-global-get-all command.

Template Parameters
FunTypeType of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_all_fungetAll method.

Definition at line 2134 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::hooks::CalloutHandle::getArgument(), isc::db::ServerSelector::getTags(), isc::db::info, isc_throw, isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getAllGlobalOptions4(), and isc::cb::ConfigCmdsDhcp6Impl::getAllGlobalOptions6().

Here is the call graph for this function:

◆ getAllGlobalParameters()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getAllGlobalParameters ( hooks::CalloutHandle & callout_handle,
const data::SimpleKeywords & keywords,
const uint16_t address_family,
FunType get_all_fun )
inline

Implements handler for remote-global-parameter[46]-get-all command.

Template Parameters
FunTypeType of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
keywordsList of keywords to accept.
address_familyAddress family (AF_INET or AF_INET6).
get_all_fungetAll method.

Definition at line 737 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::data::Element::fromJSON(), isc::hooks::CalloutHandle::getArgument(), isc::db::ServerSelector::getTags(), isc::db::info, isc_throw, isc::data::Element::list, isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, isc::dhcp::CBControlDHCP< ConfigBackendMgrType >::translateName(), and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getAllGlobalParameters4(), and isc::cb::ConfigCmdsDhcp6Impl::getAllGlobalParameters6().

Here is the call graph for this function:

◆ getAllOptionDefs()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getAllOptionDefs ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_all_fun )
inline

Implements handler for remote-option-def[46]-get-all command.

Template Parameters
FunTypeType of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_all_fungetAll method.

Definition at line 1863 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::hooks::CalloutHandle::getArgument(), isc::db::ServerSelector::getTags(), isc::db::info, isc_throw, isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getAllOptionDefs4(), and isc::cb::ConfigCmdsDhcp6Impl::getAllOptionDefs6().

Here is the call graph for this function:

◆ getAllServers()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getAllServers ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_all_fun )
inline

Implements handler for remote-server[46]-get-all command.

Template Parameters
FunTypeType of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_all_fungetAll method.

Definition at line 2351 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::hooks::CalloutHandle::getArgument(), isc::db::info, isc_throw, isc::config::parseCommand(), isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getAllServers4(), and isc::cb::ConfigCmdsDhcp6Impl::getAllServers6().

Here is the call graph for this function:

◆ getClientClass()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getClientClass ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_fun )
inline

Implements handler for remote-class[46]-get command.

Template Parameters
FunTypeType of get method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.

Definition at line 1557 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::info, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getClientClass4(), and isc::cb::ConfigCmdsDhcp6Impl::getClientClass6().

Here is the call graph for this function:

◆ getGlobalOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getGlobalOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_fun )
inline

Implements handler for remote-option[46]-global-get command.

Template Parameters
FunTypeType of get method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.

Definition at line 2058 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc::db::info, isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getGlobalOption4(), and isc::cb::ConfigCmdsDhcp6Impl::getGlobalOption6().

Here is the call graph for this function:

◆ getGlobalParameter()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getGlobalParameter ( hooks::CalloutHandle & callout_handle,
const data::SimpleKeywords & keywords,
const uint16_t address_family,
FunType get_fun )
inline

Implements handler for remote-global-parameter[46]-get command.

Template Parameters
FunTypeType of get method.
Parameters
callout_handleCallout handle provided to the callout.
keywordsKeywords of global parameters.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.

Definition at line 641 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::data::Element::fromJSON(), isc::db::ServerSelector::getTags(), isc::db::info, isc_throw, isc::data::Element::list, parser_, isc::hooks::CalloutHandle::setArgument(), isc::data::Element::string, isc::cb::ConfigCmdsParser::TAGS_REQUIRED, isc::dhcp::CBControlDHCP< ConfigBackendMgrType >::translateName(), and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getGlobalParameter4(), and isc::cb::ConfigCmdsDhcp6Impl::getGlobalParameter6().

Here is the call graph for this function:

◆ getOptionDef()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getOptionDef ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_fun )
inline

Implements handler for remote-option-def[46]-get command.

Template Parameters
FunTypeType of get method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.

Definition at line 1797 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc::db::info, isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getOptionDef4(), and isc::cb::ConfigCmdsDhcp6Impl::getOptionDef6().

Here is the call graph for this function:

◆ getServer()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::getServer ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_fun )
inline

Implements handler for remote-server[46]-get command.

Template Parameters
FunTypeType of get method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.

Definition at line 2297 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::data::ServerTag::get(), isc::db::info, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getServer4(), and isc::cb::ConfigCmdsDhcp6Impl::getServer6().

Here is the call graph for this function:

◆ getSharedNetwork()

template<typename SharedNetworkPtrType, typename SubnetCollection, typename FunType, typename FunType2>
void isc::cb::ConfigCmdsImpl::getSharedNetwork ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_fun,
FunType2 get_all )
inline

Implements handler for remote-shared-network[46]-get command.

Template Parameters
SharedNetworkPtrTypeType of shared pointers to shared networks (dhcp::SharedNetwork4Ptr or dhcp::SharedNetwork6Ptr).
SubnetCollectionType of collection of subnet pointers (dhcp::Subnet4Collection or dhcp::Subnet6Collection).
FunTypeType of get method.
FunType2Type of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.
get_allgetAll method.

Definition at line 1293 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), get_all(), isc::cb::ConfigCmdsParser::INCLUDE_FULL, isc::cb::ConfigCmdsParser::INCLUDE_NO, isc::db::info, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getSharedNetwork4(), and isc::cb::ConfigCmdsDhcp6Impl::getSharedNetwork6().

Here is the call graph for this function:

◆ getSubnetId()

template<typename SubnetPtrType, typename FunType>
void isc::cb::ConfigCmdsImpl::getSubnetId ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_fun )
inline

Implements handler for remote-subnet[46]-get-by-id command.

Template Parameters
SubnetPtrTypeType of shared pointers to subnets (dhcp::Subnet4Ptr or dhcp::Subnet6Ptr).
FunTypeType of get method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.

Definition at line 999 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::createAnswer(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getSubnet4Id(), and isc::cb::ConfigCmdsDhcp6Impl::getSubnet6Id().

Here is the call graph for this function:

◆ getSubnetPrefix()

template<typename SubnetPtrType, typename FunType>
void isc::cb::ConfigCmdsImpl::getSubnetPrefix ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_fun )
inline

Implements handler for remote-subnet[46]-get-by-prefix command.

Template Parameters
SubnetPtrTypeType of shared pointers to subnets (dhcp::Subnet4Ptr or dhcp::Subnet6Ptr).
FunTypeType of get method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_funget method.

Definition at line 1035 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::createAnswer(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::getSubnet4Prefix(), and isc::cb::ConfigCmdsDhcp6Impl::getSubnet6Prefix().

Here is the call graph for this function:

◆ listSharedNetworks()

template<typename SharedNetworkCollection, typename FunType>
void isc::cb::ConfigCmdsImpl::listSharedNetworks ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_all )
inline

Implements handler for remote-shared-network[46]-list command.

Template Parameters
SharedNetworkCollectionType of collection of shared network pointers (dhcp::SharedNetwork4Collection or dhcp::SharedNetwork6Collection).
FunTypeType of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_allgetAll method.

Definition at line 1379 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), get_all(), isc::hooks::CalloutHandle::getArgument(), isc::db::info, isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::listSharedNetworks4(), and isc::cb::ConfigCmdsDhcp6Impl::listSharedNetworks6().

Here is the call graph for this function:

◆ listSubnets()

template<typename SubnetCollection, typename FunType>
void isc::cb::ConfigCmdsImpl::listSubnets ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType get_all_fun )
inline

Implements handler for remote-subnet[46]-list command.

Template Parameters
SubnetCollectionType of collection of subnet pointers (dhcp::Subnet4Collection or dhcp::Subnet6Collection).
FunTypeType of getAll method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
get_all_fungetAll method.

Definition at line 1073 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_EMPTY, isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::hooks::CalloutHandle::getArgument(), isc::db::info, isc::config::parseCommandWithArgs(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::listSubnets4(), and isc::cb::ConfigCmdsDhcp6Impl::listSubnets6().

Here is the call graph for this function:

◆ makeOptionInfoElement() [1/2]

data::ElementPtr isc::cb::ConfigCmdsImpl::makeOptionInfoElement ( const OptionDefinition & def) const
inline

Create an element map containing an OptionDef's code and space.

Parameters
defoption definition who's information is desired.
Returns
Map element containing the options' code and space.

Definition at line 2775 of file cb_cmds_impl.h.

References isc::data::Element::create(), isc::data::Element::createMap(), isc::dhcp::OptionDefinition::getCode(), and isc::dhcp::OptionDefinition::getOptionSpaceName().

Referenced by setGlobalOption(), setOptionDef(), setPoolOption(), setSharedNetworkOption(), and setSubnetOption().

Here is the call graph for this function:

◆ makeOptionInfoElement() [2/2]

data::ElementPtr isc::cb::ConfigCmdsImpl::makeOptionInfoElement ( const OptionDescriptor & desc) const
inline

Create an element map containing an OptionDescriptor's code, space, and client classes.

Parameters
descoption descriptor who's information is desired.
Returns
Map element containing the options' code, space, and client classes.

Definition at line 2792 of file cb_cmds_impl.h.

References isc::dhcp::OptionDescriptor::client_classes_, isc::data::Element::create(), isc::data::Element::createMap(), isc::dhcp::ClientClasses::empty(), isc::dhcp::OptionDescriptor::option_, isc::dhcp::OptionDescriptor::space_name_, and isc::dhcp::ClientClasses::toElement().

Here is the call graph for this function:

◆ setClientClass()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setClientClass ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-class[46]-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 1447 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::ServerSelector::hasNoTags(), isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setClientClass4(), and isc::cb::ConfigCmdsDhcp6Impl::setClientClass6().

Here is the call graph for this function:

◆ setGlobalOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setGlobalOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-option[46]-global-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 1935 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc_throw, makeOptionInfoElement(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setGlobalOption4(), and isc::cb::ConfigCmdsDhcp6Impl::setGlobalOption6().

Here is the call graph for this function:

◆ setGlobalParameter()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setGlobalParameter ( hooks::CalloutHandle & callout_handle,
const data::SimpleKeywords & keywords,
const data::SimpleKeywords & list_keywords,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-global-parameter[46]-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
keywordsKeywords of global parameters.
list_keywordsKeywords of global list parameters.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 502 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, isc::dhcp::CBControlDHCP< ConfigBackendMgrType >::translateName(), and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setGlobalParameter4(), and isc::cb::ConfigCmdsDhcp6Impl::setGlobalParameter6().

Here is the call graph for this function:

◆ setOptionDef()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setOptionDef ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-option-def[46]-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 1680 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::ServerSelector::getTags(), isc_throw, makeOptionInfoElement(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setOptionDef4(), and isc::cb::ConfigCmdsDhcp6Impl::setOptionDef6().

Here is the call graph for this function:

◆ setPoolOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setPoolOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-option[46]-pool-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 2648 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::asiolink::IOAddress::IPV4_ZERO_ADDRESS(), isc::asiolink::IOAddress::IPV6_ZERO_ADDRESS(), makeOptionInfoElement(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setPoolOption4(), and isc::cb::ConfigCmdsDhcp6Impl::setPoolOption6().

Here is the call graph for this function:

◆ setServer()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setServer ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-server[46]-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 2206 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setServer4(), and isc::cb::ConfigCmdsDhcp6Impl::setServer6().

Here is the call graph for this function:

◆ setSharedNetwork()

template<typename SharedNetworkPtrType, typename SharedNetworkParser, typename FunType>
void isc::cb::ConfigCmdsImpl::setSharedNetwork ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-shared-network[46]-set command.

Template Parameters
SharedNetworkPtrTypeType of shared pointers to shared networks (dhcp::SharedNetwork4Ptr or dhcp::SharedNetwork6Ptr).
SharedNetworkParserSubnet configuration parser (CBSharedNetwork4Parser or CBSharedNetwork6Parser).
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 1160 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::ServerSelector::hasNoTags(), isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setSharedNetwork4(), and isc::cb::ConfigCmdsDhcp6Impl::setSharedNetwork6().

Here is the call graph for this function:

◆ setSharedNetworkOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setSharedNetworkOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-option[46]-network-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 2417 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), makeOptionInfoElement(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setSharedNetworkOption4(), and isc::cb::ConfigCmdsDhcp6Impl::setSharedNetworkOption6().

Here is the call graph for this function:

◆ setSubnet()

template<typename SubnetPtrType, typename SubnetConfigParser, typename FunType>
void isc::cb::ConfigCmdsImpl::setSubnet ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-subnet[46]-set command.

Template Parameters
SubnetPtrTypeType of shared pointers to subnets (dhcp::Subnet4Ptr or dhcp::Subnet6Ptr).
SubnetConfigParserSubnet configuration parser (CBSubnet4ConfigParser or CBSubnet6ConfigParser).
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 840 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::data::Element::create(), isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), isc::db::ServerSelector::hasNoTags(), isc_throw, parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_REQUIRED, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setSubnet4(), and isc::cb::ConfigCmdsDhcp6Impl::setSubnet6().

Here is the call graph for this function:

◆ setSubnetOption()

template<typename FunType>
void isc::cb::ConfigCmdsImpl::setSubnetOption ( hooks::CalloutHandle & callout_handle,
const uint16_t address_family,
FunType create_update_fun )
inline

Implements handler for remote-option[46]-subnet-set command.

Template Parameters
FunTypeType of createUpdate method.
Parameters
callout_handleCallout handle provided to the callout.
address_familyAddress family (AF_INET or AF_INET6).
create_update_funcreateUpdate method.

Definition at line 2532 of file cb_cmds_impl.h.

References isc::config::CONTROL_RESULT_ERROR, isc::config::CONTROL_RESULT_SUCCESS, isc::config::createAnswer(), isc::data::Element::createList(), isc::data::Element::createMap(), makeOptionInfoElement(), parser_, isc::hooks::CalloutHandle::setArgument(), isc::cb::ConfigCmdsParser::TAGS_FORBIDDEN, and isc::db::ServerSelector::UNASSIGNED().

Referenced by isc::cb::ConfigCmdsDhcp4Impl::setSubnetOption4(), and isc::cb::ConfigCmdsDhcp6Impl::setSubnetOption6().

Here is the call graph for this function:

Member Data Documentation

◆ parser_


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