Skip to content

Commit

Permalink
Merge "Fix introspect output for route-aggregate"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 4, 2016
2 parents 12bbf08 + e5056fa commit d2f83af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/bgp/bgp_route.cc
Expand Up @@ -438,6 +438,10 @@ void BgpRoute::FillRouteInfo(const BgpTable *table,
srp.set_protocol("StaticRoute");
} else if (path->GetSource() == BgpPath::Local) {
srp.set_protocol("Local");
} else if (path->GetSource() == BgpPath::Aggregate) {
srp.set_protocol("Aggregate");
} else if (path->GetSource() == BgpPath::ResolvedRoute) {
srp.set_protocol("ResolvedRoute");
}

const BgpPeer *bgp_peer = dynamic_cast<const BgpPeer *>(peer);
Expand Down
2 changes: 1 addition & 1 deletion src/bgp/routing-instance/show_route_aggregate.cc
Expand Up @@ -44,9 +44,9 @@ bool BgpShowHandler<ShowRouteAggregateReq, ShowRouteAggregateReqIterate,

RoutingInstanceMgr::const_name_iterator it =
rim->name_clower_bound(data->next_entry);
AggregateRouteEntriesInfo info;
for (uint32_t iter_count = 0; it != rim->name_cend(); ++it, ++iter_count) {
RoutingInstance *rinstance = it->second;
AggregateRouteEntriesInfo info;
if (FillRouteAggregateInfo(Address::INET, data->search_string, info,
rinstance)) {
data->show_list.push_back(info);
Expand Down
2 changes: 1 addition & 1 deletion src/bgp/routing-instance/show_static_route.cc
Expand Up @@ -44,9 +44,9 @@ bool BgpShowHandler<ShowStaticRouteReq, ShowStaticRouteReqIterate,

RoutingInstanceMgr::const_name_iterator it =
rim->name_clower_bound(data->next_entry);
StaticRouteEntriesInfo info;
for (uint32_t iter_count = 0; it != rim->name_cend(); ++it, ++iter_count) {
RoutingInstance *rinstance = it->second;
StaticRouteEntriesInfo info;
if (FillStaticRouteInfo(Address::INET, data->search_string, info,
rinstance)) {
data->show_list.push_back(info);
Expand Down

0 comments on commit d2f83af

Please sign in to comment.