summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/peer.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go
index 4160ba6e..d76dd088 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -320,7 +320,17 @@ func (peer *Peer) sendUpdateMsgFromPaths(pList []table.Path) {
peer.adjRib.UpdateOut(pList)
sendpathList := []table.Path{}
for _, p := range pList {
- if _, ok := peer.rfMap[p.GetRouteFamily()]; ok {
+ _, ok := peer.rfMap[p.GetRouteFamily()]
+
+ if peer.peerConfig.NeighborAddress.Equal(p.GetNexthop()) {
+ log.WithFields(log.Fields{
+ "Topic": "Peer",
+ "Key": peer.peerConfig.NeighborAddress,
+ }).Debugf("From me. Ignore: %s", p)
+ ok = false
+ }
+
+ if ok {
sendpathList = append(sendpathList, p)
}
}