OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BgpSandeshContext Struct Reference

#include <bgp_sandesh.h>

Inheritance diagram for BgpSandeshContext:
Collaboration diagram for BgpSandeshContext:

Public Types

typedef boost::function< bool(const
BgpSandeshContext *, bool,
uint32_t, uint32_t, const
std::string &, const
std::string &, std::vector
< BgpNeighborResp >
*, std::string *)> 
NeighborListExtension
 
typedef boost::function< void(size_t
*, const BgpSandeshContext
*, const
ShowNeighborStatisticsReq *)> 
NeighborStatisticsExtension
 
typedef boost::function< void(const
BgpSandeshContext *, const
ShowBgpPeeringConfigReq *)> 
PeeringReqHandler
 
typedef boost::function< void(const
BgpSandeshContext *, const
ShowBgpPeeringConfigReqIterate *)> 
PeeringReqIterateHandler
 

Public Member Functions

 BgpSandeshContext ()
 
void SetNeighborShowExtensions (const NeighborListExtension &show_neighbor, const NeighborStatisticsExtension &show_neighbor_statistics)
 
void SetPeeringShowHandlers (const PeeringReqHandler &show_peering_req_handler, const PeeringReqIterateHandler &show_peering_req_iterate_handler)
 
bool ShowNeighborExtension (const BgpSandeshContext *bsc, bool summary, uint32_t page_limit, uint32_t iter_limit, const std::string &start_neighbor, const std::string &search_string, std::vector< BgpNeighborResp > *list, std::string *next_neighbor) const
 
void ShowNeighborStatisticsExtension (size_t *count, const ShowNeighborStatisticsReq *req) const
 
void PeeringShowReqHandler (const ShowBgpPeeringConfigReq *req)
 
void PeeringShowReqIterateHandler (const ShowBgpPeeringConfigReqIterate *req_iterate)
 
bool test_mode () const
 
void set_test_mode (bool test_mode)
 
uint32_t page_limit () const
 
void set_page_limit (uint32_t page_limit)
 
uint32_t iter_limit () const
 
void set_iter_limit (uint32_t iter_limit)
 
- Public Member Functions inherited from SandeshContext
virtual ~SandeshContext ()
 

Public Attributes

BgpServerbgp_server
 
BgpXmppChannelManagerxmpp_peer_manager
 

Private Attributes

bool test_mode_
 
uint32_t page_limit_
 
uint32_t iter_limit_
 
NeighborListExtension show_neighbor_ext_
 
NeighborStatisticsExtension show_neighbor_statistics_ext_
 
PeeringReqHandler show_peering_req_handler_
 
PeeringReqIterateHandler show_peering_req_iterate_handler_
 

Additional Inherited Members

- Protected Member Functions inherited from SandeshContext
 SandeshContext ()
 

Detailed Description

Definition at line 23 of file bgp_sandesh.h.

Member Typedef Documentation

typedef boost::function<bool(const BgpSandeshContext *, bool, uint32_t, uint32_t, const std::string &, const std::string &, std::vector<BgpNeighborResp> *, std::string *)> BgpSandeshContext::NeighborListExtension

Definition at line 26 of file bgp_sandesh.h.

typedef boost::function<void(size_t *, const BgpSandeshContext *, const ShowNeighborStatisticsReq *)> BgpSandeshContext::NeighborStatisticsExtension

Definition at line 29 of file bgp_sandesh.h.

typedef boost::function<void(const BgpSandeshContext *, const ShowBgpPeeringConfigReq *)> BgpSandeshContext::PeeringReqHandler

Definition at line 32 of file bgp_sandesh.h.

typedef boost::function<void(const BgpSandeshContext *, const ShowBgpPeeringConfigReqIterate *)> BgpSandeshContext::PeeringReqIterateHandler

Definition at line 34 of file bgp_sandesh.h.

Constructor & Destructor Documentation

BgpSandeshContext::BgpSandeshContext ( )

Definition at line 654 of file bgp_sandesh.cc.

Member Function Documentation

uint32_t BgpSandeshContext::iter_limit ( ) const
inline

Definition at line 65 of file bgp_sandesh.h.

uint32_t BgpSandeshContext::page_limit ( ) const
inline

Definition at line 63 of file bgp_sandesh.h.

void BgpSandeshContext::PeeringShowReqHandler ( const ShowBgpPeeringConfigReq *  req)

Definition at line 694 of file bgp_sandesh.cc.

void BgpSandeshContext::PeeringShowReqIterateHandler ( const ShowBgpPeeringConfigReqIterate *  req_iterate)

Definition at line 704 of file bgp_sandesh.cc.

void BgpSandeshContext::set_iter_limit ( uint32_t  iter_limit)
inline

Definition at line 66 of file bgp_sandesh.h.

Here is the call graph for this function:

void BgpSandeshContext::set_page_limit ( uint32_t  page_limit)
inline

Definition at line 64 of file bgp_sandesh.h.

Here is the call graph for this function:

void BgpSandeshContext::set_test_mode ( bool  test_mode)
inline

Definition at line 62 of file bgp_sandesh.h.

Here is the call graph for this function:

void BgpSandeshContext::SetNeighborShowExtensions ( const NeighborListExtension show_neighbor,
const NeighborStatisticsExtension show_neighbor_statistics 
)

Definition at line 662 of file bgp_sandesh.cc.

void BgpSandeshContext::SetPeeringShowHandlers ( const PeeringReqHandler show_peering_req_handler,
const PeeringReqIterateHandler show_peering_req_iterate_handler 
)

Definition at line 687 of file bgp_sandesh.cc.

bool BgpSandeshContext::ShowNeighborExtension ( const BgpSandeshContext bsc,
bool  summary,
uint32_t  page_limit,
uint32_t  iter_limit,
const std::string &  start_neighbor,
const std::string &  search_string,
std::vector< BgpNeighborResp > *  list,
std::string *  next_neighbor 
) const

Definition at line 669 of file bgp_sandesh.cc.

void BgpSandeshContext::ShowNeighborStatisticsExtension ( size_t *  count,
const ShowNeighborStatisticsReq *  req 
) const

Definition at line 680 of file bgp_sandesh.cc.

bool BgpSandeshContext::test_mode ( ) const
inline

Definition at line 61 of file bgp_sandesh.h.

Member Data Documentation

BgpServer* BgpSandeshContext::bgp_server

Definition at line 46 of file bgp_sandesh.h.

uint32_t BgpSandeshContext::iter_limit_
private

Definition at line 71 of file bgp_sandesh.h.

uint32_t BgpSandeshContext::page_limit_
private

Definition at line 70 of file bgp_sandesh.h.

NeighborListExtension BgpSandeshContext::show_neighbor_ext_
private

Definition at line 72 of file bgp_sandesh.h.

NeighborStatisticsExtension BgpSandeshContext::show_neighbor_statistics_ext_
private

Definition at line 73 of file bgp_sandesh.h.

PeeringReqHandler BgpSandeshContext::show_peering_req_handler_
private

Definition at line 74 of file bgp_sandesh.h.

PeeringReqIterateHandler BgpSandeshContext::show_peering_req_iterate_handler_
private

Definition at line 75 of file bgp_sandesh.h.

bool BgpSandeshContext::test_mode_
private

Definition at line 69 of file bgp_sandesh.h.

BgpXmppChannelManager* BgpSandeshContext::xmpp_peer_manager

Definition at line 47 of file bgp_sandesh.h.


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