summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-07-23 12:23:16 +0200
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-18 16:08:23 +0200
commitdccef1273d1787d42029fc22ff5df0f5547af49f (patch)
treed0b4add903fffcf5d0c44e36b2db69d9467edffc /bgpd/bgp_vty.c
parentbgpd: add support for per-VRF SRv6 SID (diff)
downloadfrr-dccef1273d1787d42029fc22ff5df0f5547af49f.tar.xz
frr-dccef1273d1787d42029fc22ff5df0f5547af49f.zip
bgpd: add bits length params to the SRv6 details
This commit adds "block-length", "node-length", "func-length" and "arg-length" to the output of "show bgp segment-routing srv6". Output example: rose-srv6# show bgp segment-routing srv6 locator_name: loc1 locator_chunks: - 2001:db8:1:1::/64 block-length: 40 node-length: 24 func-length: 16 arg-length: 0 [...] Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_vty.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 187e29f0c..4e2ae414f 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -9845,8 +9845,14 @@ DEFPY (show_bgp_srv6,
vty_out(vty, "locator_name: %s\n", bgp->srv6_locator_name);
vty_out(vty, "locator_chunks:\n");
- for (ALL_LIST_ELEMENTS_RO(bgp->srv6_locator_chunks, node, chunk))
+ for (ALL_LIST_ELEMENTS_RO(bgp->srv6_locator_chunks, node, chunk)) {
vty_out(vty, "- %pFX\n", &chunk->prefix);
+ vty_out(vty, " block-length: %d\n", chunk->block_bits_length);
+ vty_out(vty, " node-length: %d\n", chunk->node_bits_length);
+ vty_out(vty, " func-length: %d\n",
+ chunk->function_bits_length);
+ vty_out(vty, " arg-length: %d\n", chunk->argument_bits_length);
+ }
vty_out(vty, "functions:\n");
for (ALL_LIST_ELEMENTS_RO(bgp->srv6_functions, node, func)) {