From 540ee758f07696cfc5f35127dd11dfcd103ebd50 Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Thu, 16 Aug 2018 15:48:57 -0700 Subject: pkg/server: handleUpdate() should not inject echo route from RR --- pkg/server/server.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'pkg/server/server.go') diff --git a/pkg/server/server.go b/pkg/server/server.go index 356ebf23..c4177ab0 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -423,21 +423,6 @@ func filterpath(peer *Peer, path, old *table.Path) *table.Path { if info.AS != peer.AS() { ignore = false } - // RFC4456 8. Avoiding Routing Information Loops - // A router that recognizes the ORIGINATOR_ID attribute SHOULD - // ignore a route received with its BGP Identifier as the ORIGINATOR_ID. - peer.fsm.lock.RLock() - routerId := peer.fsm.gConf.Config.RouterId - peer.fsm.lock.RUnlock() - if id := path.GetOriginatorID(); routerId == id.String() { - log.WithFields(log.Fields{ - "Topic": "Peer", - "Key": peer.ID(), - "OriginatorID": id, - "Data": path, - }).Debug("Originator ID is mine, ignore") - return nil - } if info.RouteReflectorClient { ignore = false } -- cgit v1.2.3