summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6_vty.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-07-23 01:55:28 +0200
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-18 15:37:26 +0200
commitd9d3179942f41da31abda71493fce44fff2a0990 (patch)
tree812c3927005ac16bb8522a9d9efae651a8d65828 /zebra/zebra_srv6_vty.c
parent780c13eb8d806faa5a9efe98e9ad62c56d9d16ee (diff)
zebra: add missing bits len to SRv6 locator detail
This commit adds SRv6 locator's block length, node length and argument length to the output of the command "show segment-routing srv6 locator NAME detail [json]". Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'zebra/zebra_srv6_vty.c')
-rw-r--r--zebra/zebra_srv6_vty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c
index 1ec6d1f47f..09c0a9af59 100644
--- a/zebra/zebra_srv6_vty.c
+++ b/zebra/zebra_srv6_vty.c
@@ -167,8 +167,12 @@ DEFUN (show_srv6_locator_detail,
prefix2str(&locator->prefix, str, sizeof(str));
vty_out(vty, "Name: %s\n", locator->name);
vty_out(vty, "Prefix: %s\n", str);
+ vty_out(vty, "Block-Bit-Len: %u\n", locator->block_bits_length);
+ vty_out(vty, "Node-Bit-Len: %u\n", locator->node_bits_length);
vty_out(vty, "Function-Bit-Len: %u\n",
locator->function_bits_length);
+ vty_out(vty, "Argument-Bit-Len: %u\n",
+ locator->argument_bits_length);
vty_out(vty, "Chunks:\n");
for (ALL_LIST_ELEMENTS_RO((struct list *)locator->chunks, node,