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 <cscarpit@cisco.com>
This commit is contained in:
Carmine Scarpitta 2025-02-26 10:17:56 +01:00
parent 598eaf37f8
commit e7640f3885

View File

@ -1190,7 +1190,7 @@ DEFUN_YANG_NOSH (no_static_srv6, no_static_srv6_cmd,
return nb_cli_apply_changes(vty, "%s", xpath); 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", "static-sids",
"Segment Routing SRv6 SIDs\n") "Segment Routing SRv6 SIDs\n")
{ {