summaryrefslogtreecommitdiff
path: root/zebra/zebra_nhg.c
diff options
context:
space:
mode:
authormobash-rasool <mobash.rasool@gmail.com>2022-04-19 21:27:29 +0530
committerGitHub <noreply@github.com>2022-04-19 21:27:29 +0530
commit16b5065b47d38d0464e81d5302445da8fbaf8fe3 (patch)
tree1e1d2354aad799b4e1e9c678df648bdc0089885c /zebra/zebra_nhg.c
parenta037a34436a7d43b7fe616e10f6c44aa6ac1a1f2 (diff)
parent1cadfaf21367e4288d33f8a2bc71be01fac7409c (diff)
Merge pull request #10908 from donaldsharp/proto_only_error
zebra: When `zebra nexthop proto only` limit errors
Diffstat (limited to 'zebra/zebra_nhg.c')
-rw-r--r--zebra/zebra_nhg.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c
index d1a34d0962..069d35c6a3 100644
--- a/zebra/zebra_nhg.c
+++ b/zebra/zebra_nhg.c
@@ -3002,10 +3002,12 @@ void zebra_nhg_dplane_result(struct zebra_dplane_ctx *ctx)
nhe->zapi_session, nhe->id,
ZAPI_NHG_FAIL_INSTALL);
- flog_err(
- EC_ZEBRA_DP_INSTALL_FAIL,
- "Failed to install Nexthop ID (%u) into the kernel",
- nhe->id);
+ 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",
+ nhe->id);
}
break;