Skip to content

Commit

Permalink
bgpd: When receiving a label, store it
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Dec 12, 2023
1 parent c45a9da commit dcaba9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_evpn_mh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,11 +1224,11 @@ int bgp_evpn_type1_route_process(struct peer *peer, afi_t afi, safi_t safi,
/* Process the route. */
if (attr) {
bgp_update(peer, (struct prefix *)&p, addpath_id, attr, afi,
safi, ZEBRA_ROUTE_BGP, BGP_ROUTE_NORMAL, &prd, NULL,
safi, ZEBRA_ROUTE_BGP, BGP_ROUTE_NORMAL, &prd, &label,
0, 0, NULL);
} else {
bgp_withdraw(peer, (struct prefix *)&p, addpath_id, afi, safi,
ZEBRA_ROUTE_BGP, BGP_ROUTE_NORMAL, &prd, NULL, 0,
ZEBRA_ROUTE_BGP, BGP_ROUTE_NORMAL, &prd, &label, 0,
NULL);
}
return 0;
Expand Down

0 comments on commit dcaba9c

Please sign in to comment.