Skip to content

Commit

Permalink
Include med in route introspect
Browse files Browse the repository at this point in the history
Change-Id: If7271accdce896a22bb5ecf68c09421eaa2fc2b8
Partial-Bug: 1548570
  • Loading branch information
Nischal Sheth committed Mar 7, 2016
1 parent acf4c45 commit 6151a7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bgp/bgp_peer.sandesh
Expand Up @@ -125,6 +125,7 @@ request sandesh ShowBgpNeighborSummaryReq {
struct ShowRoutePathBrief {
1: string protocol;
2: u32 local_preference;
6: u32 med;
3: string source;
4: string next_hop;
5: u32 label;
Expand Down Expand Up @@ -152,6 +153,7 @@ struct ShowRoutePath {
1: string protocol;
3: string last_modified;
5: u32 local_preference;
25: u32 med;
6: u32 local_as;
7: u32 peer_as;
8: string peer_router_id; // neighbor neighbor route id
Expand Down
2 changes: 2 additions & 0 deletions src/bgp/bgp_route.cc
Expand Up @@ -300,6 +300,7 @@ void BgpRoute::FillRouteInfo(const BgpTable *table,

const BgpAttr *attr = path->GetAttr();
srp.set_local_preference(attr->local_pref());
srp.set_med(attr->med());
srp.set_next_hop(attr->nexthop().to_string());
srp.set_label(path->GetLabel());
show_route_paths.push_back(srp);
Expand Down Expand Up @@ -431,6 +432,7 @@ void BgpRoute::FillRouteInfo(const BgpTable *table,
if (attr->as_path() != NULL)
srp.set_as_path(attr->as_path()->path().ToString());
srp.set_local_preference(attr->local_pref());
srp.set_med(attr->med());
srp.set_next_hop(attr->nexthop().to_string());
srp.set_label(path->GetLabel());
srp.set_flags(path->GetFlagsStringList());
Expand Down

0 comments on commit 6151a7b

Please sign in to comment.