mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:16:43 +00:00
ripd: fix problems with the "ip rip authentication" command
libyang-0.16-r3 doesn't allow the creation of data nodes if their corresponding "when" statement (if any) resolves to false. This change broke the "ip rip authentication" command. This commit adapts this command so that it's not affected by the new libyang stricter validation checks. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
cd327983bd
commit
94b7ff4649
@ -829,8 +829,10 @@ DEFPY (ip_rip_authentication_mode,
|
||||
|
||||
nb_cli_enqueue_change(vty, "./authentication-scheme/mode", NB_OP_MODIFY,
|
||||
strmatch(mode, "md5") ? "md5" : "plain-text");
|
||||
nb_cli_enqueue_change(vty, "./authentication-scheme/md5-auth-length",
|
||||
NB_OP_MODIFY, value);
|
||||
if (strmatch(mode, "md5"))
|
||||
nb_cli_enqueue_change(vty,
|
||||
"./authentication-scheme/md5-auth-length",
|
||||
NB_OP_MODIFY, value);
|
||||
|
||||
return nb_cli_apply_changes(vty, "./frr-ripd:rip");
|
||||
}
|
||||
@ -852,7 +854,7 @@ DEFPY (no_ip_rip_authentication_mode,
|
||||
nb_cli_enqueue_change(vty, "./authentication-scheme/mode", NB_OP_MODIFY,
|
||||
NULL);
|
||||
nb_cli_enqueue_change(vty, "./authentication-scheme/md5-auth-length",
|
||||
NB_OP_MODIFY, NULL);
|
||||
NB_OP_DESTROY, NULL);
|
||||
|
||||
return nb_cli_apply_changes(vty, "./frr-ripd:rip");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user