]> git.puffer.fish Git - matthieu/frr.git/commitdiff
staticd: Convert `static-sids` command to DEFPY
authorCarmine Scarpitta <cscarpit@cisco.com>
Wed, 26 Feb 2025 09:17:56 +0000 (10:17 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 28 Feb 2025 14:16:15 +0000 (14:16 +0000)
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 <cscarpit@cisco.com>
(cherry picked from commit e7640f388538cba10bf954460315c7c9fac22d04)

staticd/static_vty.c

index f93e81e8dc057efc2ab27ff87053d7331c7f5ea4..a6bf53e5237daab112cf16473b8f1654e31a7525 100644 (file)
@@ -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")
 {