mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
ospfd: permit over-write of message-digest-key
Allow over-write of message-digest-key interface config. Most attributes handle multi-instance by ... ignoring instances, and tolerating repeated config: do the same for md5 auth. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
964788a11f
commit
519b14645e
@ -7865,10 +7865,9 @@ DEFUN (ip_ospf_message_digest_key,
|
|||||||
}
|
}
|
||||||
|
|
||||||
key_id = strtol(keyid, NULL, 10);
|
key_id = strtol(keyid, NULL, 10);
|
||||||
if (ospf_crypt_key_lookup(params->auth_crypt, key_id) != NULL) {
|
|
||||||
vty_out(vty, "OSPF: Key %d already exists\n", key_id);
|
/* Remove existing key, if any */
|
||||||
return CMD_WARNING;
|
ospf_crypt_key_delete(params->auth_crypt, key_id);
|
||||||
}
|
|
||||||
|
|
||||||
ck = ospf_crypt_key_new();
|
ck = ospf_crypt_key_new();
|
||||||
ck->key_id = (uint8_t)key_id;
|
ck->key_id = (uint8_t)key_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user