mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 15:33:56 +00:00
zebra: add block/node/arg len to zebra sr config
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>
This commit is contained in:
parent
8bea07e49f
commit
780c13eb8d
@ -365,9 +365,18 @@ static int zebra_sr_config(struct vty *vty)
|
|||||||
vty_out(vty, " locator %s\n", locator->name);
|
vty_out(vty, " locator %s\n", locator->name);
|
||||||
vty_out(vty, " prefix %s/%u", str,
|
vty_out(vty, " prefix %s/%u", str,
|
||||||
locator->prefix.prefixlen);
|
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)
|
if (locator->function_bits_length)
|
||||||
vty_out(vty, " func-bits %u",
|
vty_out(vty, " func-bits %u",
|
||||||
locator->function_bits_length);
|
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, "\n");
|
||||||
vty_out(vty, " exit\n");
|
vty_out(vty, " exit\n");
|
||||||
vty_out(vty, " !\n");
|
vty_out(vty, " !\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user