From 3c433ae558427d06ca25eeb619503599b5f84172 Mon Sep 17 00:00:00 2001 From: Enke Chen Date: Thu, 19 Sep 2024 08:52:35 -0700 Subject: [PATCH] bgpd: fix misplaced arguments in bgp_redistribute_add() Fix the misplaced arguments "bhtype" and "api.distance" in bgp_redistribute_add(). Signed-off-by: Enke Chen --- bgpd/bgp_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 19f26e9c75..bffa5a0e6b 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -542,7 +542,7 @@ static int zebra_read_route(ZAPI_CALLBACK_ARGS) /* Now perform the add/update. */ bgp_redistribute_add(bgp, &api.prefix, &nexthop, ifindex, - nhtype, bhtype, api.distance, api.metric, + nhtype, api.distance, bhtype, api.metric, api.type, api.instance, api.tag); } else { bgp_redistribute_delete(bgp, &api.prefix, api.type, -- 2.39.5