summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6_vty.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2024-03-22 18:19:36 +0100
committerCarmine Scarpitta <cscarpit@cisco.com>2024-06-13 14:54:16 +0200
commitbf10e4437e476c8550f4f146d34cce0828445a5e (patch)
treef46ac62588852762bff2fb9a20fd357b64f545da /zebra/zebra_srv6_vty.c
parent51d3cd8a007d5c2ad6bb27af404f2d95164cf4c2 (diff)
zebra: Add support for SRv6 SID blocks
An SRv6 block is an IPv6 prefix from which SIDs are allocated. This commit adds support for SRv6 SID blocks. Specifically, it adds a data structure to store information about an SRv6 block (e.g., its occupancy status, which SIDs have been allocated and which are available, which SID format is used for that block, etc.). It also adds some functions to manage the block (allocate / free / lookup). These functions will be used in the next commits to support the allocation of SIDs from a block in the SID Manager. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'zebra/zebra_srv6_vty.c')
-rw-r--r--zebra/zebra_srv6_vty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c
index e5fe0d58a9..963b528b86 100644
--- a/zebra/zebra_srv6_vty.c
+++ b/zebra/zebra_srv6_vty.c
@@ -833,8 +833,7 @@ static int zebra_sr_config(struct vty *vty)
format->config.uncompressed
.explicit_start);
}
- if (format->type ==
- SRV6_SID_FORMAT_TYPE_COMPRESSED_USID) {
+ if (format->type == SRV6_SID_FORMAT_TYPE_USID) {
vty_out(vty, " format %s\n", format->name);
if (format->config.usid.lib_start !=
SRV6_SID_FORMAT_USID_F3216_LIB_START)