Merge pull request #12877 from FRRouting/mergify/bp/dev/8.5/pr-12869

bgpd: Give better debug message when configuration is being read in (backport #12869)
This commit is contained in:
Jafar Al-Gharaibeh 2023-02-22 22:50:23 -06:00 committed by GitHub
commit 14b045053f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,10 +521,16 @@ static void bgp_accept(struct thread *thread)
* is shutdown.
*/
if (BGP_PEER_START_SUPPRESSED(peer1)) {
if (bgp_debug_neighbor_events(peer1))
zlog_debug(
"[Event] Incoming BGP connection rejected from %s due to maximum-prefix or shutdown",
peer1->host);
if (bgp_debug_neighbor_events(peer1)) {
if (peer1->shut_during_cfg)
zlog_debug(
"[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);
return;
}