5 #ifndef SRC_BGP_BGP_SHOW_ROUTE_H__
6 #define SRC_BGP_BGP_SHOW_ROUTE_H__
9 #include "bgp/bgp_peer_types.h"
10 #include "sandesh/request_pipeline.h"
15 class ShowRouteReqIterate;
34 std::vector<ShowRoute> *route_list,
int count);
37 bool longer_match,
bool shorter_match);
38 bool match(
const std::string &expected,
const std::string &actual);
61 std::vector<ShowRouteTable> *route_table_list);
72 #endif // SRC_BGP_BGP_SHOW_HANDLER_H__
static const uint32_t kUnitTestMaxCount
static RequestPipeline::InstData * CreateData(int stage)
contrail::regex prefix_expr_
static const uint32_t kMaxCount
ShowRouteHandler(const ShowRouteReq *req, int inst_id)
static void CallbackS2Common(const ShowRouteReq *req, const RequestPipeline::PipeSpec ps, ShowRouteResp *resp)
const ShowRouteReq * req_
static bool CallbackS1(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)
bool match(const std::string &expected, const std::string &actual)
static std::string SaveContextAndPopLast(const ShowRouteReq *req, std::vector< ShowRouteTable > *route_table_list)
static uint32_t GetMaxCount(bool test_mode)
static bool CallbackS2Iterate(const Sandesh *sr, const RequestPipeline::PipeSpec ps, int stage, int instNum, RequestPipeline::InstData *data)
static bool CallbackS1Common(const ShowRouteReq *req, int inst_id, ShowRouteData *mydata)
static bool ConvertReqIterateToReq(const ShowRouteReqIterate *req_iterate, ShowRouteReq *req)
bool MatchPrefix(const std::string &expected_prefix, BgpRoute *route, bool longer_match, bool shorter_match)
static bool CallbackS2(const Sandesh *sr, const RequestPipeline::PipeSpec &ps, int stage, int instNum, RequestPipeline::InstData *data)
static uint32_t GetMaxRouteCount(const ShowRouteReq *req)
static char kIterSeparator[]
std::vector< ShowRouteTable > route_table_list
void BuildShowRouteTable(BgpTable *table, std::vector< ShowRoute > *route_list, int count)