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

#include <bgp_show_route.h>

Collaboration diagram for ShowRouteHandler:

Classes

struct  ShowRouteData
 

Public Member Functions

 ShowRouteHandler (const ShowRouteReq *req, int inst_id)
 
void BuildShowRouteTable (BgpTable *table, std::vector< ShowRoute > *route_list, int count)
 
bool MatchPrefix (const std::string &expected_prefix, BgpRoute *route, bool longer_match, bool shorter_match)
 
bool match (const std::string &expected, const std::string &actual)
 

Static Public Member Functions

static uint32_t GetMaxCount (bool test_mode)
 
static RequestPipeline::InstDataCreateData (int stage)
 
static bool CallbackS1Common (const ShowRouteReq *req, int inst_id, ShowRouteData *mydata)
 
static void CallbackS2Common (const ShowRouteReq *req, const RequestPipeline::PipeSpec ps, ShowRouteResp *resp)
 
static bool CallbackS1 (const Sandesh *sr, const RequestPipeline::PipeSpec ps, int stage, int instNum, RequestPipeline::InstData *data)
 
static bool CallbackS2 (const Sandesh *sr, const RequestPipeline::PipeSpec &ps, int stage, int instNum, RequestPipeline::InstData *data)
 
static bool CallbackS1Iterate (const Sandesh *sr, const RequestPipeline::PipeSpec ps, int stage, int instNum, RequestPipeline::InstData *data)
 
static bool CallbackS2Iterate (const Sandesh *sr, const RequestPipeline::PipeSpec ps, int stage, int instNum, RequestPipeline::InstData *data)
 
static std::string SaveContextAndPopLast (const ShowRouteReq *req, std::vector< ShowRouteTable > *route_table_list)
 
static bool ConvertReqIterateToReq (const ShowRouteReqIterate *req_iterate, ShowRouteReq *req)
 
static uint32_t GetMaxRouteCount (const ShowRouteReq *req)
 

Static Public Attributes

static char kIterSeparator [] = "||"
 
static const uint32_t kUnitTestMaxCount = 100
 
static const uint32_t kMaxCount = 1000
 

Private Attributes

const ShowRouteReq * req_
 
int inst_id_
 
contrail::regex prefix_expr_
 

Detailed Description

Definition at line 17 of file bgp_show_route.h.

Constructor & Destructor Documentation

ShowRouteHandler::ShowRouteHandler ( const ShowRouteReq *  req,
int  inst_id 
)

Definition at line 140 of file bgp_show_route.cc.

Member Function Documentation

void ShowRouteHandler::BuildShowRouteTable ( BgpTable table,
std::vector< ShowRoute > *  route_list,
int  count 
)

Definition at line 145 of file bgp_show_route.cc.

Here is the call graph for this function:

bool ShowRouteHandler::CallbackS1 ( const Sandesh sr,
const RequestPipeline::PipeSpec  ps,
int  stage,
int  instNum,
RequestPipeline::InstData data 
)
static

Definition at line 416 of file bgp_show_route.cc.

Here is the call graph for this function:

bool ShowRouteHandler::CallbackS1Common ( const ShowRouteReq *  req,
int  inst_id,
ShowRouteData mydata 
)
static

Definition at line 327 of file bgp_show_route.cc.

Here is the call graph for this function:

bool ShowRouteHandler::CallbackS1Iterate ( const Sandesh sr,
const RequestPipeline::PipeSpec  ps,
int  stage,
int  instNum,
RequestPipeline::InstData data 
)
static

Definition at line 427 of file bgp_show_route.cc.

Here is the call graph for this function:

bool ShowRouteHandler::CallbackS2 ( const Sandesh sr,
const RequestPipeline::PipeSpec ps,
int  stage,
int  instNum,
RequestPipeline::InstData data 
)
static

Definition at line 551 of file bgp_show_route.cc.

Here is the call graph for this function:

void ShowRouteHandler::CallbackS2Common ( const ShowRouteReq *  req,
const RequestPipeline::PipeSpec  ps,
ShowRouteResp *  resp 
)
static

Definition at line 526 of file bgp_show_route.cc.

Here is the call graph for this function:

bool ShowRouteHandler::CallbackS2Iterate ( const Sandesh sr,
const RequestPipeline::PipeSpec  ps,
int  stage,
int  instNum,
RequestPipeline::InstData data 
)
static

Definition at line 564 of file bgp_show_route.cc.

Here is the call graph for this function:

bool ShowRouteHandler::ConvertReqIterateToReq ( const ShowRouteReqIterate *  req_iterate,
ShowRouteReq *  req 
)
static

Definition at line 218 of file bgp_show_route.cc.

Here is the call graph for this function:

RequestPipeline::InstData * ShowRouteHandler::CreateData ( int  stage)
static

Definition at line 199 of file bgp_show_route.cc.

uint32_t ShowRouteHandler::GetMaxCount ( bool  test_mode)
static

Definition at line 132 of file bgp_show_route.cc.

uint32_t ShowRouteHandler::GetMaxRouteCount ( const ShowRouteReq *  req)
static

Definition at line 203 of file bgp_show_route.cc.

Here is the call graph for this function:

bool ShowRouteHandler::match ( const std::string &  expected,
const std::string &  actual 
)

Definition at line 193 of file bgp_show_route.cc.

bool ShowRouteHandler::MatchPrefix ( const std::string &  expected_prefix,
BgpRoute route,
bool  longer_match,
bool  shorter_match 
)

Definition at line 174 of file bgp_show_route.cc.

Here is the call graph for this function:

string ShowRouteHandler::SaveContextAndPopLast ( const ShowRouteReq *  req,
std::vector< ShowRouteTable > *  route_table_list 
)
static

Definition at line 444 of file bgp_show_route.cc.

Here is the call graph for this function:

Member Data Documentation

int ShowRouteHandler::inst_id_
private

Definition at line 68 of file bgp_show_route.h.

char ShowRouteHandler::kIterSeparator = "||"
static

Definition at line 19 of file bgp_show_route.h.

const uint32_t ShowRouteHandler::kMaxCount = 1000
static

Definition at line 23 of file bgp_show_route.h.

const uint32_t ShowRouteHandler::kUnitTestMaxCount = 100
static

Definition at line 22 of file bgp_show_route.h.

contrail::regex ShowRouteHandler::prefix_expr_
private

Definition at line 69 of file bgp_show_route.h.

const ShowRouteReq* ShowRouteHandler::req_
private

Definition at line 67 of file bgp_show_route.h.


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