OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
controller/src/control-node/main.cc File Reference
#include <csignal>
#include <fstream>
#include <iostream>
#include <boost/asio/ip/host_name.hpp>
#include <boost/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/program_options.hpp>
#include "nodeinfo_types.h"
#include "base/connection_info.h"
#include "base/logging.h"
#include "base/misc_utils.h"
#include "base/address_util.h"
#include "io/process_signal.h"
#include "bgp/bgp_config.h"
#include "bgp/bgp_config_ifmap.h"
#include "bgp/bgp_config_parser.h"
#include "bgp/bgp_ifmap_sandesh.h"
#include "bgp/bgp_peer.h"
#include "bgp/bgp_peer_types.h"
#include "bgp/bgp_sandesh.h"
#include "bgp/bgp_xmpp_sandesh.h"
#include "bgp/bgp_server.h"
#include "bgp/bgp_session_manager.h"
#include "bgp/bgp_xmpp_channel.h"
#include "bgp/xmpp_message_builder.h"
#include "bgp/routing-instance/routing_instance.h"
#include "bgp/routing-instance/rtarget_group_mgr.h"
#include "config_client_manager.h"
#include "control-node/buildinfo.h"
#include "control-node/control_node.h"
#include "control-node/options.h"
#include "db/db_graph.h"
#include "ifmap/client/config_json_parser.h"
#include "ifmap/ifmap_link_table.h"
#include "ifmap/ifmap_sandesh_context.h"
#include "ifmap/ifmap_server.h"
#include "ifmap/ifmap_xmpp.h"
#include "io/event_manager.h"
#include "sandesh/common/vns_constants.h"
#include "sandesh/common/vns_types.h"
#include "sandesh/sandesh_http.h"
#include "sandesh/sandesh_trace.h"
#include "schema/bgp_schema_types.h"
#include "schema/vnc_cfg_types.h"
#include "xmpp/sandesh/xmpp_peer_info_types.h"
#include "xmpp/xmpp_init.h"
#include "xmpp/xmpp_sandesh.h"
#include "xmpp/xmpp_server.h"
Include dependency graph for controller/src/control-node/main.cc:

Go to the source code of this file.

Functions

static string FileRead (const char *filename)
 
static void IFMap_Initialize (IFMapServer *server, ConfigJsonParser *json_parser)
 
static XmppServerCreateXmppServer (EventManager *evm, Options *options, XmppChannelConfig *xmpp_cfg)
 
static void WaitForIdle ()
 
static void ShutdownServers (boost::scoped_ptr< BgpXmppChannelManager > *channel_manager)
 
void ControlNodeShutdown ()
 
static void ControlNodeGetProcessStateCb (const BgpServer *bgp_server, const ConfigClientManager *config_client_manager, const std::vector< ConnectionInfo > &cinfos, ProcessState::type &state, std::string &message, std::vector< ConnectionTypeName > expected_connections)
 
void SigTermSignalHandler (const boost::system::error_code &error, int sig, bool force_reinit)
 
void ReConfigSignalHandler (const boost::system::error_code &error, int sig, bool force_reinit)
 

Variables

static EventManager evm
 
static Options options
 

Function Documentation

static void ControlNodeGetProcessStateCb ( const BgpServer bgp_server,
const ConfigClientManager config_client_manager,
const std::vector< ConnectionInfo > &  cinfos,
ProcessState::type state,
std::string &  message,
std::vector< ConnectionTypeName >  expected_connections 
)
static

Definition at line 188 of file controller/src/control-node/main.cc.

Here is the call graph for this function:

void ControlNodeShutdown ( )

Definition at line 178 of file controller/src/control-node/main.cc.

Here is the call graph for this function:

static XmppServer* CreateXmppServer ( EventManager evm,
Options options,
XmppChannelConfig xmpp_cfg 
)
static

Definition at line 87 of file controller/src/control-node/main.cc.

Here is the call graph for this function:

static string FileRead ( const char *  filename)
static

Definition at line 71 of file controller/src/control-node/main.cc.

static void IFMap_Initialize ( IFMapServer server,
ConfigJsonParser json_parser 
)
static

Definition at line 78 of file controller/src/control-node/main.cc.

Here is the call graph for this function:

void ReConfigSignalHandler ( const boost::system::error_code &  error,
int  sig,
bool  force_reinit 
)

Definition at line 206 of file controller/src/control-node/main.cc.

Here is the call graph for this function:

static void ShutdownServers ( boost::scoped_ptr< BgpXmppChannelManager > *  channel_manager)
static

Definition at line 133 of file controller/src/control-node/main.cc.

Here is the call graph for this function:

void SigTermSignalHandler ( const boost::system::error_code &  error,
int  sig,
bool  force_reinit 
)

Definition at line 201 of file controller/src/control-node/main.cc.

static void WaitForIdle ( )
static

Definition at line 120 of file controller/src/control-node/main.cc.

Here is the call graph for this function:

Variable Documentation

EventManager evm
static

Definition at line 68 of file controller/src/control-node/main.cc.

Options options
static

Definition at line 69 of file controller/src/control-node/main.cc.