diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-05-13 17:55:14 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2020-09-28 12:40:59 -0400 |
| commit | cd53e3a6e6fd4dd9319fad0222b97fc564e9cb4c (patch) | |
| tree | e5eb11711181883518b9f30e02df3e30d7ae6d42 | |
| parent | ac5d1091dcb62484bf432e80023fa55239fc0d84 (diff) | |
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 <sworley@cumulusnetworks.com>
| -rw-r--r-- | zebra/zapi_msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
