]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: add missing bits len to SRv6 locator detail
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Fri, 22 Jul 2022 23:55:28 +0000 (01:55 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Tue, 18 Oct 2022 13:37:26 +0000 (15:37 +0200)
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>
zebra/zebra_srv6_vty.c

index 1ec6d1f47fa31ba8f8075568f5b1f5174b23e5d2..09c0a9af591edd268521c3d78b1c944cf6b00f4b 100644 (file)
@@ -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,