52#include <boost/algorithm/string.hpp>
53#include <boost/lexical_cast.hpp>
59#include <netinet/in.h>
107 bool echo_client_id = getBoolean(global,
"echo-client-id");
108 cfg->setEchoClientId(echo_client_id);
111 uint32_t probation_period =
112 getUint32(global,
"decline-probation-period");
113 cfg->setDeclinePeriod(probation_period);
116 uint16_t dhcp4o6_port = getUint16(global,
"dhcp4o6-port");
117 cfg->setDhcp4o6Port(dhcp4o6_port);
122 cfg->setContext(user_context);
126 std::string server_tag = getString(global,
"server-tag");
127 cfg->setServerTag(server_tag);
143 bool ip_reservations_unique = getBoolean(global,
"ip-reservations-unique");
144 cfg->setIPReservationsUnique(ip_reservations_unique);
156 if (!dest || !from) {
157 isc_throw(BadValue,
"Unable to copy subnets: at least one pointer is null");
168 for (
auto const& net : *networks) {
179 for (
auto const& subnet : *subnets) {
197 cfg->sanityChecksLifetime(
"valid-lifetime");
200 cfg->sanityChecksDdnsTtlParameters();
205 sharedNetworksSanityChecks(*networks, global->get(
"shared-networks"));
209 cfg->sanityChecksSflqAllocator();
230 std::set<string> names;
233 for (
auto const& net : networks) {
238 bool authoritative = net->getAuthoritative();
239 string iface = net->getIface();
244 for (
auto const& subnet : *subnets) {
245 if (subnet->getAuthoritative() != authoritative) {
246 isc_throw(DhcpConfigError,
"Subnet " << boolalpha
248 <<
" has different authoritative setting "
249 << subnet->getAuthoritative()
250 <<
" than the shared-network itself: "
255 iface = subnet->getIface();
259 if (subnet->getIface().empty()) {
263 if (subnet->getIface() != iface) {
264 isc_throw(DhcpConfigError,
"Subnet " << subnet->toText()
265 <<
" has specified interface " << subnet->getIface()
266 <<
", but earlier subnet in the same shared-network"
267 <<
" or the shared-network itself used " << iface);
272 txt += subnet->toText() +
" ";
277 if (net->getName().empty()) {
278 isc_throw(DhcpConfigError,
"Shared-network with subnets "
279 << txt <<
" is missing mandatory 'name' parameter");
283 if (names.find(net->getName()) != names.end()) {
284 isc_throw(DhcpConfigError,
"A shared-network with "
285 "name " << net->getName() <<
" defined twice.");
287 names.insert(net->getName());
317 bool sock_changed = (unix_config && current_unix_config &&
318 !unix_config->equals(*current_unix_config));
325 if (!unix_config || !current_unix_config || sock_changed) {
332 }
else if (current_unix_config) {
347 }
else if (current_http_config) {
372 string parameter_name;
382 mutable_cfg = boost::const_pointer_cast<Element>(config_set);
397 Dhcp4ConfigParser global_parser;
400 global_parser.parseEarly(srv_config, mutable_cfg);
405 parameter_name =
"option-def";
408 parser.
parse(cfg_option_def, option_defs);
413 parameter_name =
"option-data";
416 parser.
parse(cfg_option, option_datas);
420 if (control_socket) {
421 mutable_cfg->remove(
"control-socket");
424 mutable_cfg->set(
"control-sockets", l);
428 if (control_sockets) {
429 parameter_name =
"control-sockets";
431 parser.
parse(*srv_config, control_sockets);
435 if (multi_threading) {
436 parameter_name =
"multi-threading";
438 parser.
parse(*srv_config, multi_threading);
441 bool multi_threading_enabled =
true;
442 uint32_t thread_count = 0;
443 uint32_t queue_size = 0;
445 multi_threading_enabled, thread_count, queue_size);
448 ConstElementPtr queue_control = mutable_cfg->get(
"dhcp-queue-control");
450 parameter_name =
"dhcp-queue-control";
452 srv_config->setDHCPQueueControl(parser.
parse(queue_control, multi_threading_enabled));
456 ConstElementPtr reservations_lookup_first = mutable_cfg->get(
"reservations-lookup-first");
457 if (reservations_lookup_first) {
458 parameter_name =
"reservations-lookup-first";
459 if (multi_threading_enabled) {
462 srv_config->setReservationsLookupFirst(reservations_lookup_first->boolValue());
466 mutable_cfg->get(
"host-reservation-identifiers");
467 if (hr_identifiers) {
468 parameter_name =
"host-reservation-identifiers";
470 parser.
parse(hr_identifiers);
475 parameter_name =
"sanity-checks";
477 parser.
parse(*srv_config, sanity_checks);
481 mutable_cfg->get(
"expired-leases-processing");
482 if (expiration_cfg) {
483 parameter_name =
"expired-leases-processing";
492 if (hooks_libraries) {
493 parameter_name =
"hooks-libraries";
495 HooksConfig& libraries = srv_config->getHooksConfig();
496 hooks_parser.
parse(libraries, hooks_libraries);
498 multi_threading_enabled);
507 parameter_name =
"dhcp-ddns";
515 if (client_classes) {
516 parameter_name =
"client-classes";
519 parser.
parse(client_classes, AF_INET);
520 srv_config->setClientClassDictionary(dictionary);
525 if (lease_database) {
526 parameter_name =
"lease-database";
528 std::string access_string;
529 parser.
parse(access_string, lease_database);
531 cfg_db_access->setLeaseDbAccessString(access_string);
535 if (hosts_database) {
536 parameter_name =
"hosts-database";
538 std::string access_string;
539 parser.
parse(access_string, hosts_database);
541 cfg_db_access->setHostDbAccessString(access_string);
545 if (hosts_databases) {
546 parameter_name =
"hosts-databases";
548 for (
auto const& it : hosts_databases->listValue()) {
550 std::string access_string;
551 parser.
parse(access_string, it);
552 cfg_db_access->setHostDbAccessString(access_string);
558 if (shared_networks) {
559 parameter_name =
"shared-networks";
567 parser.
parse(cfg, shared_networks);
571 global_parser.copySubnets4(srv_config->getCfgSubnets4(), cfg);
576 parameter_name =
"subnet4";
579 subnets_parser.
parse(srv_config, subnet4);
584 parameter_name =
"reservations";
587 parser.
parse(SUBNET_ID_GLOBAL, reservations, hosts);
588 for (
auto const& h : hosts) {
589 srv_config->getCfgHosts()->add(h);
594 if (config_control) {
595 parameter_name =
"config-control";
608 const std::map<std::string, ConstElementPtr>& values_map =
609 mutable_cfg->mapValue();
611 for (
auto const& config_pair : values_map) {
612 parameter_name = config_pair.first;
615 if ((config_pair.first ==
"option-def") ||
616 (config_pair.first ==
"option-data") ||
617 (config_pair.first ==
"control-socket") ||
618 (config_pair.first ==
"control-sockets") ||
619 (config_pair.first ==
"multi-threading") ||
620 (config_pair.first ==
"dhcp-queue-control") ||
621 (config_pair.first ==
"host-reservation-identifiers") ||
622 (config_pair.first ==
"interfaces-config") ||
623 (config_pair.first ==
"sanity-checks") ||
624 (config_pair.first ==
"expired-leases-processing") ||
625 (config_pair.first ==
"hooks-libraries") ||
626 (config_pair.first ==
"dhcp-ddns") ||
627 (config_pair.first ==
"client-classes") ||
628 (config_pair.first ==
"lease-database") ||
629 (config_pair.first ==
"hosts-database") ||
630 (config_pair.first ==
"hosts-databases") ||
631 (config_pair.first ==
"subnet4") ||
632 (config_pair.first ==
"shared-networks") ||
633 (config_pair.first ==
"reservations") ||
634 (config_pair.first ==
"config-control") ||
635 (config_pair.first ==
"loggers") ||
636 (config_pair.first ==
"compatibility")) {
650 if ( (config_pair.first ==
"renew-timer") ||
651 (config_pair.first ==
"rebind-timer") ||
652 (config_pair.first ==
"valid-lifetime") ||
653 (config_pair.first ==
"min-valid-lifetime") ||
654 (config_pair.first ==
"max-valid-lifetime") ||
655 (config_pair.first ==
"decline-probation-period") ||
656 (config_pair.first ==
"dhcp4o6-port") ||
657 (config_pair.first ==
"echo-client-id") ||
658 (config_pair.first ==
"match-client-id") ||
659 (config_pair.first ==
"authoritative") ||
660 (config_pair.first ==
"next-server") ||
661 (config_pair.first ==
"server-hostname") ||
662 (config_pair.first ==
"boot-file-name") ||
663 (config_pair.first ==
"server-tag") ||
664 (config_pair.first ==
"reservations-global") ||
665 (config_pair.first ==
"reservations-in-subnet") ||
666 (config_pair.first ==
"reservations-out-of-pool") ||
667 (config_pair.first ==
"calculate-tee-times") ||
668 (config_pair.first ==
"t1-percent") ||
669 (config_pair.first ==
"t2-percent") ||
670 (config_pair.first ==
"cache-threshold") ||
671 (config_pair.first ==
"cache-max-age") ||
672 (config_pair.first ==
"adaptive-lease-time-threshold") ||
673 (config_pair.first ==
"hostname-char-set") ||
674 (config_pair.first ==
"hostname-char-replacement") ||
675 (config_pair.first ==
"ddns-send-updates") ||
676 (config_pair.first ==
"ddns-override-no-update") ||
677 (config_pair.first ==
"ddns-override-client-update") ||
678 (config_pair.first ==
"ddns-replace-client-name") ||
679 (config_pair.first ==
"ddns-generated-prefix") ||
680 (config_pair.first ==
"ddns-qualifying-suffix") ||
681 (config_pair.first ==
"ddns-update-on-renew") ||
682 (config_pair.first ==
"ddns-use-conflict-resolution") ||
683 (config_pair.first ==
"ddns-conflict-resolution-mode") ||
684 (config_pair.first ==
"ddns-ttl-percent") ||
685 (config_pair.first ==
"store-extended-info") ||
686 (config_pair.first ==
"statistic-default-sample-count") ||
687 (config_pair.first ==
"statistic-default-sample-age") ||
688 (config_pair.first ==
"early-global-reservations-lookup") ||
689 (config_pair.first ==
"ip-reservations-unique") ||
690 (config_pair.first ==
"reservations-lookup-first") ||
691 (config_pair.first ==
"parked-packet-limit") ||
692 (config_pair.first ==
"allocator") ||
693 (config_pair.first ==
"offer-lifetime") ||
694 (config_pair.first ==
"ddns-ttl") ||
695 (config_pair.first ==
"ddns-ttl-min") ||
696 (config_pair.first ==
"ddns-ttl-max") ||
697 (config_pair.first ==
"stash-agent-options")) {
704 if (config_pair.first ==
"user-context") {
710 "unsupported global configuration parameter: " << config_pair.first
711 <<
" (" << config_pair.second->getPosition() <<
")");
715 parameter_name =
"<post parsing>";
718 global_parser.parse(srv_config, mutable_cfg);
723 global_parser.sanityChecks(srv_config, mutable_cfg);
726 if (!d2_client_cfg) {
729 d2_client_cfg->validateContents();
730 srv_config->setD2ClientConfig(d2_client_cfg);
733 .arg(parameter_name).arg(ex.
what());
744 "Control-socket, hook-libraries, and D2 configuration "
745 "were sanity checked, but not applied.");
753 bool check_only,
bool extra_checks) {
756 "Can't parse NULL config");
767 std::unique_ptr<MtTestMode> mt_test_mode;
782 std::ostringstream err;
792 }
catch (
const std::exception& ex) {
793 err <<
"Error setting packet queue controls after server reconfiguration: "
833 string parameter_name;
842 mutable_cfg = boost::const_pointer_cast<Element>(config_set);
846 parameter_name =
"interfaces-config";
850 parser.
parse(cfg_iface, ifaces_config);
854 .arg(parameter_name).arg(ex.
what());
855 if (!check_only || extra_checks) {
864 if (!check_only || extra_checks) {
870 " processing error");
928 bool multi_threading_enabled =
true;
929 uint32_t thread_count = 0;
930 uint32_t queue_size = 0;
932 multi_threading_enabled, thread_count, queue_size);
958 string params =
"universe=4";
959 cfg_db->setAppendedParameters(params);
960 cfg_db->createManagers();
961 }
catch (
const std::exception& ex) {
985 CBControlDHCPv4::FetchMode::FETCH_ALL);
987 std::ostringstream err;
988 err <<
"during update from config backend database: " << ex.
what();
994 std::ostringstream err;
995 err <<
"during update from config backend database: "
996 <<
"undefined configuration parsing error";
1011 if (notify_libraries) {
1012 return (notify_libraries);
1019 }
catch (
const std::exception& ex) {
1020 std::ostringstream err;
1021 err <<
"Error initializing hooks: "
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
void clearIOServices()
Clear the list of IOService objects.
static IOServiceMgr & instance()
Access the IOServiceMgr singleton instance.
size_t pollIOServices()
Poll IOService objects.
void logRegistered()
Logs out all registered backends.
static std::string getHash(const isc::data::ConstElementPtr &config)
returns a hash of a given Element structure
void closeCommandSockets()
Close http control sockets.
static HttpCommandMgr & instance()
HttpCommandMgr is a singleton class.
void openCommandSockets(const isc::data::ConstElementPtr config)
Open http control sockets using configuration.
static UnixCommandMgr & instance()
UnixCommandMgr is a singleton class.
void openCommandSockets(const isc::data::ConstElementPtr config)
Opens unix control socket with parameters specified in socket_info (required parameters: socket-type:...
void closeCommandSockets()
Shuts down any open unix control sockets.
static ElementPtr create(const Position &pos=ZERO_POSITION())
Create a NullElement.
static ElementPtr createMap(const Position &pos=ZERO_POSITION())
Creates an empty MapElement type ElementPtr.
static ElementPtr createList(const Position &pos=ZERO_POSITION())
Creates an empty ListElement type ElementPtr.
Parse Database Parameters.
void parse(std::string &access_string, isc::data::ConstElementPtr database_config)
Parse configuration value.
void setD2ClientConfig(D2ClientConfigPtr &new_config)
Updates the DHCP-DDNS client configuration to the given value.
static CfgMgr & instance()
returns a single instance of Configuration Manager
SrvConfigPtr getStagingCfg()
Returns a pointer to the staging configuration.
SrvConfigPtr getCurrentCfg()
Returns a pointer to the current configuration.
static void extract(data::ConstElementPtr value, bool &enabled, uint32_t &thread_count, uint32_t &queue_size)
Extract multi-threading parameters from a given configuration.
Parser for a list of client class definitions.
ClientClassDictionaryPtr parse(isc::data::ConstElementPtr class_def_list, uint16_t family, bool check_dependencies=true)
Parse configuration entries.
void parse(isc::data::ConstElementPtr cfg, isc::dhcp::SrvConfig &srv_cfg)
Parse compatibility flags.
static ConfigBackendDHCPv4Mgr & instance()
Returns a sole instance of the ConfigBackendDHCPv4Mgr.
Parser for the control-sockets structure.
void parse(SrvConfig &srv_cfg, isc::data::ConstElementPtr value)
"Parses" control-sockets structure
static isc::data::ConstElementPtr finishConfigHookLibraries(isc::data::ConstElementPtr config)
Configuration checker for hook libraries.
Parser for D2ClientConfig.
D2ClientConfigPtr parse(isc::data::ConstElementPtr d2_client_cfg)
Parses a given dhcp-ddns element into D2ClientConfig.
static size_t setAllDefaults(isc::data::ConstElementPtr d2_config)
Sets all defaults for D2 client configuration.
Acts as a storage vault for D2 client configuration.
Parser for the configuration of DHCP packet queue controls.
data::ElementPtr parse(const isc::data::ConstElementPtr &control_elem, bool multi_threading_enabled)
Parses content of the "dhcp-queue-control".
To be removed. Please use ConfigError instead.
CBControlDHCPv4Ptr getCBControl() const
Returns an object which controls access to the configuration backends.
void discardPackets()
Discards parked packets Clears the packet parking lots of all packets.
Parser for the configuration parameters pertaining to the processing of expired leases.
void parse(isc::data::ConstElementPtr expiration_config, isc::dhcp::CfgExpirationPtr expiration)
Parses parameters in the JSON map, pertaining to the processing of the expired leases.
static void logRegistered()
Logs out all registered backends.
static void create()
Creates new instance of the HostMgr.
Parser for a list of host identifiers for DHCPv4.
void parse(isc::data::ConstElementPtr ids_list)
Parses a list of host identifiers.
Parser for a list of host reservations for a subnet.
void parse(const SubnetID &subnet_id, isc::data::ConstElementPtr hr_list, HostCollection &hosts_list)
Parses a list of host reservation entries for a subnet.
void detectIfaces(bool update_only=false)
Detects network interfaces.
static IfaceMgr & instance()
IfaceMgr is a singleton class.
void closeSockets()
Closes all open sockets.
Parser for the configuration of interfaces.
void parse(const CfgIfacePtr &config, const isc::data::ConstElementPtr &values)
Parses content of the "interfaces-config".
static void destroy()
Destroy lease manager.
static void logRegistered()
Logs out all registered backends.
static void logRegistered()
Logs out all registered backends.
static void setRuntimeOptionDefs(const OptionDefSpaceContainer &defs)
Copies option definitions created at runtime.
static void revertRuntimeOptionDefs()
Reverts uncommitted changes to runtime option definitions.
Simple parser for multi-threading structure.
void parse(SrvConfig &srv_cfg, const isc::data::ConstElementPtr &value)
parses JSON structure.
Parser for option data values within a subnet.
void parse(const CfgOptionPtr &cfg, isc::data::ConstElementPtr option_data_list, bool encapsulate=true)
Parses a list of options, instantiates them and stores in cfg.
Parser for a list of option definitions.
void parse(CfgOptionDefPtr cfg, isc::data::ConstElementPtr def_list)
Parses a list of option definitions, create them and store in cfg.
Class of option definition space container.
RAII class creating a critical section for the receiver thread.
Simple parser for sanity-checks structure.
void parse(SrvConfig &srv_cfg, const isc::data::ConstElementPtr &value)
parses JSON structure
void parse(CfgSharedNetworksTypePtr &cfg, const data::ConstElementPtr &shared_networks_list_data)
Parses a list of shared networks.
static size_t deriveParameters(isc::data::ElementPtr global)
Derives (inherits) all parameters from global to more specific scopes.
static size_t setAllDefaults(isc::data::ElementPtr global)
Sets all defaults for DHCPv4 configuration.
static const uint32_t CFGSEL_ALL4
IPv4 related config.
this class parses list of DHCP4 subnets
size_t parse(SrvConfigPtr cfg, data::ConstElementPtr subnets_list, bool encapsulate_options=true)
parses contents of the list
static const TimerMgrPtr & instance()
Returns pointer to the sole instance of the TimerMgr.
Wrapper class that holds hooks libraries configuration.
void verifyLibraries(const isc::data::Element::Position &position, bool multi_threading_enabled) const
Verifies that libraries stored in libraries_ are valid.
void loadLibraries(bool multi_threading_enabled) const
Commits hooks libraries configuration.
Parser for hooks library list.
void parse(HooksConfig &libraries, isc::data::ConstElementPtr value)
Parses parameters value.
static bool unloadLibraries()
Unload libraries.
static void prepareUnloadLibraries()
Prepare the unloading of libraries.
Implements parser for config control information, "config-control".
ConfigControlInfoPtr parse(const data::ConstElementPtr &config_control)
Parses a configuration control Element.
isc::data::ConstElementPtr redactConfig(isc::data::ConstElementPtr const &config)
Redact a configuration.
RAII wrapper for MT test mode.
static MultiThreadingMgr & instance()
Returns a single instance of Multi Threading Manager.
void apply(bool enabled, uint32_t thread_count, uint32_t queue_size)
Apply the multi-threading related settings.
Parsers for client class definitions.
This file contains several functions and constants that are used for handling commands and responses ...
Contains declarations for loggers used by the DHCPv4 server component.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
#define LOG_WARN(LOGGER, MESSAGE)
Macro to conveniently test warn output and log it.
#define LOG_DEBUG(LOGGER, LEVEL, MESSAGE)
Macro to conveniently test debug output and log it.
ConstElementPtr parseAnswer(int &rcode, const ConstElementPtr &msg)
Parses a standard config/command level answer and returns arguments or text status code.
const int CONTROL_RESULT_ERROR
Status code indicating a general failure.
ConstElementPtr createAnswer(const int status_code, const std::string &text, const ConstElementPtr &arg)
Creates a standard config/command level answer message.
ConstElementPtr createAnswer()
Creates a standard config/command level success answer message (i.e.
const int CONTROL_RESULT_FATAL_ERROR
Status code indicating that the command was unsuccessful and the configuration could not be reverted ...
const int CONTROL_RESULT_SUCCESS
Status code indicating a successful operation.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
void configureCommandChannel()
Initialize the command channel based on the staging configuration.
const isc::log::MessageID DHCP4_CONFIG_START
boost::shared_ptr< D2ClientConfig > D2ClientConfigPtr
Defines a pointer for D2ClientConfig instances.
const isc::log::MessageID DHCP4_PARSER_EXCEPTION
boost::shared_ptr< CfgOption > CfgOptionPtr
Non-const pointer.
SharedNetworksListParser< SharedNetwork4Parser > SharedNetworks4ListParser
Type of the shared networks list parser for IPv4.
boost::shared_ptr< CfgOptionDef > CfgOptionDefPtr
Non-const pointer.
boost::shared_ptr< CfgDbAccess > CfgDbAccessPtr
A pointer to the CfgDbAccess.
const isc::log::MessageID DHCP4_RESERVATIONS_LOOKUP_FIRST_ENABLED
isc::data::ConstElementPtr processDhcp4Config(isc::data::ConstElementPtr config_set)
Process a DHCPv4 configuration and return an answer stating if the configuration is valid,...
boost::shared_ptr< CfgIface > CfgIfacePtr
A pointer to the CfgIface .
const isc::log::MessageID DHCP4_CONFIG_PACKET_QUEUE
const isc::log::MessageID DHCP4_PARSER_COMMIT_EXCEPTION
boost::shared_ptr< SrvConfig > SrvConfigPtr
Non-const pointer to the SrvConfig.
const isc::log::MessageID DHCP4_PARSER_FAIL
std::vector< HostPtr > HostCollection
Collection of the Host objects.
boost::multi_index_container< Subnet4Ptr, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetSubnetIdIndexTag >, boost::multi_index::const_mem_fun< Subnet, SubnetID, &Subnet::getID > >, boost::multi_index::ordered_unique< boost::multi_index::tag< SubnetPrefixIndexTag >, boost::multi_index::const_mem_fun< Subnet, std::string, &Subnet::toText > > > > Subnet4SimpleCollection
A simple collection of Subnet4 objects.
const int DBG_DHCP4_COMMAND
Debug level used to log receiving commands.
const isc::log::MessageID DHCP4_PARSER_COMMIT_FAIL
boost::shared_ptr< ClientClassDictionary > ClientClassDictionaryPtr
Defines a pointer to a ClientClassDictionary.
isc::data::ConstElementPtr configureDhcp4Server(Dhcpv4Srv &server, isc::data::ConstElementPtr config_set, bool check_only, bool extra_checks)
Configure DHCPv4 server (Dhcpv4Srv) with a set of configuration values.
boost::shared_ptr< CfgSubnets4 > CfgSubnets4Ptr
Non-const pointer.
const isc::log::MessageID DHCP4_CONFIG_COMPLETE
boost::multi_index_container< SharedNetwork4Ptr, boost::multi_index::indexed_by< boost::multi_index::random_access< boost::multi_index::tag< SharedNetworkRandomAccessIndexTag > >, boost::multi_index::hashed_non_unique< boost::multi_index::tag< SharedNetworkIdIndexTag >, boost::multi_index::const_mem_fun< data::BaseStampedElement, uint64_t, &data::BaseStampedElement::getId > >, boost::multi_index::ordered_unique< boost::multi_index::tag< SharedNetworkNameIndexTag >, boost::multi_index::const_mem_fun< SharedNetwork4, std::string, &SharedNetwork4::getName > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< SharedNetworkServerIdIndexTag >, boost::multi_index::const_mem_fun< Network4, asiolink::IOAddress, &Network4::getServerId > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< SharedNetworkModificationTimeIndexTag >, boost::multi_index::const_mem_fun< data::BaseStampedElement, boost::posix_time::ptime, &data::BaseStampedElement::getModificationTime > > > > SharedNetwork4Collection
Multi index container holding shared networks.
boost::shared_ptr< CfgSharedNetworks4 > CfgSharedNetworks4Ptr
Pointer to the configuration of IPv4 shared networks.
isc::log::Logger dhcp4_logger(DHCP4_APP_LOGGER_NAME)
Base logger for DHCPv4 server.
boost::shared_ptr< ConfigControlInfo > ConfigControlInfoPtr
Defines a pointer to a ConfigControlInfo.
Defines the logger used by the top-level component of kea-lfc.
static data::ElementPtr toElement(data::ConstElementPtr map)
Copy an Element map.