OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

virtual IPeer::~IPeer ( )
inlinevirtual

Definition at line 188 of file ipeer.h.

Member Function Documentation

virtual uint32_t IPeer::bgp_identifier ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual bool IPeer::CanUseMembershipManager ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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:

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual int IPeer::GetPrimaryPathCount ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual int IPeer::GetTotalPathCount ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual bool IPeer::IsAs4Supported ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual bool IPeer::IsInGRTimerWaitState ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual bool IPeer::IsReady ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual bool IPeer::IsRegistrationRequired ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual bool IPeer::IsRouterTypeBGPaaS ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual bool IPeer::IsXmppPeer ( ) const
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpPeer, and BgpXmppChannel::XmppPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual IPeerClose* IPeer::peer_close ( )
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual IPeerDebugStats* IPeer::peer_stats ( )
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

virtual BgpServer* IPeer::server ( )
pure virtual

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implements IPeerUpdate.

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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

Implemented in BgpXmppChannel::XmppPeer, and BgpPeer.

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: