Skip to content

Commit 77da4c2

Browse files
rvaideeshPdoijode
authored andcommitted
zebra: zebra_nhg_install_kernel incorrectly logs delay-install connected/kernel-learnt routes
Problem: Zebra incorrectly logs error messages for connected and kernel-learnt routes using the delayed-install optimization: zebra DPlane returned an invalid result code for attempt of installation of 10\[if 2 vrfid 11\] into the kernel Fix: Handle SUCCESS case for routes with NEXTHOP_GROUP_INITIAL_DELAY_INSTALL. If NEXTHOP_GROUP_INITIAL_DELAY_INSTALL flag set -\> Expected (debug log only) Signed-off-by: Vaideesh Ravi Shankar <[email protected]>
1 parent 2007f16 commit 77da4c2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

zebra/zebra_nhg.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,6 +3490,16 @@ void zebra_nhg_install_kernel(struct nhg_hash_entry *nhe, uint8_t type)
34903490
nhe);
34913491
break;
34923492
case ZEBRA_DPLANE_REQUEST_SUCCESS:
3493+
if (CHECK_FLAG(nhe->flags, NEXTHOP_GROUP_INITIAL_DELAY_INSTALL)) {
3494+
/* Expected: delayed-install optimization */
3495+
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
3496+
zlog_debug("%s: NHG %pNG delayed-install optimization (flags 0x%x)",
3497+
__func__, nhe, nhe->flags);
3498+
} else {
3499+
flog_err(EC_ZEBRA_DP_INVALID_RC,
3500+
"DPlane returned an invalid result code for attempt of installation of %pNG into the kernel",
3501+
nhe);
3502+
}
34933503
break;
34943504
}
34953505
}

0 commit comments

Comments
 (0)