From efb90d8bd15d3f54144b8bc71fdd76dba2310408 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 26 Dec 2024 17:33:03 +0200 Subject: [PATCH] isisd: Allow full `no` form for `domain-password` and `area-password` Before: ``` LR1.wue3(config)# router isis VyOS LR1.wue3(config-router)# no area-password clear % Unknown command: no area-password clear LR1.wue3(config-router)# no area-password clear foo % Unknown command: no area-password clear foo LR1.wue3(config-router)# ``` Closes https://github.com/FRRouting/frr/issues/17722 Signed-off-by: Donatas Abraitis (cherry picked from commit a696547d6c78d4140649f96d6bef9a335fe5dfa5) --- isisd/isis_cli.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c index 7c7a8d238941..a6cacd641bba 100644 --- a/isisd/isis_cli.c +++ b/isisd/isis_cli.c @@ -622,10 +622,17 @@ DEFPY_YANG(domain_passwd, domain_passwd_cmd, } DEFPY_YANG(no_area_passwd, no_area_passwd_cmd, - "no $cmd", + "no $cmd [$pwd_type WORD$pwd [authenticate snp $snp]]", NO_STR "Configure the authentication password for an area\n" - "Set the authentication password for a routing domain\n") + "Set the authentication password for a routing domain\n" + "Clear-text authentication type\n" + "MD5 authentication type\n" + "Level-wide password\n" + "Authentication\n" + "SNP PDUs\n" + "Send but do not check PDUs on receiving\n" + "Send and check PDUs on receiving\n") { nb_cli_enqueue_change(vty, ".", NB_OP_DESTROY, NULL);