]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgp: Anti-Yammer Patch
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 21 Apr 2016 02:08:49 +0000 (22:08 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 21 Apr 2016 02:08:49 +0000 (22:08 -0400)
When you shutdown interfaces with ifdown -a -X eth0
bgp would still attempt to talk to it's configured
neighbors but since the interface is down it would
just complain and complain.  Now that we have
somewhat aggressive timers the error message
really starts to show up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
bgpd/bgp_network.c

index 4cdeaeb7d578dbebdb4a4f66a9a31843dd98666c..294410a3fd2cc7b9bab2a8314de073e9c90f34c6 100644 (file)
@@ -490,7 +490,8 @@ bgp_bind (struct peer *peer)
 
   if (ret < 0)
     {
-      zlog_info ("bind to interface %s failed", name);
+      if (bgp_debug_neighbor_events (peer))
+        zlog_debug ("bind to interface %s failed", name);
       return ret;
     }
 #endif /* SO_BINDTODEVICE */