From: Carmine Scarpitta Date: Wed, 26 Feb 2025 09:17:56 +0000 (+0100) Subject: staticd: Convert `static-sids` command to DEFPY X-Git-Tag: docker/10.3.0~11^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b44c54889cca02abf5b71ff67722f928efefc7a6;p=matthieu%2Ffrr.git staticd: Convert `static-sids` command to DEFPY This commit converts the `static-sids` command from `DEFUN` to `DEFPY` to simplify the parsing of the command string definition. Signed-off-by: Carmine Scarpitta (cherry picked from commit e7640f388538cba10bf954460315c7c9fac22d04) --- diff --git a/staticd/static_vty.c b/staticd/static_vty.c index f93e81e8dc..a6bf53e523 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -1174,7 +1174,7 @@ DEFUN_YANG_NOSH (no_static_srv6, no_static_srv6_cmd, return nb_cli_apply_changes(vty, "%s", xpath); } -DEFUN_NOSH (static_srv6_sids, static_srv6_sids_cmd, +DEFPY_NOSH (static_srv6_sids, static_srv6_sids_cmd, "static-sids", "Segment Routing SRv6 SIDs\n") {