summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_label.c
diff options
context:
space:
mode:
authorMark Stapp <mstapp@nvidia.com>2021-11-02 20:45:58 +0100
committerMark Stapp <mstapp@nvidia.com>2021-12-01 13:56:38 +0100
commit907707db480a47b6ba447af0551303c4c6be1098 (patch)
treea41df2ec0ca5f0cfa4edceabd00b6e97e6403180 /bgpd/bgp_label.c
parentMerge pull request #9878 from pguibert6WIND/resolver_vrf (diff)
downloadfrr-907707db480a47b6ba447af0551303c4c6be1098.tar.xz
frr-907707db480a47b6ba447af0551303c4c6be1098.zip
bgpd: clearer safi handling for BGP-LU route updates
Don't hide the LABELED_UNICAST safi when processing route updates; map it where necessary (to use the UNICAST table for instance). Signed-off-by: Mark Stapp <mstapp@nvidia.com>
Diffstat (limited to 'bgpd/bgp_label.c')
-rw-r--r--bgpd/bgp_label.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_label.c b/bgpd/bgp_label.c
index fa2a44516..c101cf917 100644
--- a/bgpd/bgp_label.c
+++ b/bgpd/bgp_label.c
@@ -444,8 +444,8 @@ int bgp_nlri_parse_label(struct peer *peer, struct attr *attr,
if (attr) {
bgp_update(peer, &p, addpath_id, attr, packet->afi,
- SAFI_UNICAST, ZEBRA_ROUTE_BGP,
- BGP_ROUTE_NORMAL, NULL, &label, 1, 0, NULL);
+ safi, ZEBRA_ROUTE_BGP, BGP_ROUTE_NORMAL,
+ NULL, &label, 1, 0, NULL);
} else {
bgp_withdraw(peer, &p, addpath_id, attr, packet->afi,
SAFI_UNICAST, ZEBRA_ROUTE_BGP,