Skip to content

Commit

Permalink
Merge pull request #16410 from pguibert6WIND/show_zebra_dplane_nexthop
Browse files Browse the repository at this point in the history
zebra: add nexthop counter to 'show zebra dplane' command
  • Loading branch information
riw777 authored Jul 23, 2024
2 parents ea5498e + e36e570 commit aa9d66e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zebra/zebra_dplane.c
Original file line number Diff line number Diff line change
Expand Up @@ -6003,6 +6003,14 @@ int dplane_show_helper(struct vty *vty, bool detailed)
vty_out(vty, "Zebra dataplane:\nRoute updates: %"PRIu64"\n",
incoming);
vty_out(vty, "Route update errors: %"PRIu64"\n", errs);

incoming = atomic_load_explicit(&zdplane_info.dg_nexthops_in,
memory_order_relaxed);
errs = atomic_load_explicit(&zdplane_info.dg_nexthop_errors,
memory_order_relaxed);
vty_out(vty, "Nexthop updates: %" PRIu64 "\n", incoming);
vty_out(vty, "Nexthop update errors: %" PRIu64 "\n", errs);

vty_out(vty, "Other errors : %"PRIu64"\n", other_errs);
vty_out(vty, "Route update queue limit: %"PRIu64"\n", limit);
vty_out(vty, "Route update queue depth: %"PRIu64"\n", queued);
Expand Down

0 comments on commit aa9d66e

Please sign in to comment.