Kea  1.9.9-git
netconf_config.h File Reference

A collection of classes for housing and parsing the application configuration necessary for the Netconf application. More...

#include <cc/data.h>
#include <cc/cfg_to_element.h>
#include <cc/user_context.h>
#include <cc/simple_parser.h>
#include <http/url.h>
#include <exceptions/exceptions.h>
#include <boost/foreach.hpp>
#include <stdint.h>
#include <string>
+ Include dependency graph for netconf_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  isc::netconf::CfgControlSocket
 Represents a Control Socket. More...
 
class  isc::netconf::CfgServer
 Represents a Managed CfgServer. More...
 
class  isc::netconf::ControlSocketConfigParser
 Parser for CfgControlSocket. More...
 
class  isc::netconf::ServerConfigParser
 Parser for CfgServer. More...
 

Namespaces

 isc
 Defines the logger used by the top-level component of kea-dhcp-ddns.
 
 isc::netconf
 

Typedefs

typedef boost::shared_ptr< CfgControlSocket > isc::netconf::CfgControlSocketPtr
 Defines a pointer for CfgControlSocket instances. More...
 
typedef boost::shared_ptr< CfgServer > isc::netconf::CfgServerPtr
 Defines a pointer for CfgServer instances. More...
 
typedef std::map< std::string, CfgServerPtr > isc::netconf::CfgServersMap
 Defines a map of CfgServers, keyed by the name. More...
 
typedef std::pair< std::string, CfgServerPtr > isc::netconf::CfgServersMapPair
 Defines a iterator pairing of name and CfgServer. More...
 
typedef boost::shared_ptr< CfgServersMap > isc::netconf::CfgServersMapPtr
 Defines a pointer to map of CfgServers. More...
 

Functions

ostream & isc::netconf::operator<< (std::ostream &os, const CfgServer &server)
 Dumps the contents of a CfgServer as text to a output stream. More...
 

Detailed Description

A collection of classes for housing and parsing the application configuration necessary for the Netconf application.

Note
NetconfConfig is not here: this file contains component of this class but not the class itself.

This file contains the class declarations for the class hierarchy created from the Netconf configuration and the parser classes used to create it. The application configuration consists of a list of managed server.

The parsing class hierarchy reflects this same scheme. Working top down:

A ServerMapParser handles the managed servers map invoking a ServerConfigParser to parse each server.

A ServerConfigParser handles the scalars which belong to the server as well as creating and invoking a CtrlSocketParser to parse its control socket.

A CtrlSocketParser handles the scalars which belong to the control socket.

The following is sample configuration in JSON form with extra spacing for clarity:

{
"managed-servers" :
{
"dhcp4":
{
"model": "kea-dhcp4-server",
"control-socket":
{
"socket-type": "unix",
"socket-name": "/tmp/server-v4.sock"
}
}
}
}

Definition in file netconf_config.h.