7 #ifndef NETCONF_CFG_MGR_H
8 #define NETCONF_CFG_MGR_H
53 configured_globals_->set(name, value);
60 return (servers_map_);
67 return (servers_map_);
74 return (hooks_config_);
81 return (hooks_config_);
116 isc::hooks::HooksConfig hooks_config_;
136 return (boost::dynamic_pointer_cast<NetconfConfig>(
getContext()));
145 std::string getConfigSummary(
const uint32_t selection)
override final;
152 std::list<std::list<std::string>> jsonPathsToRedact() const override final;
174 process::
ConfigPtr createNewContext() override final;
Wrapper class that holds hooks libraries configuration.
Ctrl Netconf Configuration Manager.
NetconfConfigPtr getNetconfConfig()
Convenience method that returns the Netconf configuration context.
virtual ~NetconfCfgMgr()=default
Destructor.
Netconf Configuration Context.
NetconfConfig()
Default constructor.
isc::data::ElementPtr getConfiguredGlobals() const
Returns pointer to configured global parameters.
CfgServersMapPtr & getCfgServersMap()
Returns non-const reference to the managed servers map.
isc::hooks::HooksConfig & getHooksConfig()
Returns non-const reference to configured hooks libraries.
const isc::hooks::HooksConfig & getHooksConfig() const
Returns const reference to configured hooks libraries.
const CfgServersMapPtr & getCfgServersMap() const
Returns const reference to the managed servers map.
void extractConfiguredGlobals(isc::data::ConstElementPtr config)
Saves scalar elements from the global scope of a configuration.
isc::data::ElementPtr toElement() const override final
Unparse a configuration object.
void addConfiguredGlobal(const std::string &name, isc::data::ConstElementPtr value)
Adds a parameter to the collection configured globals.
Base class for all configurations.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< NetconfConfig > NetconfConfigPtr
Pointer to a configuration context.
std::shared_ptr< CfgServersMap > CfgServersMapPtr
Defines a pointer to map of CfgServers.
boost::shared_ptr< NetconfCfgMgr > NetconfCfgMgrPtr
Defines a shared pointer to NetconfCfgMgr.
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.
Defines the logger used by the top-level component of kea-lfc.
A collection of classes for housing and parsing the application configuration necessary for the Netco...
data::ConstElementPtr getContext() const
Returns const pointer to the user context.