Merge pull request #1355 from aboch/advi

Check for advertise IP when deriving ipsec nodes
This commit is contained in:
Madhu Venugopal 2016-07-25 17:40:29 -07:00 committed by GitHub
commit 145d07fbe0
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ func (d *driver) checkEncryption(nid string, rIP net.IP, vxlanID uint32, isLocal
switch {
case isLocal:
if err := d.peerDbNetworkWalk(nid, func(pKey *peerKey, pEntry *peerEntry) bool {
if !lIP.Equal(pEntry.vtep) {
if !aIP.Equal(pEntry.vtep) {
nodes[pEntry.vtep.String()] = pEntry.vtep
}
return false