diff options
| author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-07-23 01:50:32 +0200 | 
|---|---|---|
| committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-18 15:37:25 +0200 | 
| commit | 780c13eb8d806faa5a9efe98e9ad62c56d9d16ee (patch) | |
| tree | b83c3cc7da299929d098822c5f14195d456a1699 /zebra/zebra_srv6_vty.c | |
| parent | 8bea07e49f883782907e3d74b4598903abf8e58c (diff) | |
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>
Diffstat (limited to 'zebra/zebra_srv6_vty.c')
| -rw-r--r-- | zebra/zebra_srv6_vty.c | 9 | 
1 files changed, 9 insertions, 0 deletions
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");  | 
