mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #9093 from rgirada/nbr_crash
ospfd: ospfd crash while giving 'clear ip ospf neighbor'
This commit is contained in:
commit
2c4fdef90a
@ -11389,6 +11389,11 @@ DEFPY (clear_ip_ospf_neighbor,
|
|||||||
if (!ospf->oi_running)
|
if (!ospf->oi_running)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (nbr_id_str && IPV4_ADDR_SAME(&ospf->router_id, &nbr_id)) {
|
||||||
|
vty_out(vty, "Self router-id is not allowed.\r\n ");
|
||||||
|
return CMD_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
ospf_neighbor_reset(ospf, nbr_id, nbr_id_str);
|
ospf_neighbor_reset(ospf, nbr_id, nbr_id_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user