From 4bfd054a1cd1ed7fd21370722812553f489919be Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 3 Nov 2023 16:35:45 +0000 Subject: [PATCH] zebra: Add v6_rr_semantics status to `show zebra` The v6_rr_semantics variable was being set but never reported and had to be inferred from watching netlink messages to the kernel. Let's add a bit of code to `show zebra` so that we can know how it is being used. Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index d36c2f81c789..e7a59b47004a 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -4047,7 +4047,8 @@ DEFUN (show_zebra, ttable_add_row(table, "MPLS|%s", mpls_enabled ? "On" : "Off"); ttable_add_row(table, "EVPN|%s", is_evpn_enabled() ? "On" : "Off"); ttable_add_row(table, "Kernel socket buffer size|%d", rcvbufsize); - + ttable_add_row(table, "v6 Route Replace Semantics|%s", + v6_rr_semantics ? "Replace" : "Delete than Add"); #ifdef GNU_LINUX if (!vrf_is_backend_netns())