Skip to content

Commit

Permalink
OriginVn in show route
Browse files Browse the repository at this point in the history
Skip deriving origin vn if already calculated from extCommunity

Change-Id: I617d35d1cf7e027ce62c914597e7c858a6a77efb
Related-bug: #1500698
  • Loading branch information
bailkeri committed Feb 8, 2016
1 parent 56fb70a commit e603371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bgp/bgp_route.cc
Expand Up @@ -485,7 +485,7 @@ void BgpRoute::FillRouteInfo(const BgpTable *table,
if (attr->ext_community()) {
FillRoutePathExtCommunityInfo(table, attr->ext_community(), &srp);
}
if (!table->IsVpnTable() && path->IsVrfOriginated()) {
if (srp.get_origin_vn().empty() && !table->IsVpnTable() && path->IsVrfOriginated()) {
srp.set_origin_vn(ri->GetVirtualNetworkName());
}
if (attr->origin_vn_path()) {
Expand Down

0 comments on commit e603371

Please sign in to comment.