From d51ed8a97be8e984c502ab1c1018e9891d4b3fed Mon Sep 17 00:00:00 2001 From: Santhosh Manohar Date: Fri, 28 Jul 2017 15:21:54 -0700 Subject: [PATCH] Remove the error message on mac delete failure.. Deletion of the dynamic mac is expected to work only if there was active traffic with that endpoint and a dynamic entry exists. It can also age out. Hence the mac removal failing is not error. Removing it to make the debugging easier when parsing the logs. Signed-off-by: Santhosh Manohar --- libnetwork/osl/neigh_linux.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libnetwork/osl/neigh_linux.go b/libnetwork/osl/neigh_linux.go index 161ffa7beb..c105e52232 100644 --- a/libnetwork/osl/neigh_linux.go +++ b/libnetwork/osl/neigh_linux.go @@ -91,9 +91,7 @@ func (n *networkNamespace) DeleteNeighbor(dstIP net.IP, dstMac net.HardwareAddr, if nh.linkDst != "" { nlnh.LinkIndex = iface.Attrs().Index } - if err := nlh.NeighDel(nlnh); err != nil { - logrus.Warnf("Deleting bridge mac mac %s failed, %v", dstMac, err) - } + nlh.NeighDel(nlnh) } }