![]() |
Kea 3.3.4
|
Base class for the implementations of the callouts for cb_cmds library for DHCPv4 and DHCPv6. More...
#include <cb_cmds_impl.h>
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. | |
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.
| isc::cb::ConfigCmdsImpl::ConfigCmdsImpl | ( | ) |
|
inline |
Implements handler for remote-class[46]-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-option[46]-global-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-global-parameter[46]-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| keywords | Keywords of global parameters. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-option-def[46]-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-option[46]-pool-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-server[46]-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-shared-network[46]-del command.
| FunType | Type of delete method. |
| FunType2 | Type of deleteAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete method. |
| delete_all_fun | deleteAll 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().
|
inline |
Implements handler for remote-option[46]-network-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-subnet[46]-del-by-id command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-option[46]-subnet-del command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-subnet[46]-del-by-prefix command.
| FunType | Type of delete method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| delete_fun | delete 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().
|
inline |
Implements handler for remote-class[46]-get-all command.
| FunType | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_all | getAll 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().
|
inline |
Implements handler for remote-option[46]-global-get-all command.
| FunType | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_all_fun | getAll 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().
|
inline |
Implements handler for remote-global-parameter[46]-get-all command.
| FunType | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| keywords | List of keywords to accept. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_all_fun | getAll 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().
|
inline |
Implements handler for remote-option-def[46]-get-all command.
| FunType | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_all_fun | getAll 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().
|
inline |
Implements handler for remote-server[46]-get-all command.
| FunType | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_all_fun | getAll 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().
|
inline |
Implements handler for remote-class[46]-get command.
| FunType | Type of get method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get 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().
|
inline |
Implements handler for remote-option[46]-global-get command.
| FunType | Type of get method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get 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().
|
inline |
Implements handler for remote-global-parameter[46]-get command.
| FunType | Type of get method. |
| callout_handle | Callout handle provided to the callout. |
| keywords | Keywords of global parameters. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get 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().
|
inline |
Implements handler for remote-option-def[46]-get command.
| FunType | Type of get method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get 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().
|
inline |
Implements handler for remote-server[46]-get command.
| FunType | Type of get method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get 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().
|
inline |
Implements handler for remote-shared-network[46]-get command.
| SharedNetworkPtrType | Type of shared pointers to shared networks (dhcp::SharedNetwork4Ptr or dhcp::SharedNetwork6Ptr). |
| SubnetCollection | Type of collection of subnet pointers (dhcp::Subnet4Collection or dhcp::Subnet6Collection). |
| FunType | Type of get method. |
| FunType2 | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get method. |
| get_all | getAll 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().
|
inline |
Implements handler for remote-subnet[46]-get-by-id command.
| SubnetPtrType | Type of shared pointers to subnets (dhcp::Subnet4Ptr or dhcp::Subnet6Ptr). |
| FunType | Type of get method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get 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().
|
inline |
Implements handler for remote-subnet[46]-get-by-prefix command.
| SubnetPtrType | Type of shared pointers to subnets (dhcp::Subnet4Ptr or dhcp::Subnet6Ptr). |
| FunType | Type of get method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_fun | get 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().
|
inline |
Implements handler for remote-shared-network[46]-list command.
| SharedNetworkCollection | Type of collection of shared network pointers (dhcp::SharedNetwork4Collection or dhcp::SharedNetwork6Collection). |
| FunType | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_all | getAll 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().
|
inline |
Implements handler for remote-subnet[46]-list command.
| SubnetCollection | Type of collection of subnet pointers (dhcp::Subnet4Collection or dhcp::Subnet6Collection). |
| FunType | Type of getAll method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| get_all_fun | getAll 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().
|
inline |
Create an element map containing an OptionDef's code and space.
| def | option definition who's information is desired. |
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().
|
inline |
Create an element map containing an OptionDescriptor's code, space, and client classes.
| desc | option descriptor who's information is desired. |
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().
|
inline |
Implements handler for remote-class[46]-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-option[46]-global-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-global-parameter[46]-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| keywords | Keywords of global parameters. |
| list_keywords | Keywords of global list parameters. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-option-def[46]-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-option[46]-pool-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-server[46]-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-shared-network[46]-set command.
| SharedNetworkPtrType | Type of shared pointers to shared networks (dhcp::SharedNetwork4Ptr or dhcp::SharedNetwork6Ptr). |
| SharedNetworkParser | Subnet configuration parser (CBSharedNetwork4Parser or CBSharedNetwork6Parser). |
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-option[46]-network-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-subnet[46]-set command.
| SubnetPtrType | Type of shared pointers to subnets (dhcp::Subnet4Ptr or dhcp::Subnet6Ptr). |
| SubnetConfigParser | Subnet configuration parser (CBSubnet4ConfigParser or CBSubnet6ConfigParser). |
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
inline |
Implements handler for remote-option[46]-subnet-set command.
| FunType | Type of createUpdate method. |
| callout_handle | Callout handle provided to the callout. |
| address_family | Address family (AF_INET or AF_INET6). |
| create_update_fun | createUpdate 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().
|
protected |
Shared pointer to the commands parser.
Definition at line 2807 of file cb_cmds_impl.h.
Referenced by ConfigCmdsImpl(), delClientClass(), delGlobalOption(), delGlobalParameter(), delOptionDef(), isc::cb::ConfigCmdsDhcp6Impl::delPdPoolOption6(), delPoolOption(), delServer(), delSharedNetwork(), delSharedNetworkOption(), delSubnetId(), delSubnetOption(), delSubnetPrefix(), getAllClientClasses(), getAllGlobalOptions(), getAllGlobalParameters(), getAllOptionDefs(), getAllServers(), getClientClass(), getGlobalOption(), getGlobalParameter(), getOptionDef(), getServer(), getSharedNetwork(), getSubnetId(), getSubnetPrefix(), listSharedNetworks(), listSubnets(), setClientClass(), setGlobalOption(), setGlobalParameter(), setOptionDef(), isc::cb::ConfigCmdsDhcp6Impl::setPdPoolOption6(), setPoolOption(), setServer(), setSharedNetwork(), setSharedNetworkOption(), setSubnet(), and setSubnetOption().