mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 18:13:28 +00:00
OSPF: Fix zlog_warn to zlog_debug in some unlikely scenarios
When there is an OSPF missconfiguration, do not zlog_warn the fact as that it would quickly overwhelm any log file. Ticket: CM-7534 Reviewed by: CCR-3756 Testing: See bug Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
301d65c0ba
commit
a81bede2d5
@ -1765,10 +1765,11 @@ ospf_ls_upd (struct ospf *ospf, struct ip *iph, struct ospf_header *ospfh,
|
||||
/* Check neighbor state. */
|
||||
if (nbr->state < NSM_Exchange)
|
||||
{
|
||||
zlog_warn ("Link State Update: "
|
||||
"Neighbor[%s] state %s is less than Exchange",
|
||||
inet_ntoa (ospfh->router_id),
|
||||
LOOKUP(ospf_nsm_state_msg, nbr->state));
|
||||
if (IS_DEBUG_OSPF (nsm, NSM_EVENTS))
|
||||
zlog_debug ("Link State Update: "
|
||||
"Neighbor[%s] state %s is less than Exchange",
|
||||
inet_ntoa (ospfh->router_id),
|
||||
LOOKUP(ospf_nsm_state_msg, nbr->state));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2129,10 +2130,11 @@ ospf_ls_ack (struct ip *iph, struct ospf_header *ospfh,
|
||||
|
||||
if (nbr->state < NSM_Exchange)
|
||||
{
|
||||
zlog_warn ("Link State Acknowledgment: "
|
||||
"Neighbor[%s] state %s is less than Exchange",
|
||||
inet_ntoa (ospfh->router_id),
|
||||
LOOKUP(ospf_nsm_state_msg, nbr->state));
|
||||
if (IS_DEBUG_OSPF (nsm, NSM_EVENTS))
|
||||
zlog_debug ("Link State Acknowledgment: "
|
||||
"Neighbor[%s] state %s is less than Exchange",
|
||||
inet_ntoa (ospfh->router_id),
|
||||
LOOKUP(ospf_nsm_state_msg, nbr->state));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user