mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 21:20:48 +00:00
Merge pull request #12869 from donaldsharp/cleanup_debug_log
bgpd: Give better debug message when configuration is being read in
This commit is contained in:
commit
ee0aaff4bc
@ -506,10 +506,16 @@ static void bgp_accept(struct thread *thread)
|
|||||||
* is shutdown.
|
* is shutdown.
|
||||||
*/
|
*/
|
||||||
if (BGP_PEER_START_SUPPRESSED(peer1)) {
|
if (BGP_PEER_START_SUPPRESSED(peer1)) {
|
||||||
if (bgp_debug_neighbor_events(peer1))
|
if (bgp_debug_neighbor_events(peer1)) {
|
||||||
zlog_debug(
|
if (peer1->shut_during_cfg)
|
||||||
"[Event] Incoming BGP connection rejected from %s due to maximum-prefix or shutdown",
|
zlog_debug(
|
||||||
peer1->host);
|
"[Event] Incoming BGP connection rejected from %s due to configuration being currently read in",
|
||||||
|
peer1->host);
|
||||||
|
else
|
||||||
|
zlog_debug(
|
||||||
|
"[Event] Incoming BGP connection rejected from %s due to maximum-prefix or shutdown",
|
||||||
|
peer1->host);
|
||||||
|
}
|
||||||
close(bgp_sock);
|
close(bgp_sock);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user