From 907707db480a47b6ba447af0551303c4c6be1098 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Tue, 2 Nov 2021 15:45:58 -0400 Subject: 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 --- bgpd/bgp_label.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bgpd/bgp_label.c') 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, -- cgit v1.2.3