summaryrefslogtreecommitdiff
path: root/staticd
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2025-02-26 10:17:56 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2025-02-28 14:16:15 +0000
commitb44c54889cca02abf5b71ff67722f928efefc7a6 (patch)
tree6b195ff043957a6e8566072f8cdf11cfaad5f417 /staticd
parent3a8426fe4da6415e47c2d26c07f0cebb9e96432f (diff)
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 e7640f388538cba10bf954460315c7c9fac22d04)
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_vty.c2
1 files changed, 1 insertions, 1 deletions
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")
{