From e7640f388538cba10bf954460315c7c9fac22d04 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Wed, 26 Feb 2025 10:17:56 +0100 Subject: [PATCH] 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 --- staticd/static_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 6e9087363d..dd57bfa173 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -1190,7 +1190,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") { -- 2.39.5