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>
(cherry picked from commit e7640f3885)
This commit is contained in:
Carmine Scarpitta 2025-02-26 10:17:56 +01:00 committed by Mergify
parent 3a8426fe4d
commit b44c54889c

View 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")
{