summaryrefslogtreecommitdiffstats
path: root/bfdd/bfdd_cli.c
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2024-10-03 13:08:43 +0200
committerLouis Scalbert <louis.scalbert@6wind.com>2024-10-03 13:09:56 +0200
commitb5a23c029c8cd924b4f964620f340b5981ad7f6b (patch)
treea42fa21755ece097bc74aa794d251be02c7bc825 /bfdd/bfdd_cli.c
parentMerge pull request #16978 from donaldsharp/dmed_deselect_not_used (diff)
downloadfrr-b5a23c029c8cd924b4f964620f340b5981ad7f6b.tar.xz
frr-b5a23c029c8cd924b4f964620f340b5981ad7f6b.zip
bfdd: add no variants to all configurations
Continue the work of b70835d690 ("bfdd: add no variants to interval configurations") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to '')
-rw-r--r--bfdd/bfdd_cli.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/bfdd/bfdd_cli.c b/bfdd/bfdd_cli.c
index e51aa21b4..2e213a223 100644
--- a/bfdd/bfdd_cli.c
+++ b/bfdd/bfdd_cli.c
@@ -338,11 +338,12 @@ void bfd_cli_show_minimum_ttl(struct vty *vty, const struct lyd_node *dnode,
DEFPY_YANG(
bfd_peer_mult, bfd_peer_mult_cmd,
- "detect-multiplier (2-255)$multiplier",
+ "[no] detect-multiplier ![(2-255)$multiplier]",
+ NO_STR
"Configure peer detection multiplier\n"
"Configure peer detection multiplier value\n")
{
- nb_cli_enqueue_change(vty, "./detection-multiplier", NB_OP_MODIFY,
+ nb_cli_enqueue_change(vty, "./detection-multiplier", no ? NB_OP_DESTROY : NB_OP_MODIFY,
multiplier_str);
return nb_cli_apply_changes(vty, NULL);
}
@@ -576,7 +577,8 @@ void bfd_cli_show_profile(struct vty *vty, const struct lyd_node *dnode,
}
ALIAS_YANG(bfd_peer_mult, bfd_profile_mult_cmd,
- "detect-multiplier (2-255)$multiplier",
+ "[no] detect-multiplier ![(2-255)$multiplier]",
+ NO_STR
"Configure peer detection multiplier\n"
"Configure peer detection multiplier value\n")
@@ -619,7 +621,8 @@ ALIAS_YANG(bfd_peer_echo, bfd_profile_echo_cmd,
"Configure echo mode\n")
ALIAS_YANG(bfd_peer_echo_interval, bfd_profile_echo_interval_cmd,
- "echo-interval (10-60000)$interval",
+ "[no] echo-interval ![(10-60000)$interval]",
+ NO_STR
"Configure peer echo interval\n"
"Configure peer echo interval value in milliseconds\n")