OpenSDN source code
BgpIfmapPeeringConfig Class Reference

#include <bgp_config_ifmap.h>

Collaboration diagram for BgpIfmapPeeringConfig:

Public Types

typedef std::map< std::string, BgpNeighborConfig * > NeighborMap
 

Public Member Functions

 BgpIfmapPeeringConfig (BgpIfmapInstanceConfig *instance)
 
 ~BgpIfmapPeeringConfig ()
 
void SetNodeProxy (IFMapNodeProxy *proxy)
 
void Update (BgpIfmapConfigManager *manager, const autogen::BgpPeering *peering)
 
void Delete (BgpIfmapConfigManager *manager)
 
const IFMapNodenode () const
 
BgpIfmapInstanceConfiginstance ()
 
const BgpIfmapInstanceConfiginstance () const
 
std::string name () const
 
size_t size () const
 
const autogen::BgpPeering * bgp_peering () const
 

Static Public Member Functions

static bool GetRouterPair (DBGraph *db_graph, const std::string &localname, IFMapNode *node, std::pair< IFMapNode *, IFMapNode * > *pair)
 

Private Member Functions

void BuildNeighbors (BgpIfmapConfigManager *manager, const autogen::BgpRouter *local_rt_config, const std::string &peername, const autogen::BgpRouter *remote_rt_config, const autogen::BgpPeering *peering, NeighborMap *map)
 
 DISALLOW_COPY_AND_ASSIGN (BgpIfmapPeeringConfig)
 

Private Attributes

BgpIfmapInstanceConfiginstance_
 
std::string name_
 
IFMapNodeProxy node_proxy_
 
NeighborMap neighbors_
 
boost::intrusive_ptr< const autogen::BgpPeering > bgp_peering_
 

Detailed Description

Definition at line 75 of file bgp_config_ifmap.h.

Member Typedef Documentation

◆ NeighborMap

typedef std::map<std::string, BgpNeighborConfig *> BgpIfmapPeeringConfig::NeighborMap

Definition at line 77 of file bgp_config_ifmap.h.

Constructor & Destructor Documentation

◆ BgpIfmapPeeringConfig()

BgpIfmapPeeringConfig::BgpIfmapPeeringConfig ( BgpIfmapInstanceConfig instance)
explicit

Definition at line 64 of file bgp_config_ifmap.cc.

◆ ~BgpIfmapPeeringConfig()

BgpIfmapPeeringConfig::~BgpIfmapPeeringConfig ( )

Definition at line 68 of file bgp_config_ifmap.cc.

Here is the call graph for this function:

Member Function Documentation

◆ bgp_peering()

const autogen::BgpPeering* BgpIfmapPeeringConfig::bgp_peering ( ) const
inline

Definition at line 96 of file bgp_config_ifmap.h.

◆ BuildNeighbors()

void BgpIfmapPeeringConfig::BuildNeighbors ( BgpIfmapConfigManager manager,
const autogen::BgpRouter *  local_rt_config,
const std::string &  peername,
const autogen::BgpRouter *  remote_rt_config,
const autogen::BgpPeering *  peering,
NeighborMap map 
)
private

Definition at line 421 of file bgp_config_ifmap.cc.

Here is the call graph for this function:

◆ Delete()

void BgpIfmapPeeringConfig::Delete ( BgpIfmapConfigManager manager)

Definition at line 543 of file bgp_config_ifmap.cc.

Here is the call graph for this function:

◆ DISALLOW_COPY_AND_ASSIGN()

BgpIfmapPeeringConfig::DISALLOW_COPY_AND_ASSIGN ( BgpIfmapPeeringConfig  )
private

◆ GetRouterPair()

bool BgpIfmapPeeringConfig::GetRouterPair ( DBGraph db_graph,
const std::string &  localname,
IFMapNode node,
std::pair< IFMapNode *, IFMapNode * > *  pair 
)
static

Definition at line 564 of file bgp_config_ifmap.cc.

Here is the call graph for this function:

◆ instance() [1/2]

BgpIfmapInstanceConfig* BgpIfmapPeeringConfig::instance ( )
inline

Definition at line 92 of file bgp_config_ifmap.h.

◆ instance() [2/2]

const BgpIfmapInstanceConfig* BgpIfmapPeeringConfig::instance ( ) const
inline

Definition at line 93 of file bgp_config_ifmap.h.

◆ name()

std::string BgpIfmapPeeringConfig::name ( ) const
inline

Definition at line 94 of file bgp_config_ifmap.h.

◆ node()

const IFMapNode* BgpIfmapPeeringConfig::node ( ) const
inline

Definition at line 91 of file bgp_config_ifmap.h.

Here is the call graph for this function:

◆ SetNodeProxy()

void BgpIfmapPeeringConfig::SetNodeProxy ( IFMapNodeProxy proxy)

Definition at line 72 of file bgp_config_ifmap.cc.

Here is the call graph for this function:

◆ size()

size_t BgpIfmapPeeringConfig::size ( ) const
inline

Definition at line 95 of file bgp_config_ifmap.h.

◆ Update()

void BgpIfmapPeeringConfig::Update ( BgpIfmapConfigManager manager,
const autogen::BgpPeering *  peering 
)

Definition at line 457 of file bgp_config_ifmap.cc.

Here is the call graph for this function:

Member Data Documentation

◆ bgp_peering_

boost::intrusive_ptr<const autogen::BgpPeering> BgpIfmapPeeringConfig::bgp_peering_
private

Definition at line 111 of file bgp_config_ifmap.h.

◆ instance_

BgpIfmapInstanceConfig* BgpIfmapPeeringConfig::instance_
private

Definition at line 107 of file bgp_config_ifmap.h.

◆ name_

std::string BgpIfmapPeeringConfig::name_
private

Definition at line 108 of file bgp_config_ifmap.h.

◆ neighbors_

NeighborMap BgpIfmapPeeringConfig::neighbors_
private

Definition at line 110 of file bgp_config_ifmap.h.

◆ node_proxy_

IFMapNodeProxy BgpIfmapPeeringConfig::node_proxy_
private

Definition at line 109 of file bgp_config_ifmap.h.


The documentation for this class was generated from the following files: