 |
Kea
1.5.0
|
Go to the documentation of this file.
13 #error "config.h must be included before netconf.h"
21 #ifndef HAVE_PRE_0_7_6_SYSREPO
22 #include <sysrepo-cpp/Session.hpp>
24 #include <sysrepo-cpp/Session.h>
84 #ifndef HAVE_PRE_0_7_6_SYSREPO
85 static int validate(sysrepo::S_Session sess,
98 #ifndef HAVE_PRE_0_7_6_SYSREPO
99 static int update(sysrepo::S_Session sess,
113 #ifndef HAVE_PRE_0_7_6_SYSREPO
114 static void logChanges(sysrepo::S_Session sess,
const std::string& model);
116 static void logChanges(S_Session sess,
const std::string& model);
140 bool checkModule(
const std::string& module_name)
const;
167 #ifndef HAVE_PRE_0_7_6_SYSREPO
174 #ifndef HAVE_PRE_0_7_6_SYSREPO
181 #ifndef HAVE_PRE_0_7_6_SYSREPO
188 std::map<const std::string, const std::string>
modules_;
191 #ifndef HAVE_PRE_0_7_6_SYSREPO
void checkModules() const
Check module availability.
boost::shared_ptr< NetconfAgent > NetconfAgentPtr
Type definition for the pointer to the NetconfAgent.
void init(NetconfCfgMgrPtr cfg_mgr)
Initialization.
std::map< const std::string, sysrepo::S_Subscribe > subscriptions_
Subscription map.
sysrepo::S_Session running_sess_
Sysrepo running datastore session.
void keaConfig(const CfgServersMapPair &service_pair)
Get and display Kea server configuration.
std::map< const std::string, const std::string > modules_
Available modules and revisions in Sysrepo.
sysrepo::S_Session startup_sess_
Sysrepo startup datastore session.
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::pair< std::string, CfgServerPtr > CfgServersMapPair
Defines a iterator pairing of name and CfgServer.
void subscribeConfig(const CfgServersMapPair &service_pair)
Subscribe changes for a module in YANG datastore.
static int update(sysrepo::S_Session sess, const CfgServersMapPair &service_pair)
Update.
bool checkModule(const std::string &module_name) const
Check essential module availability.
virtual ~NetconfAgent()
Destructor (call clear).
NetconfAgent()
Constructor.
void yangConfig(const CfgServersMapPair &service_pair)
Retrieve Kea server configuration from the YANG startup datastore and applies it to servers.
sysrepo::S_Connection conn_
Sysrepo connection.
void initSysrepo()
Initialize sysrepo sessions.
static void logChanges(sysrepo::S_Session sess, const std::string &model)
Log changes.
boost::shared_ptr< NetconfCfgMgr > NetconfCfgMgrPtr
Defines a shared pointer to NetconfCfgMgr.
static int validate(sysrepo::S_Session sess, const CfgServersMapPair &service_pair)
Validate.