mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-31 03:08:23 +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. */
|
/* Process the route. */
|
||||||
if (attr) {
|
if (attr) {
|
||||||
bgp_update(peer, (struct prefix *)&p, addpath_id, attr, afi,
|
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);
|
0, 0, NULL);
|
||||||
} else {
|
} else {
|
||||||
bgp_withdraw(peer, (struct prefix *)&p, addpath_id, afi, safi,
|
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);
|
NULL);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user