diff options
| author | Mark Stapp <mstapp@nvidia.com> | 2021-11-02 15:45:58 -0400 | 
|---|---|---|
| committer | Mark Stapp <mstapp@nvidia.com> | 2021-12-01 07:56:38 -0500 | 
| commit | 907707db480a47b6ba447af0551303c4c6be1098 (patch) | |
| tree | a41df2ec0ca5f0cfa4edceabd00b6e97e6403180 /bgpd/bgp_label.c | |
| parent | e2144103f81c5bd46f734bc94e1dbc0aebb66f6e (diff) | |
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.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_label.c b/bgpd/bgp_label.c index fa2a445165..c101cf917b 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,  | 
