Kea  1.5.0
bin/netconf/simple_parser.h
Go to the documentation of this file.
1 // Copyright (C) 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 #ifndef NETCONF_SIMPLE_PARSER_H
8 #define NETCONF_SIMPLE_PARSER_H
9 
10 #include <cc/simple_parser.h>
12 
13 namespace isc {
14 namespace netconf {
15 
24 public:
31  static size_t setAllDefaults(const isc::data::ElementPtr& global);
32 
39  static size_t deriveParameters(isc::data::ConstElementPtr global);
40 
48  static size_t setServerDefaults(const std::string name,
50 
58  void parse(const NetconfConfigPtr& ctx,
59  const isc::data::ConstElementPtr& config,
60  bool check_only);
61 
62  // see simple_parser.cc for comments for those parameters
70 };
71 
72 };
73 };
74 #endif
isc::netconf::NetconfSimpleParser::setServerDefaults
static size_t setServerDefaults(const std::string name, isc::data::ConstElementPtr server)
Adds default values to a Managed server entry.
Definition: bin/netconf/simple_parser.cc:124
isc::data::SimpleDefaults
std::vector< SimpleDefault > SimpleDefaults
This specifies all default values in a given scope (e.g. a subnet)
Definition: lib/cc/simple_parser.h:31
isc::netconf::NetconfSimpleParser::CTRL_SOCK_DEFAULTS
static const isc::data::SimpleDefaults CTRL_SOCK_DEFAULTS
Supplies defaults for control-socket elements.
Definition: bin/netconf/simple_parser.h:64
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition: agent_parser.cc:144
isc::data::ParamsList
std::vector< std::string > ParamsList
This defines a list of all parameters that are derived (or inherited) between contexts.
Definition: lib/cc/simple_parser.h:35
isc::netconf::NetconfSimpleParser::D2_DEFAULTS
static const isc::data::SimpleDefaults D2_DEFAULTS
Supplies defaults for d2 managed server.
Definition: bin/netconf/simple_parser.h:67
isc::netconf::NetconfSimpleParser::NETCONF_DEFAULTS
static const isc::data::SimpleDefaults NETCONF_DEFAULTS
This table defines default values for global options.
Definition: bin/netconf/simple_parser.h:63
netconf_cfg_mgr.h
isc::netconf::NetconfConfigPtr
boost::shared_ptr< NetconfConfig > NetconfConfigPtr
Pointer to a configuration context.
Definition: netconf_cfg_mgr.h:21
isc::netconf::NetconfSimpleParser::deriveParameters
static size_t deriveParameters(isc::data::ConstElementPtr global)
Derives (inherits) all parameters from global to more specific scopes.
Definition: bin/netconf/simple_parser.cc:105
isc::netconf::NetconfSimpleParser::DHCP4_DEFAULTS
static const isc::data::SimpleDefaults DHCP4_DEFAULTS
Supplies defaults for dhcp4 managed server.
Definition: bin/netconf/simple_parser.h:65
isc::data::SimpleParser
A simple parser.
Definition: lib/cc/simple_parser.h:60
isc::netconf::NetconfSimpleParser::INHERIT_TO_SERVERS
static const isc::data::ParamsList INHERIT_TO_SERVERS
List of parameters that can be inherited to managed-servers scope.
Definition: bin/netconf/simple_parser.h:69
isc::netconf::NetconfSimpleParser::CA_DEFAULTS
static const isc::data::SimpleDefaults CA_DEFAULTS
Supplies defaults for ca managed server.
Definition: bin/netconf/simple_parser.h:68
isc::netconf::NetconfSimpleParser::parse
void parse(const NetconfConfigPtr &ctx, const isc::data::ConstElementPtr &config, bool check_only)
Parses the netconf configuration.
Definition: bin/netconf/simple_parser.cc:152
isc::netconf::NetconfSimpleParser::setAllDefaults
static size_t setAllDefaults(const isc::data::ElementPtr &global)
Sets all defaults for Netconf configuration.
Definition: bin/netconf/simple_parser.cc:89
isc::netconf::NetconfSimpleParser::DHCP6_DEFAULTS
static const isc::data::SimpleDefaults DHCP6_DEFAULTS
Supplies defaults for dhcp6 managed server.
Definition: bin/netconf/simple_parser.h:66
isc::netconf::NetconfSimpleParser
Definition: bin/netconf/simple_parser.h:23
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
simple_parser.h