]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Deal with SRv6 locator instead of chunk
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 9 May 2024 13:45:10 +0000 (15:45 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Thu, 5 Sep 2024 08:59:59 +0000 (10:59 +0200)
commitfe5037b703c0d5ab38eccc13064ac86439f71d18
tree1d99510628e4d142ce8ede490648bbcfff831744
parentc50b4b9afc2a23369f1fd26e5c8bd47a412fa04f
bgpd: Deal with SRv6 locator instead of chunk

Currently, when SRv6 is enabled in BGP, BGP requests a locator chunk
from Zebra. Zebra assigns a locator chunk to BGP, and then BGP can
allocate SIDs from the locator chunk.

Recently, the implementation of SRv6 in Zebra has been improved, and a
new API has been introduced for obtaining/releasing the SIDs.

Now, the daemons no longer need to request a chunk.

Instead, the daemons interact with Zebra to obtain information about the
locator and subsequently to allocate/release the SIDs.

This commit extends BGP to use the new SRv6 API. In particular, it
removes the chunk throughout the BGP code and modifies BGP to
request/save/advertise the locator instead of the chunk.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
bgpd/bgp_mplsvpn.c
bgpd/bgp_vty.c
bgpd/bgp_zebra.c
bgpd/bgpd.c
bgpd/bgpd.h