mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 16:06:20 +00:00
bgpd: When receiving a label, store it
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
c45a9dabe2
commit
dcaba9ca93
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user