浏览代码

Merge pull request #1220 from mrjana/overlay

Do not plumb local peers as remote peers
Alessandro Boch 9 年之前
父节点
当前提交
b85caa0cfd
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      libnetwork/drivers/overlay/joinleave.go

+ 6 - 0
libnetwork/drivers/overlay/joinleave.go

@@ -138,6 +138,12 @@ func (d *driver) EventNotify(etype driverapi.EventType, nid, tableName, key stri
 		return
 	}
 
+	// Ignore local peers. We already know about them and they
+	// should not be added to vxlan fdb.
+	if peer.TunnelEndpointIP == d.bindAddress {
+		return
+	}
+
 	addr, err := types.ParseCIDR(peer.EndpointIP)
 	if err != nil {
 		log.Errorf("Invalid peer IP %s received in event notify", peer.EndpointIP)