summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-10 16:55:35 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-10 05:57:39 +0900
commit808331b0f4208c15cffbd8ea235c35a79e37e5a0 (patch)
tree58c1b92337fa5fc116c19fde068d3b2516256711 /server/peer.go
parent515e2a5188538483a5819c0afa11e04ea1a1c16a (diff)
docs: add comment for dubious code
[ci skip] Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go
index 8d517dee..4ed46bbf 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -169,6 +169,13 @@ func (peer *Peer) processOutgoingPaths(paths, withdrawals []*table.Path) []*tabl
}
outgoing := make([]*table.Path, 0, len(paths))
+ // Note: multiple paths having the same prefix could exist the
+ // withdrawals list in the case of Route Server setup with
+ // import policies modifying paths. In such case, gobgp sends
+ // duplicated update messages; withdraw messages for the same
+ // prefix.
+ // However, currently we don't support local path for Route
+ // Server setup so this is NOT the case.
for _, path := range withdrawals {
if path.IsLocal() {
if _, ok := peer.fsm.rfMap[path.GetRouteFamily()]; ok {