Kea  1.9.9-git
isc::netconf Namespace Reference

Classes

class  CfgControlSocket
 Represents a Control Socket. More...
 
class  CfgServer
 Represents a Managed CfgServer. More...
 
class  ControlSocketBase
 Base class for control socket communication. More...
 
class  ControlSocketConfigParser
 Parser for CfgControlSocket. More...
 
class  ControlSocketError
 Exception thrown when the error during communication. More...
 
class  HttpControlSocket
 Class for control socket communication over HTTP socket. More...
 
class  NetconfAgent
 Netconf agent. More...
 
class  NetconfCfgMgr
 Ctrl Netconf Configuration Manager. More...
 
class  NetconfConfig
 Netconf Configuration Context. More...
 
class  NetconfController
 Process Controller for Netconf Process. More...
 
class  NetconfParser
 A Bison parser. More...
 
class  NetconfProcess
 Kea Netconf Application Process. More...
 
class  NetconfSimpleParser
 
class  ParserContext
 Parser context is a wrapper around flex/bison instances dedicated to Netconf-agent config file parser. More...
 
class  ServerConfigParser
 Parser for CfgServer. More...
 
class  StdoutControlSocket
 Class for control socket communication over stdout. More...
 
class  UnixControlSocket
 Class for control socket communication over UNIX socket. More...
 

Typedefs

typedef boost::shared_ptr< CfgControlSocketCfgControlSocketPtr
 Defines a pointer for CfgControlSocket instances. More...
 
typedef boost::shared_ptr< CfgServerCfgServerPtr
 Defines a pointer for CfgServer instances. More...
 
typedef std::map< std::string, CfgServerPtrCfgServersMap
 Defines a map of CfgServers, keyed by the name. More...
 
typedef std::pair< std::string, CfgServerPtrCfgServersMapPair
 Defines a iterator pairing of name and CfgServer. More...
 
typedef boost::shared_ptr< CfgServersMapCfgServersMapPtr
 Defines a pointer to map of CfgServers. More...
 
typedef boost::shared_ptr< ControlSocketBaseControlSocketBasePtr
 Type definition for the pointer to the ControlSocketBase. More...
 
typedef boost::shared_ptr< HttpControlSocketHttpControlSocketPtr
 Type definition for the pointer to the HttpControlSocket. More...
 
typedef boost::shared_ptr< NetconfAgentNetconfAgentPtr
 Type definition for the pointer to the NetconfAgent. More...
 
typedef boost::shared_ptr< NetconfCfgMgrNetconfCfgMgrPtr
 Defines a shared pointer to NetconfCfgMgr. More...
 
typedef boost::shared_ptr< NetconfConfigNetconfConfigPtr
 Pointer to a configuration context. More...
 
typedef boost::shared_ptr< NetconfControllerNetconfControllerPtr
 
typedef boost::shared_ptr< NetconfProcessNetconfProcessPtr
 Defines a shared pointer to NetconfProcess. More...
 
typedef boost::shared_ptr< StdoutControlSocketStdoutControlSocketPtr
 Type definition for the pointer to the StdoutControlSocket. More...
 
typedef boost::shared_ptr< UnixControlSocketUnixControlSocketPtr
 Type definition for the pointer to the UnixControlSocket. More...
 

Functions

ControlSocketBasePtr createControlSocket (CfgControlSocketPtr ctrl_sock)
 Factory template for control sockets. More...
 
template<>
ControlSocketBasePtr createControlSocket< CfgControlSocket::Type::HTTP > (CfgControlSocketPtr ctrl_sock)
 Factory template specialization for http control sockets. More...
 
template<>
ControlSocketBasePtr createControlSocket< CfgControlSocket::Type::STDOUT > (CfgControlSocketPtr ctrl_sock)
 Factory template specialization for stdout control sockets. More...
 
template<>
ControlSocketBasePtr createControlSocket< CfgControlSocket::Type::UNIX > (CfgControlSocketPtr ctrl_sock)
 Factory template specialization for unix control sockets. More...
 
ostream & operator<< (std::ostream &os, const CfgServer &server)
 Dumps the contents of a CfgServer as text to a output stream. More...
 

Variables

const isc::log::MessageID NETCONF_BOOT_UPDATE_COMPLETED = "NETCONF_BOOT_UPDATE_COMPLETED"
 
const isc::log::MessageID NETCONF_CONFIG_CHANGE_EVENT = "NETCONF_CONFIG_CHANGE_EVENT"
 
const isc::log::MessageID NETCONF_CONFIG_CHANGED_DETAIL = "NETCONF_CONFIG_CHANGED_DETAIL"
 
const isc::log::MessageID NETCONF_CONFIG_CHECK_FAIL = "NETCONF_CONFIG_CHECK_FAIL"
 
const isc::log::MessageID NETCONF_CONFIG_FAIL = "NETCONF_CONFIG_FAIL"
 
const char *const * netconf_config_report = isc::detail::config_report
 
const isc::log::MessageID NETCONF_FAILED = "NETCONF_FAILED"
 
const isc::log::MessageID NETCONF_GET_CONFIG = "NETCONF_GET_CONFIG"
 
const isc::log::MessageID NETCONF_GET_CONFIG_FAILED = "NETCONF_GET_CONFIG_FAILED"
 
const isc::log::MessageID NETCONF_GET_CONFIG_STARTED = "NETCONF_GET_CONFIG_STARTED"
 
const isc::log::MessageID NETCONF_LOG_CHANGE_FAIL = "NETCONF_LOG_CHANGE_FAIL"
 
isc::log::Logger netconf_logger (NETCONF_LOGGER_NAME)
 Base logger for the netconf agent. More...
 
const char * NETCONF_LOGGER_NAME = "netconf"
 Defines the name of the root level (default) logger. More...
 
const isc::log::MessageID NETCONF_MODULE_INSTALL = "NETCONF_MODULE_INSTALL"
 
const isc::log::MessageID NETCONF_MODULE_MISSING_ERR = "NETCONF_MODULE_MISSING_ERR"
 
const isc::log::MessageID NETCONF_MODULE_MISSING_WARN = "NETCONF_MODULE_MISSING_WARN"
 
const isc::log::MessageID NETCONF_MODULE_REVISION_ERR = "NETCONF_MODULE_REVISION_ERR"
 
const isc::log::MessageID NETCONF_MODULE_REVISION_WARN = "NETCONF_MODULE_REVISION_WARN"
 
const isc::log::MessageID NETCONF_RUN_EXIT = "NETCONF_RUN_EXIT"
 
const isc::log::MessageID NETCONF_SET_CONFIG = "NETCONF_SET_CONFIG"
 
const isc::log::MessageID NETCONF_SET_CONFIG_FAILED = "NETCONF_SET_CONFIG_FAILED"
 
const isc::log::MessageID NETCONF_SET_CONFIG_STARTED = "NETCONF_SET_CONFIG_STARTED"
 
const isc::log::MessageID NETCONF_STARTED = "NETCONF_STARTED"
 
const isc::log::MessageID NETCONF_SUBSCRIBE_CONFIG = "NETCONF_SUBSCRIBE_CONFIG"
 
const isc::log::MessageID NETCONF_SUBSCRIBE_CONFIG_FAILED = "NETCONF_SUBSCRIBE_CONFIG_FAILED"
 
const isc::log::MessageID NETCONF_UPDATE_CONFIG = "NETCONF_UPDATE_CONFIG"
 
const isc::log::MessageID NETCONF_UPDATE_CONFIG_COMPLETED = "NETCONF_UPDATE_CONFIG_COMPLETED"
 
const isc::log::MessageID NETCONF_UPDATE_CONFIG_FAILED = "NETCONF_UPDATE_CONFIG_FAILED"
 
const isc::log::MessageID NETCONF_UPDATE_CONFIG_STARTED = "NETCONF_UPDATE_CONFIG_STARTED"
 
const isc::log::MessageID NETCONF_VALIDATE_CONFIG = "NETCONF_VALIDATE_CONFIG"
 
const isc::log::MessageID NETCONF_VALIDATE_CONFIG_COMPLETED = "NETCONF_VALIDATE_CONFIG_COMPLETED"
 
const isc::log::MessageID NETCONF_VALIDATE_CONFIG_FAILED = "NETCONF_VALIDATE_CONFIG_FAILED"
 
const isc::log::MessageID NETCONF_VALIDATE_CONFIG_REJECTED = "NETCONF_VALIDATE_CONFIG_REJECTED"
 
const isc::log::MessageID NETCONF_VALIDATE_CONFIG_STARTED = "NETCONF_VALIDATE_CONFIG_STARTED"
 
const int NETCONF_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC
 Netconf agent logging levels. More...
 
const int NETCONF_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA
 Records the results of the commands. More...
 
const int NETCONF_DBG_TRACE_DETAIL_DATA
 Additional information. More...
 

Typedef Documentation

Defines a pointer for CfgControlSocket instances.

Definition at line 144 of file netconf_config.h.

typedef boost::shared_ptr<CfgServer> isc::netconf::CfgServerPtr

Defines a pointer for CfgServer instances.

Definition at line 252 of file netconf_config.h.

typedef std::map<std::string, CfgServerPtr> isc::netconf::CfgServersMap

Defines a map of CfgServers, keyed by the name.

Definition at line 255 of file netconf_config.h.

typedef std::pair<std::string, CfgServerPtr> isc::netconf::CfgServersMapPair

Defines a iterator pairing of name and CfgServer.

Definition at line 258 of file netconf_config.h.

typedef boost::shared_ptr<CfgServersMap> isc::netconf::CfgServersMapPtr

Defines a pointer to map of CfgServers.

Definition at line 261 of file netconf_config.h.

Type definition for the pointer to the ControlSocketBase.

Definition at line 107 of file control_socket.h.

Type definition for the pointer to the HttpControlSocket.

Definition at line 77 of file http_control_socket.h.

typedef boost::shared_ptr<NetconfAgent> isc::netconf::NetconfAgentPtr

Type definition for the pointer to the NetconfAgent.

Definition at line 32 of file netconf.h.

typedef boost::shared_ptr<NetconfCfgMgr> isc::netconf::NetconfCfgMgrPtr

Defines a shared pointer to NetconfCfgMgr.

Definition at line 181 of file netconf_cfg_mgr.h.

typedef boost::shared_ptr<NetconfConfig> isc::netconf::NetconfConfigPtr

Pointer to a configuration context.

Definition at line 21 of file netconf_cfg_mgr.h.

Definition at line 80 of file netconf_controller.h.

typedef boost::shared_ptr<NetconfProcess> isc::netconf::NetconfProcessPtr

Defines a shared pointer to NetconfProcess.

Definition at line 104 of file netconf_process.h.

Type definition for the pointer to the StdoutControlSocket.

Definition at line 78 of file stdout_control_socket.h.

Type definition for the pointer to the UnixControlSocket.

Definition at line 77 of file unix_control_socket.h.

Function Documentation

ControlSocketBasePtr isc::netconf::createControlSocket ( CfgControlSocketPtr  ctrl_sock)

Factory template for control sockets.

Factory function for control sockets.

Template Parameters
TYPEThe control socket type.
Parameters
ctrl_sockThe control socket configuration.
Returns
A pointer to a control socket communication object.
Exceptions
NotImplementedif no specialization was called.
Parameters
ctrl_sockThe control socket configuration.
Returns
A pointer to a control socket communication object.
Exceptions
BadValueif called with null or an unknown type.

Definition at line 23 of file control_socket.cc.

References isc_throw.

Referenced by isc::netconf::NetconfAgent::keaConfig(), isc::netconf::NetconfAgent::update(), isc::netconf::NetconfAgent::validate(), and isc::netconf::NetconfAgent::yangConfig().

template<>
ControlSocketBasePtr isc::netconf::createControlSocket< CfgControlSocket::Type::HTTP > ( CfgControlSocketPtr  ctrl_sock)

Factory template specialization for http control sockets.

Parameters
ctrl_sockThe control socket configuration.
Returns
A pointer to a http control socket communication object.

Definition at line 32 of file http_control_socket.cc.

template<>
ControlSocketBasePtr isc::netconf::createControlSocket< CfgControlSocket::Type::STDOUT > ( CfgControlSocketPtr  ctrl_sock)

Factory template specialization for stdout control sockets.

Parameters
ctrl_sockThe control socket configuration.
Returns
A pointer to a stdout control socket communication object.

Definition at line 23 of file stdout_control_socket.cc.

template<>
ControlSocketBasePtr isc::netconf::createControlSocket< CfgControlSocket::Type::UNIX > ( CfgControlSocketPtr  ctrl_sock)

Factory template specialization for unix control sockets.

Parameters
ctrl_sockThe control socket configuration.
Returns
A pointer to a unix control socket communication object.

Definition at line 29 of file unix_control_socket.cc.

std::ostream & isc::netconf::operator<< ( std::ostream &  os,
const CfgServer server 
)

Dumps the contents of a CfgServer as text to a output stream.

Parameters
osThe output stream to which text should be sent.
serverThe CfgServer instance to dump.

Definition at line 132 of file netconf_config.cc.

References isc::netconf::CfgServer::toText().

+ Here is the call graph for this function:

Variable Documentation

const isc::log::MessageID isc::netconf::NETCONF_BOOT_UPDATE_COMPLETED = "NETCONF_BOOT_UPDATE_COMPLETED"

Definition at line 11 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::yangConfig().

const isc::log::MessageID isc::netconf::NETCONF_CONFIG_CHANGE_EVENT = "NETCONF_CONFIG_CHANGE_EVENT"

Definition at line 13 of file netconf_messages.h.

const isc::log::MessageID isc::netconf::NETCONF_CONFIG_CHANGED_DETAIL = "NETCONF_CONFIG_CHANGED_DETAIL"

Definition at line 12 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::logChanges().

const isc::log::MessageID isc::netconf::NETCONF_CONFIG_CHECK_FAIL = "NETCONF_CONFIG_CHECK_FAIL"

Definition at line 14 of file netconf_messages.h.

Referenced by isc::netconf::NetconfCfgMgr::parse().

const isc::log::MessageID isc::netconf::NETCONF_CONFIG_FAIL = "NETCONF_CONFIG_FAIL"

Definition at line 15 of file netconf_messages.h.

Referenced by isc::netconf::NetconfCfgMgr::parse().

const char* const* isc::netconf::netconf_config_report = isc::detail::config_report

Definition at line 74 of file netconf_controller.cc.

const int isc::netconf::NETCONF_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA

Records the results of the commands.

Using the example of tracing commands to a server, this will just record the summary results.

Definition at line 35 of file netconf_log.h.

const int isc::netconf::NETCONF_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC

Netconf agent logging levels.

Defines the levels used to output debug messages in the Netconf agent. Note that higher numbers equate to more verbose (and detailed) output. Traces normal operations.

E.g. sending a command to a server etc.

Definition at line 29 of file netconf_log.h.

const int isc::netconf::NETCONF_DBG_TRACE_DETAIL_DATA
Initial value:
=
const int DBGLVL_TRACE_DETAIL_DATA
Trace data associated with detailed operations.
Definition: log_dbglevels.h:74

Additional information.

Record detailed tracing. This is generally reserved for tracing configurations from or to a server.

Definition at line 41 of file netconf_log.h.

Referenced by isc::netconf::NetconfAgent::keaConfig(), isc::netconf::NetconfAgent::logChanges(), isc::netconf::NetconfAgent::update(), isc::netconf::NetconfAgent::validate(), and isc::netconf::NetconfAgent::yangConfig().

const isc::log::MessageID isc::netconf::NETCONF_FAILED = "NETCONF_FAILED"

Definition at line 16 of file netconf_messages.h.

Referenced by isc::netconf::NetconfProcess::run().

const isc::log::MessageID isc::netconf::NETCONF_GET_CONFIG = "NETCONF_GET_CONFIG"

Definition at line 17 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::keaConfig().

const isc::log::MessageID isc::netconf::NETCONF_GET_CONFIG_FAILED = "NETCONF_GET_CONFIG_FAILED"

Definition at line 18 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::keaConfig().

const isc::log::MessageID isc::netconf::NETCONF_GET_CONFIG_STARTED = "NETCONF_GET_CONFIG_STARTED"

Definition at line 19 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::keaConfig().

const isc::log::MessageID isc::netconf::NETCONF_LOG_CHANGE_FAIL = "NETCONF_LOG_CHANGE_FAIL"

Definition at line 20 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::logChanges().

const char * isc::netconf::NETCONF_LOGGER_NAME = "netconf"

Defines the name of the root level (default) logger.

Definition at line 22 of file netconf_log.cc.

const isc::log::MessageID isc::netconf::NETCONF_MODULE_INSTALL = "NETCONF_MODULE_INSTALL"

Definition at line 21 of file netconf_messages.h.

const isc::log::MessageID isc::netconf::NETCONF_MODULE_MISSING_ERR = "NETCONF_MODULE_MISSING_ERR"

Definition at line 22 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::checkModule().

const isc::log::MessageID isc::netconf::NETCONF_MODULE_MISSING_WARN = "NETCONF_MODULE_MISSING_WARN"

Definition at line 23 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::checkModules().

const isc::log::MessageID isc::netconf::NETCONF_MODULE_REVISION_ERR = "NETCONF_MODULE_REVISION_ERR"

Definition at line 24 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::checkModule().

const isc::log::MessageID isc::netconf::NETCONF_MODULE_REVISION_WARN = "NETCONF_MODULE_REVISION_WARN"

Definition at line 25 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::checkModules().

const isc::log::MessageID isc::netconf::NETCONF_RUN_EXIT = "NETCONF_RUN_EXIT"

Definition at line 26 of file netconf_messages.h.

Referenced by isc::netconf::NetconfProcess::run().

const isc::log::MessageID isc::netconf::NETCONF_SET_CONFIG = "NETCONF_SET_CONFIG"

Definition at line 27 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::yangConfig().

const isc::log::MessageID isc::netconf::NETCONF_SET_CONFIG_FAILED = "NETCONF_SET_CONFIG_FAILED"

Definition at line 28 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::yangConfig().

const isc::log::MessageID isc::netconf::NETCONF_SET_CONFIG_STARTED = "NETCONF_SET_CONFIG_STARTED"

Definition at line 29 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::yangConfig().

const isc::log::MessageID isc::netconf::NETCONF_STARTED = "NETCONF_STARTED"

Definition at line 30 of file netconf_messages.h.

Referenced by isc::netconf::NetconfProcess::run().

const isc::log::MessageID isc::netconf::NETCONF_SUBSCRIBE_CONFIG = "NETCONF_SUBSCRIBE_CONFIG"

Definition at line 31 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::subscribeConfig().

const isc::log::MessageID isc::netconf::NETCONF_SUBSCRIBE_CONFIG_FAILED = "NETCONF_SUBSCRIBE_CONFIG_FAILED"

Definition at line 32 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::subscribeConfig().

const isc::log::MessageID isc::netconf::NETCONF_UPDATE_CONFIG = "NETCONF_UPDATE_CONFIG"

Definition at line 33 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::update().

const isc::log::MessageID isc::netconf::NETCONF_UPDATE_CONFIG_COMPLETED = "NETCONF_UPDATE_CONFIG_COMPLETED"

Definition at line 34 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::update().

const isc::log::MessageID isc::netconf::NETCONF_UPDATE_CONFIG_FAILED = "NETCONF_UPDATE_CONFIG_FAILED"

Definition at line 35 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::update().

const isc::log::MessageID isc::netconf::NETCONF_UPDATE_CONFIG_STARTED = "NETCONF_UPDATE_CONFIG_STARTED"

Definition at line 36 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::update().

const isc::log::MessageID isc::netconf::NETCONF_VALIDATE_CONFIG = "NETCONF_VALIDATE_CONFIG"

Definition at line 37 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::validate().

const isc::log::MessageID isc::netconf::NETCONF_VALIDATE_CONFIG_COMPLETED = "NETCONF_VALIDATE_CONFIG_COMPLETED"

Definition at line 38 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::validate().

const isc::log::MessageID isc::netconf::NETCONF_VALIDATE_CONFIG_FAILED = "NETCONF_VALIDATE_CONFIG_FAILED"

Definition at line 39 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::validate().

const isc::log::MessageID isc::netconf::NETCONF_VALIDATE_CONFIG_REJECTED = "NETCONF_VALIDATE_CONFIG_REJECTED"

Definition at line 40 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::validate().

const isc::log::MessageID isc::netconf::NETCONF_VALIDATE_CONFIG_STARTED = "NETCONF_VALIDATE_CONFIG_STARTED"

Definition at line 41 of file netconf_messages.h.

Referenced by isc::netconf::NetconfAgent::validate().