]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Alloc/Release SIDs to daemons upon request
authorCarmine Scarpitta <cscarpit@cisco.com>
Sat, 23 Mar 2024 16:25:39 +0000 (17:25 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Thu, 13 Jun 2024 12:54:16 +0000 (14:54 +0200)
commit84dd482cb929d522cf12c91c2e7ec1faead848ea
treec3b8127bc3892c545a366c8435e64cb2ef547589
parentc570d2bcaec477167d613d1b2bf57021200d1f89
zebra: Alloc/Release SIDs to daemons upon request

Previous commits introduced two new ZAPI operations,
`ZEBRA_SRV6_MANAGER_GET_SRV6_SID` and
`ZEBRA_SRV6_MANAGER_RELEASE_SRV6_SID`. These operations allow a daemon
to interact with the SRv6 SID Manager to get and release an SRv6 SID,
respectively.

This commit extends the SID Manager by adding logic to process the
requests `ZEBRA_SRV6_MANAGER_GET_SRV6_SID` and
`ZEBRA_SRV6_MANAGER_RELEASE_SRV6_SID`, and allocate/release SIDs to
requesting daemons.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
zebra/zapi_msg.c
zebra/zebra_srv6.c
zebra/zebra_srv6.h