Skip to content

Commit c2ae9e7

Browse files
pguibert6WINDdonaldsharp
authored andcommitted
zebra: add nexthop counter to 'show zebra dplane' command
The nexthop updates counter value was never displayed. Add it. > # show zebra dplane > Zebra dataplane: > Route updates: 7673010 > Route update errors: 0 > Nexthop updates: 1100 > Nexthop update errors: 0 > [..] Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
1 parent 3cc03ee commit c2ae9e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

zebra/zebra_dplane.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5984,6 +5984,14 @@ int dplane_show_helper(struct vty *vty, bool detailed)
59845984
vty_out(vty, "Zebra dataplane:\nRoute updates: %"PRIu64"\n",
59855985
incoming);
59865986
vty_out(vty, "Route update errors: %"PRIu64"\n", errs);
5987+
5988+
incoming = atomic_load_explicit(&zdplane_info.dg_nexthops_in,
5989+
memory_order_relaxed);
5990+
errs = atomic_load_explicit(&zdplane_info.dg_nexthop_errors,
5991+
memory_order_relaxed);
5992+
vty_out(vty, "Nexthop updates: %" PRIu64 "\n", incoming);
5993+
vty_out(vty, "Nexthop update errors: %" PRIu64 "\n", errs);
5994+
59875995
vty_out(vty, "Other errors : %"PRIu64"\n", other_errs);
59885996
vty_out(vty, "Route update queue limit: %"PRIu64"\n", limit);
59895997
vty_out(vty, "Route update queue depth: %"PRIu64"\n", queued);

0 commit comments

Comments
 (0)