From cd53e3a6e6fd4dd9319fad0222b97fc564e9cb4c Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 13 May 2020 17:55:14 -0400 Subject: [PATCH] zebra: use the passed proto from zapi We were hard coding proto bgp for use with the NHG creation. Use the actual passed one from zapi now that it exists. Signed-off-by: Stephen Worley --- zebra/zapi_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 1c2a9fb6a7..91c04893df 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -1806,7 +1806,7 @@ static void zread_nhg_reader(ZAPI_HANDLER_ARGS) */ // TODO: Forcing AF_UNSPEC/AF_IP for now - nhe = zebra_nhg_proto_add(id, ZEBRA_ROUTE_BGP, nhg, + nhe = zebra_nhg_proto_add(id, proto, nhg, ((nhops > 1) ? AFI_UNSPEC : AFI_IP)); nexthop_group_delete(&nhg);