bgpd: fix bgp path info for mplsvpn leaked routes so that they are correctly seen (and checked) by the rnh module in Zebra

This commit is contained in:
Anton Degtyarev 2018-11-12 06:08:17 +03:00
parent 47a2d5eb43
commit e23b9ef6d2

View File

@ -578,7 +578,7 @@ leak_update(struct bgp *bgp, /* destination bgp instance */
return bpi; return bpi;
} }
new = info_make(ZEBRA_ROUTE_BGP, BGP_ROUTE_IMPORTED, 0, new = info_make(bpi_ultimate->type, bpi_ultimate->sub_type, 0,
bgp->peer_self, new_attr, bn); bgp->peer_self, new_attr, bn);
if (nexthop_self_flag) if (nexthop_self_flag)