]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Fetch actual SRv6 encap src addr on startup 12261/head
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 7 Dec 2023 17:31:37 +0000 (18:31 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Thu, 14 Dec 2023 13:58:35 +0000 (14:58 +0100)
commit223d4534cde3ec260b2f563e51b57ea1a6aff979
treec4346afe32565563fc4323ba59ae6d4e73496cad
parentfcf17cc05d9a86b3a4135fd6febd046f9930da2e
zebra: Fetch actual SRv6 encap src addr on startup

When zebra is started, someone may have configured an SRv6 encap source
address different from the default address ( :: ) in the kernel.

On startup, zebra should not assume that the actual SRv6 encap source
address is the default address ( :: ), but should retrieve the actual
source address from the kernel and put it in zebra configuration. In
other words, on startup we expect the actual SRv6 encap source
address and the configured one to be the same.

This commit makes the necessary changes to support the above.

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