From 780c13eb8d806faa5a9efe98e9ad62c56d9d16ee Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Sat, 23 Jul 2022 01:50:32 +0200 Subject: [PATCH] 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 --- zebra/zebra_srv6_vty.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c index b9ad3821a1..1ec6d1f47f 100644 --- a/zebra/zebra_srv6_vty.c +++ b/zebra/zebra_srv6_vty.c @@ -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"); -- 2.39.5