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 initSysrepo()
Initialize sysrepo sessions.
void yangConfig(const CfgServersMapPair &service_pair)
Retrieve Kea server configuration from the YANG startup datastore and applies it to servers...
Contains declarations for HTTP control socket communication.
std::map< const std::string, const std::string > modules_
Available modules and revisions in Sysrepo.
std::pair< std::string, CfgServerPtr > CfgServersMapPair
Defines a iterator pairing of name and CfgServer.
std::map< const std::string, sysrepo::S_Subscribe > subscriptions_
Subscription map.
boost::shared_ptr< NetconfAgent > NetconfAgentPtr
Type definition for the pointer to the NetconfAgent.
static int validate(sysrepo::S_Session sess, const CfgServersMapPair &service_pair)
Validate.
Contains declarations for stdout control socket communication.
void checkModules() const
Check module availability.
static void logChanges(sysrepo::S_Session sess, const std::string &model)
Log changes.
NetconfAgent()
Constructor.
sysrepo::S_Session startup_sess_
Sysrepo startup datastore session.
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< NetconfCfgMgr > NetconfCfgMgrPtr
Defines a shared pointer to NetconfCfgMgr.
sysrepo::S_Connection conn_
Sysrepo connection.
Contains declarations for control socket communication.
bool checkModule(const std::string &module_name) const
Check essential module availability.
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.
virtual ~NetconfAgent()
Destructor (call clear).
void init(NetconfCfgMgrPtr cfg_mgr)
Initialization.
void keaConfig(const CfgServersMapPair &service_pair)
Get and display Kea server configuration.
sysrepo::S_Session running_sess_
Sysrepo running datastore session.
Contains declarations for UNIX control socket communication.