OpenSDN source code
IPeer Class Referenceabstract

#include <ipeer.h>

Inheritance diagram for IPeer:
Collaboration diagram for IPeer:

Public Member Functions

virtual ~IPeer ()
 
virtual const std::string & ToString () const =0
 
virtual const std::string & ToUVEKey () const =0
 
virtual BgpServerserver ()=0
 
virtual BgpServerserver () const =0
 
virtual IPeerClosepeer_close () const =0
 
virtual IPeerClosepeer_close ()=0
 
virtual IPeerDebugStatspeer_stats ()=0
 
virtual const IPeerDebugStatspeer_stats () const =0
 
virtual bool IsReady () const =0
 
virtual bool IsXmppPeer () const =0
 
virtual bool IsRouterTypeBGPaaS () const =0
 
virtual bool IsRegistrationRequired () const =0
 
virtual void Close (bool graceful)=0
 
virtual BgpProto::BgpPeerType PeerType () const =0
 
virtual uint32_t bgp_identifier () const =0
 
virtual const std::string GetStateName () const =0
 
virtual void UpdateTotalPathCount (int count) const =0
 
virtual int GetTotalPathCount () const =0
 
virtual bool IsAs4Supported () const =0
 
virtual void ProcessPathTunnelEncapsulation (const BgpPath *path, BgpAttr *attr, ExtCommunityDB *extcomm_db, const BgpTable *table) const =0
 
virtual const std::vector< std::string > GetDefaultTunnelEncap (const Address::Family family) const =0
 
virtual void UpdatePrimaryPathCount (int count, Address::Family family=Address::UNSPEC) const =0
 
virtual int GetPrimaryPathCount () const =0
 
virtual void MembershipRequestCallback (BgpTable *table)=0
 
virtual bool MembershipPathCallback (DBTablePartBase *tpart, BgpRoute *route, BgpPath *path)=0
 
virtual bool CanUseMembershipManager () const =0
 
virtual bool IsInGRTimerWaitState () const =0
 
virtual void UpdateCloseRouteStats (Address::Family family, const BgpPath *old_path, uint32_t path_flags) const =0
 
virtual bool CheckSplitHorizon (uint32_t cluster_id=0, uint32_t ribout_cid=0) const
 
- Public Member Functions inherited from IPeerUpdate
virtual ~IPeerUpdate ()
 
virtual bool send_ready () const
 
virtual bool SendUpdate (const uint8_t *msg, size_t msgsize)=0
 
virtual bool SendUpdate (const uint8_t *msg, size_t msgsize, const std::string *msg_str)
 
virtual bool FlushUpdate ()
 

Detailed Description

Definition at line 186 of file ipeer.h.

Constructor & Destructor Documentation

◆ ~IPeer()

virtual IPeer::~IPeer ( )
inlinevirtual

Definition at line 188 of file ipeer.h.

Member Function Documentation

◆ bgp_identifier()

virtual uint32_t IPeer::bgp_identifier ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ CanUseMembershipManager()

virtual bool IPeer::CanUseMembershipManager ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ CheckSplitHorizon()

virtual bool IPeer::CheckSplitHorizon ( uint32_t  cluster_id = 0,
uint32_t  ribout_cid = 0 
) const
inlinevirtual

Reimplemented in BgpPeer.

Definition at line 229 of file ipeer.h.

Here is the call graph for this function:

◆ Close()

virtual void IPeer::Close ( bool  graceful)
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ GetDefaultTunnelEncap()

virtual const std::vector<std::string> IPeer::GetDefaultTunnelEncap ( const Address::Family  family) const
pure virtual

Implemented in BgpPeer, and BgpXmppChannel::XmppPeer.

◆ GetPrimaryPathCount()

virtual int IPeer::GetPrimaryPathCount ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ GetStateName()

virtual const std::string IPeer::GetStateName ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ GetTotalPathCount()

virtual int IPeer::GetTotalPathCount ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ IsAs4Supported()

virtual bool IPeer::IsAs4Supported ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ IsInGRTimerWaitState()

virtual bool IPeer::IsInGRTimerWaitState ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ IsReady()

virtual bool IPeer::IsReady ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ IsRegistrationRequired()

virtual bool IPeer::IsRegistrationRequired ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ IsRouterTypeBGPaaS()

virtual bool IPeer::IsRouterTypeBGPaaS ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ IsXmppPeer()

virtual bool IPeer::IsXmppPeer ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ MembershipPathCallback()

virtual bool IPeer::MembershipPathCallback ( DBTablePartBase tpart,
BgpRoute route,
BgpPath path 
)
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ MembershipRequestCallback()

virtual void IPeer::MembershipRequestCallback ( BgpTable table)
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ peer_close() [1/2]

virtual IPeerClose* IPeer::peer_close ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ peer_close() [2/2]

virtual IPeerClose* IPeer::peer_close ( )
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ peer_stats() [1/2]

virtual const IPeerDebugStats* IPeer::peer_stats ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ peer_stats() [2/2]

virtual IPeerDebugStats* IPeer::peer_stats ( )
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ PeerType()

virtual BgpProto::BgpPeerType IPeer::PeerType ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ ProcessPathTunnelEncapsulation()

virtual void IPeer::ProcessPathTunnelEncapsulation ( const BgpPath path,
BgpAttr attr,
ExtCommunityDB extcomm_db,
const BgpTable table 
) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ server() [1/2]

virtual BgpServer* IPeer::server ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ server() [2/2]

virtual BgpServer* IPeer::server ( )
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ ToString()

virtual const std::string& IPeer::ToString ( ) const
pure virtual

Implements IPeerUpdate.

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ ToUVEKey()

virtual const std::string& IPeer::ToUVEKey ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ UpdateCloseRouteStats()

virtual void IPeer::UpdateCloseRouteStats ( Address::Family  family,
const BgpPath old_path,
uint32_t  path_flags 
) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ UpdatePrimaryPathCount()

virtual void IPeer::UpdatePrimaryPathCount ( int  count,
Address::Family  family = Address::UNSPEC 
) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

◆ UpdateTotalPathCount()

virtual void IPeer::UpdateTotalPathCount ( int  count) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.


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