38 {
"expired-leases-processing.flush-reclaimed-timer-wait-time",
Element::integer },
88ConfigCmdsDhcp4Impl::initGlobalContainersParameters() {
94 auto globals_copy = globals;
95 for (
auto const& key : globals_copy) {
99 globals.erase(key.first);
107ConfigCmdsDhcp4Impl::getGlobalContainersParameters() {
108 static SimpleKeywords parameters = ConfigCmdsDhcp4Impl::initGlobalContainersParameters();
118 createUpdateGlobalParameter4(backend_selector, server_selector,
121 auto const& globals = ConfigCmdsDhcp4Impl::getGlobalContainersParameters();
129 const std::string& name) {
131 deleteGlobalParameter4(backend_selector, server_selector, name));
133 auto const& globals = ConfigCmdsDhcp4Impl::getGlobalContainersParameters();
141 const std::string& name) {
145 auto const& globals = ConfigCmdsDhcp4Impl::getGlobalContainersParameters();
156 auto const& globals = ConfigCmdsDhcp4Impl::getGlobalContainersParameters();
166 createUpdateSubnet4(backend_selector, server_selector, subnet);
179 deleteSubnet4(backend_selector, server_selector, subnet_id));
188 const std::string& subnet_prefix) {
190 deleteSubnet4(backend_selector, server_selector, subnet_prefix));
201 getSubnet4(backend_selector, server_selector, subnet_id));
210 const std::string& subnet_prefix) {
212 getSubnet4(backend_selector, server_selector, subnet_prefix));
222 getAllSubnets4(backend_selector, server_selector));
233 createUpdateSharedNetwork4(backend_selector, server_selector, shared_network);
236 (callout_handle, AF_INET, create_update_fun);
243 const std::string& name) {
245 deleteSharedNetwork4(backend_selector, server_selector, name));
249 const std::string& name) {
251 deleteSharedNetworkSubnets4(backend_selector, server_selector, name);
260 const std::string& name) {
267 const std::string& name) {
269 getSharedNetworkSubnets4(backend_selector, server_selector, name));
272 (callout_handle, AF_INET, get_fun, get_all_fun);
280 getAllSharedNetworks4(backend_selector, server_selector));
283 (callout_handle, AF_INET, get_all_fun);
291 const std::string& follow_class_name) {
293 createUpdateClientClass4(backend_selector, server_selector, client_class,
303 const std::string& name) {
305 deleteClientClass4(backend_selector, server_selector, name));
314 const std::string& name) {
338 createUpdateOptionDef4(backend_selector, server_selector, option_def);
340 setOptionDef(callout_handle, AF_INET, create_update_fun);
348 const std::string& space,
351 deleteOptionDef4(backend_selector, server_selector,
352 code, space, force));
362 const std::string& space) {
389 createUpdateOption4(backend_selector, server_selector, option);
399 const std::string& space,
402 deleteOption4(backend_selector, server_selector, code, space,
413 const std::string& space,
416 getOption4(backend_selector, server_selector, code, space,
427 getAllOptions4(backend_selector, server_selector));
437 createUpdateServer4(backend_selector, server);
439 setServer(callout_handle, AF_INET, create_update_fun);
447 deleteServer4(backend_selector, server_tag));
449 delServer(callout_handle, AF_INET, delete_fun);
459 getServer(callout_handle, AF_INET, get_fun);
475 const std::string& shared_network_name,
480 createUpdateOption4(backend_selector, server_selector,
481 shared_network_name, option);
490 const std::string& shared_network_name,
492 const std::string& space,
495 deleteOption4(backend_selector, server_selector,
496 shared_network_name, code, space, client_classes));
510 createUpdateOption4(backend_selector, server_selector,
522 const std::string& space,
525 deleteOption4(backend_selector, server_selector,
526 subnet_id, code, space, client_classes));
541 createUpdateOption4(backend_selector, server_selector,
542 pool_start_address, pool_end_address,
555 const std::string& space,
558 deleteOption4(backend_selector, server_selector,
559 pool_start_address, pool_end_address,
560 code, space, client_classes));
Parsers for a subset of an object specification, e.g.
The IOAddress class represents an IP addresses (version agnostic).
ConfigBackendPoolPtr getPool() const
Returns underlying config backend pool.
void delSharedNetworkOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-network-del command.
void getServer4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-get command.
void setGlobalOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-set command.
void getAllOptionDefs4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-get-all command.
void delSharedNetwork4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-del command.
void setSubnet4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-set command.
void getAllGlobalOptions4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-get-all command.
void setPoolOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-pool-set command.
void delSubnetOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-subnet-del command.
void getGlobalParameter4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-get command.
void getGlobalOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-get command.
void delOptionDef4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-del command.
void delPoolOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-pool-del command.
void setClientClass4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-set command.
void delClientClass4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-del command.
void getSubnet4Id(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-get-by-id command.
void setGlobalParameter4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-set command.
void getAllGlobalParameters4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-get-all command.
void getSharedNetwork4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-get command.
void setSharedNetwork4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-set command.
void getSubnet4Prefix(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-get-by-prefix command.
void delSubnet4Id(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-del-by-id command.
void listSharedNetworks4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-shared-network4-list command.
void delGlobalOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-global-del command.
void setSharedNetworkOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-network-set command.
static const data::SimpleKeywords GLOBAL4_MAP_PARAMETERS
Supported global maps parameters (scalars only).
void getAllServers4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-get-all command.
void delServer4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-del command.
void setServer4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-server4-set command.
void getOptionDef4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-get command.
void listSubnets4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-list command.
void getClientClass4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-get command.
void delSubnet4Prefix(hooks::CalloutHandle &callout_handle)
Implements handler for remote-subnet4-del-by-prefix command.
void delGlobalParameter4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-global-parameter4-del command.
void getAllClientClasses4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-class4-get-all command.
void setOptionDef4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option-def4-set command.
void setSubnetOption4(hooks::CalloutHandle &callout_handle)
Implements handler for remote-option4-subnet-set command.
void setClientClass(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-class[46]-set command.
void getSubnetId(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
Implements handler for remote-subnet[46]-get-by-id command.
void getGlobalOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
Implements handler for remote-option[46]-global-get command.
void delPoolOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-option[46]-pool-del command.
void getClientClass(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
Implements handler for remote-class[46]-get command.
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.
void setSharedNetworkOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-option[46]-network-set command.
void setSubnetOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-option[46]-subnet-set command.
void getAllServers(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all_fun)
Implements handler for remote-server[46]-get-all command.
void setServer(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-server[46]-set command.
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.
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.
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.
void getServer(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
Implements handler for remote-server[46]-get command.
void delSubnetOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-option[46]-subnet-del command.
void getOptionDef(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
Implements handler for remote-option-def[46]-get command.
void setGlobalOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-option[46]-global-set command.
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.
void delOptionDef(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-option-def[46]-del command.
void delSubnetPrefix(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-subnet[46]-del-by-prefix command.
void delSharedNetworkOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-option[46]-network-del command.
void delClientClass(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-class[46]-del command.
void getSubnetPrefix(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_fun)
Implements handler for remote-subnet[46]-get-by-prefix command.
void setPoolOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-option[46]-pool-set command.
void listSubnets(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all_fun)
Implements handler for remote-subnet[46]-list command.
void getAllClientClasses(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all)
Implements handler for remote-class[46]-get-all command.
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.
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.
void delGlobalOption(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-option[46]-global-del command.
void delSubnetId(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-subnet[46]-del-by-id command.
void setSharedNetwork(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-shared-network[46]-set command.
void delServer(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType delete_fun)
Implements handler for remote-server[46]-del command.
void listSharedNetworks(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType get_all)
Implements handler for remote-shared-network[46]-list command.
void setSubnet(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-subnet[46]-set command.
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.
void setOptionDef(hooks::CalloutHandle &callout_handle, const uint16_t address_family, FunType create_update_fun)
Implements handler for remote-option-def[46]-set command.
Server selector for associating objects in a database with specific servers.
static ConfigBackendDHCPv4Mgr & instance()
Returns a sole instance of the ConfigBackendDHCPv4Mgr.
static const isc::data::SimpleKeywords GLOBAL4_PARAMETERS
This table defines all global parameters in DHCPv4.
static const isc::data::SimpleKeywords GLOBAL4_LIST_PARAMETERS
static const isc::data::SimpleKeywords GLOBAL4_LIST_PARAMETER_TYPES
Per-packet callout handle.
boost::shared_ptr< StampedValue > StampedValuePtr
Pointer to the stamped value.
std::map< std::string, isc::data::Element::types > SimpleKeywords
This specifies all accepted keywords with their types.
boost::shared_ptr< Server > ServerPtr
Shared pointer to the Server class.
boost::shared_ptr< Subnet4 > Subnet4Ptr
A pointer to a Subnet4 object.
boost::shared_ptr< ClientClasses > ClientClassesPtr
Smart pointer to ClientClasses object.
boost::shared_ptr< ClientClassDef > ClientClassDefPtr
a pointer to an ClientClassDef
boost::shared_ptr< OptionDefinition > OptionDefinitionPtr
Pointer to option definition object.
boost::shared_ptr< OptionDescriptor > OptionDescriptorPtr
A pointer to option descriptor.
uint32_t SubnetID
Defines unique IPv4 or IPv6 subnet identifier.
boost::shared_ptr< SharedNetwork4 > SharedNetwork4Ptr
Pointer to SharedNetwork4 object.
Defines the logger used by the top-level component of kea-lfc.