Skip to content

Commit

Permalink
zebra: Add v6_rr_semantics status to show zebra
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
donaldsharp committed Nov 3, 2023
1 parent ad44b54 commit 4bfd054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zebra/zebra_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 4bfd054

Please sign in to comment.