8 #include "bgp/bgp_peer_internal_types.h"
28 bool BgpShowHandler<ShowRibOutStatisticsReq, ShowRibOutStatisticsReqIterate,
29 ShowRibOutStatisticsResp, ShowRibOutStatistics>::CallbackCommon(
38 for (uint32_t iter_count = 0; it1 != rim->
name_cend(); ++it1) {
40 for (RoutingInstance::RouteTableList::const_iterator it2 =
42 it2 != rtinstance->
GetTables().end(); ++it2, ++iter_count) {
50 if (iter_count >= iter_limit)
60 bool done = data->
show_list.size() >= page_limit;
61 SaveContextToData(it1->second->name(), done, data);
69 void BgpShowHandler<ShowRibOutStatisticsReq, ShowRibOutStatisticsReqIterate,
70 ShowRibOutStatisticsResp, ShowRibOutStatistics>::FillShowList(
71 ShowRibOutStatisticsResp *resp,
72 const vector<ShowRibOutStatistics> &show_list) {
73 resp->set_ribouts(show_list);
79 void ShowRibOutStatisticsReq::HandleRequest()
const {
86 ShowRibOutStatisticsReq,
87 ShowRibOutStatisticsReqIterate,
88 ShowRibOutStatisticsResp,
89 ShowRibOutStatistics>::Callback, _1, _2, _3, _4, _5);
91 ShowRibOutStatisticsReq,
92 ShowRibOutStatisticsReqIterate,
93 ShowRibOutStatisticsResp,
94 ShowRibOutStatistics>::CreateData;
96 ps.stages_.push_back(s1);
103 void ShowRibOutStatisticsReqIterate::HandleRequest()
const {
110 ShowRibOutStatisticsReq,
111 ShowRibOutStatisticsReqIterate,
112 ShowRibOutStatisticsResp,
113 ShowRibOutStatistics>::CallbackIterate, _1, _2, _3, _4, _5);
115 ShowRibOutStatisticsReq,
116 ShowRibOutStatisticsReqIterate,
117 ShowRibOutStatisticsResp,
118 ShowRibOutStatistics>::CreateData;
120 ps.stages_.push_back(s1);
std::vector< int > instances_
The TaskScheduler keeps track of what tasks are currently schedulable. When a task is enqueued it is ...
const_name_iterator name_cend()
RoutingInstanceMgr * routing_instance_mgr()
int GetTaskId(const std::string &name)
RouteTableList & GetTables()
static bool regex_match(const std::string &input, const regex ®ex)
static TaskScheduler * GetInstance()
uint32_t iter_limit() const
RoutingInstanceList::const_iterator const_name_iterator
const_name_iterator name_clower_bound(const std::string &name)
std::vector< ShowT > show_list
const std::string & name() const
std::string search_string
static bool regex_search(const std::string &input, const regex ®ex)
uint32_t page_limit() const
void FillRibOutStatisticsInfo(std::vector< ShowRibOutStatistics > *sros_list) const