]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_network.c
bgpd: Give better debug message when configuration is being read in
[mirror_frr.git] / bgpd / bgp_network.c
index df67e2a72c7fa69d7d2b29827f35f0cbc38ecdbb..1c2e686e1c87c0f583027bf63a7f05c836d67824 100644 (file)
@@ -506,10 +506,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;
        }