Merge pull request #10908 from donaldsharp/proto_only_error

zebra: When `zebra nexthop proto only` limit errors
This commit is contained in:
mobash-rasool 2022-04-19 21:27:29 +05:30 committed by GitHub
commit 16b5065b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3002,6 +3002,8 @@ void zebra_nhg_dplane_result(struct zebra_dplane_ctx *ctx)
nhe->zapi_session, nhe->id,
ZAPI_NHG_FAIL_INSTALL);
if (!(zebra_nhg_proto_nexthops_only() &&
!PROTO_OWNED(nhe)))
flog_err(
EC_ZEBRA_DP_INSTALL_FAIL,
"Failed to install Nexthop ID (%u) into the kernel",