mirror_frr/staticd
Carmine Scarpitta b94be4a1c5 staticd: Fix no srv6 command
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>
2025-03-01 23:24:46 +01:00
..
.gitignore staticd: Start the addition of a staticd 2018-07-29 12:37:24 -04:00
Makefile staticd: Start the addition of a staticd 2018-07-29 12:37:24 -04:00
static_bfd.c staticd: fix NB dependency hack 2024-02-02 00:57:59 +02:00
static_debug.c staticd: Add debug option for SRv6 2025-01-18 10:28:49 +00:00
static_debug.h staticd: Add debug option for SRv6 2025-01-18 10:28:49 +00:00
static_main.c staticd: Initialize/cleanup SRv6 2025-01-18 10:28:49 +00:00
static_nb_config.c staticd: Do not log uninitialized nexthop variable 2025-02-27 09:35:28 +01:00
static_nb.c staticd: Add nb callbacks to configure a nexthop for SRv6 uA behavior 2025-02-26 07:19:51 +01:00
static_nb.h staticd: Add no form for static-sids command 2025-02-27 12:17:26 +01:00
static_nht.c staticd: fix NHT for dst-src routes 2025-01-28 15:40:17 +01:00
static_nht.h staticd: fix NHT for dst-src routes 2025-01-28 15:40:17 +01:00
static_routes.c staticd: Failed to register nexthop after networking restart 2025-02-14 12:12:11 -08:00
static_routes.h staticd: add a separate function for uninstalling nexthops 2024-02-04 22:28:10 +02:00
static_srv6.c staticd: Install SIDs when a dependent interface goes up/down 2025-01-18 10:28:49 +00:00
static_srv6.h staticd: Install SIDs when a dependent interface goes up/down 2025-01-18 10:28:49 +00:00
static_vrf.c staticd: fix botched staticd YANG for dst-src 2025-01-28 15:40:17 +01:00
static_vrf.h staticd: fix NB dependency hack 2024-02-02 00:57:59 +02:00
static_vty.c staticd: Fix no srv6 command 2025-03-01 23:24:46 +01:00
static_vty.h mgmtd, staticd: output staticd configuration from mgmtd 2023-11-21 13:28:40 +02:00
static_zebra.c Merge pull request #18198 from cscarpitta/feature/srv6_staticd_ua 2025-02-26 09:52:08 -05:00
static_zebra.h staticd: Request/Release SIDs to SID Manager 2025-01-18 10:28:49 +00:00
subdir.am staticd: Add infrastructure for SRv6 2025-01-18 10:28:49 +00:00