Kea  2.3.7
Go to the documentation of this file.
1 // Copyright (C) 2018-2022 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
10 #include <cc/simple_parser.h>
13 namespace isc {
14 namespace netconf {
24 public:
31  static size_t setAllDefaults(const isc::data::ElementPtr& global);
39  static size_t deriveParameters(isc::data::ElementPtr global);
48  static size_t setServerDefaults(const std::string name,
49  isc::data::ElementPtr server);
58  void parse(const NetconfConfigPtr& ctx,
59  const isc::data::ElementPtr& config,
60  bool check_only);
62  // see for comments for those parameters
70 }; // NetconfSimpleParser
72 } // namespace netconf
73 } // namespace isc
74 #endif
static const isc::data::SimpleDefaults NETCONF_DEFAULTS
This table defines default values for global options.
static const isc::data::SimpleDefaults DHCP6_DEFAULTS
Supplies defaults for dhcp6 managed server.
static const isc::data::SimpleDefaults DHCP4_DEFAULTS
Supplies defaults for dhcp4 managed server.
static size_t setAllDefaults(const isc::data::ElementPtr &global)
Sets all defaults for Netconf configuration.
static size_t deriveParameters(isc::data::ElementPtr global)
Derives (inherits) all parameters from global to more specific scopes.
static const isc::data::SimpleDefaults CA_DEFAULTS
Supplies defaults for ca managed server.
static const isc::data::ParamsList INHERIT_TO_SERVERS
List of parameters that can be inherited to managed-servers scope.
void parse(const NetconfConfigPtr &ctx, const isc::data::ElementPtr &config, bool check_only)
Parses the netconf configuration.
static const isc::data::SimpleDefaults CTRL_SOCK_DEFAULTS
Supplies defaults for control-socket elements.
static const isc::data::SimpleDefaults D2_DEFAULTS
Supplies defaults for d2 managed server.
static size_t setServerDefaults(const std::string name, isc::data::ElementPtr server)
Adds default values to a Managed server entry.
std::vector< std::string > ParamsList
This defines a list of all parameters that are derived (or inherited) between contexts.
std::vector< SimpleDefault > SimpleDefaults
This specifies all default values in a given scope (e.g. a subnet).
boost::shared_ptr< Element > ElementPtr
Definition: data.h:24
boost::shared_ptr< NetconfConfig > NetconfConfigPtr
Pointer to a configuration context.
Defines the logger used by the top-level component of kea-lfc.