Kea  1.5.0
dhcp4/json_config_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #include <cc/data.h>
10 
11 #include <stdint.h>
12 #include <string>
13 
14 #ifndef DHCP4_CONFIG_PARSER_H
15 #define DHCP4_CONFIG_PARSER_H
16 
19 
20 namespace isc {
21 namespace dhcp {
22 
23 class Dhcpv4Srv;
24 
58 configureDhcp4Server(Dhcpv4Srv&,
59  isc::data::ConstElementPtr config_set,
60  bool check_only = false);
61 
76 bool
77 databaseConfigConnect(const SrvConfigPtr& srv_cfg);
78 
88 void
89 databaseConfigFetch(const SrvConfigPtr& srv_cfg, isc::data::ElementPtr mutable_cfg);
90 
91 }; // end of isc::dhcp namespace
92 }; // end of isc namespace
93 
94 #endif // DHCP4_CONFIG_PARSER_H
isc::dhcp::configureDhcp4Server
isc::data::ConstElementPtr configureDhcp4Server(Dhcpv4Srv &server, isc::data::ConstElementPtr config_set, bool check_only)
Configure DHCPv4 server (Dhcpv4Srv) with a set of configuration values.
Definition: dhcp4/json_config_parser.cc:295
isc::dhcp::databaseConfigFetch
void databaseConfigFetch(const SrvConfigPtr &srv_cfg, ElementPtr)
Fetch configuration from CB databases and merge it into the given configuration.
Definition: dhcp4/json_config_parser.cc:678
dhcp_parsers.h
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition: agent_parser.cc:144
isc::dhcp::databaseConfigConnect
bool databaseConfigConnect(const SrvConfigPtr &srv_cfg)
Attempts to connect to configured CB databases.
Definition: dhcp4/json_config_parser.cc:654
data.h
exceptions.h
isc::data::ElementPtr
boost::shared_ptr< Element > ElementPtr
Definition: data.h:20
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
isc::dhcp::SrvConfigPtr
boost::shared_ptr< SrvConfig > SrvConfigPtr
Non-const pointer to the SrvConfig.
Definition: srv_config.h:707