Skip to content

Commit

Permalink
Merge pull request #15002 from donaldsharp/bgp_evpn_label_no_delete
Browse files Browse the repository at this point in the history
bgpd: When receiving a label, store it
  • Loading branch information
riw777 authored Dec 19, 2023
2 parents 066f379 + dcaba9c commit a3388fa
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 a3388fa

Please sign in to comment.