mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-05 14:02:56 +00:00
![]() A user can configure static SIDs as follows: [...] segment-routing srv6 static-sids sid fcbb:bbbb:1::/48 locator MAIN behavior uN sid fcbb:bbbb:1:fe00::/64 locator MAIN behavior uDT46 [...] When the user runs vtysh and executes the `no srv6` command, the expectation is that staticd will deallocate all SIDs. However, currently FRR does not behaves as expected. After the user executes `no srv6`, the SIDs are still present. The problem is that vtysh does not forward the `no srv6` command to mgmtd/staticd. The `no srv6` command is defined using the `DEFUN_YANG_NOSH` macro, which instructs `xref2vtysh.py` to skip the `no srv6` command during the generation of `vtysh_cmd.c`. As a result, vtysh is unaware that it should forward the `no srv6` command to mgmtd/staticd. This commit fixes the issue by replacing `DEFUN_YANG_NOSH` with `DEFUN_YANG`. This change ensures that `xref2vtysh.py` includes the `no srv6` command when generating `vtysh_cmd.c` and makes vtysh forward the `no srv6` command to mgmtd/staticd. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
static_bfd.c | ||
static_debug.c | ||
static_debug.h | ||
static_main.c | ||
static_nb_config.c | ||
static_nb.c | ||
static_nb.h | ||
static_nht.c | ||
static_nht.h | ||
static_routes.c | ||
static_routes.h | ||
static_srv6.c | ||
static_srv6.h | ||
static_vrf.c | ||
static_vrf.h | ||
static_vty.c | ||
static_vty.h | ||
static_zebra.c | ||
static_zebra.h | ||
subdir.am |