#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"
Go to the source code of this file.
|
static string | FileRead (const char *filename) |
|
static void | IFMap_Initialize (IFMapServer *server, ConfigJsonParser *json_parser) |
|
static XmppServer * | CreateXmppServer (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) |
|
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 |
void ControlNodeShutdown |
( |
| ) |
|
static string FileRead |
( |
const char * |
filename | ) |
|
|
static |
void ReConfigSignalHandler |
( |
const boost::system::error_code & |
error, |
|
|
int |
sig, |
|
|
bool |
force_reinit |
|
) |
| |
void SigTermSignalHandler |
( |
const boost::system::error_code & |
error, |
|
|
int |
sig, |
|
|
bool |
force_reinit |
|
) |
| |
static void WaitForIdle |
( |
| ) |
|
|
static |