]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: add block/node/arg len to zebra sr config
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Fri, 22 Jul 2022 23:50:32 +0000 (01:50 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Tue, 18 Oct 2022 13:37:25 +0000 (15:37 +0200)
This commit adds the SRv6 locator's block length, node length and
argument length to the SRv6 configuration.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
zebra/zebra_srv6_vty.c

index b9ad3821a140582142521c355693c40751c7d702..1ec6d1f47fa31ba8f8075568f5b1f5174b23e5d2 100644 (file)
@@ -365,9 +365,18 @@ static int zebra_sr_config(struct vty *vty)
                        vty_out(vty, "   locator %s\n", locator->name);
                        vty_out(vty, "    prefix %s/%u", str,
                                locator->prefix.prefixlen);
+                       if (locator->block_bits_length)
+                               vty_out(vty, " block-len %u",
+                                       locator->block_bits_length);
+                       if (locator->node_bits_length)
+                               vty_out(vty, " node-len %u",
+                                       locator->node_bits_length);
                        if (locator->function_bits_length)
                                vty_out(vty, " func-bits %u",
                                        locator->function_bits_length);
+                       if (locator->argument_bits_length)
+                               vty_out(vty, " arg-len %u",
+                                       locator->argument_bits_length);
                        vty_out(vty, "\n");
                        vty_out(vty, "   exit\n");
                        vty_out(vty, "   !\n");