Merge pull request #16410 from pguibert6WIND/show_zebra_dplane_nexthop

zebra: add nexthop counter to 'show zebra dplane' command
This commit is contained in:
Russ White 2024-07-23 16:42:41 -04:00 committed by GitHub
commit aa9d66e922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);