summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-20 18:07:18 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-21 13:32:37 +0900
commit92012ee629d2d36f51c3fe646cdf5b94c7823078 (patch)
tree44d4bf184437bf481b0d74575fc40147c3f7b5ca /server/server.go
parentfb83e41aebfa0b51c5e454d1f77870513d47e82d (diff)
table: Destination's Calculate doesn't need to return newly added paths
Nobody uses them. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go
index 61e52a45..c774e47e 100644
--- a/server/server.go
+++ b/server/server.go
@@ -668,7 +668,7 @@ func (server *BgpServer) propagateUpdate(peer *Peer, pathList []*table.Path) ([]
ids = append(ids, targetPeer.TableID())
}
}
- best, _, withdrawn = rib.ProcessPaths(ids, append(pathList, moded...))
+ best, withdrawn = rib.ProcessPaths(ids, append(pathList, moded...))
} else {
for idx, path := range pathList {
path = server.policy.ApplyPolicy(table.GLOBAL_RIB_NAME, table.POLICY_DIRECTION_IMPORT, path, nil)
@@ -715,7 +715,7 @@ func (server *BgpServer) propagateUpdate(peer *Peer, pathList []*table.Path) ([]
}
}
alteredPathList = pathList
- best, _, withdrawn = rib.ProcessPaths([]string{table.GLOBAL_RIB_NAME}, pathList)
+ best, withdrawn = rib.ProcessPaths([]string{table.GLOBAL_RIB_NAME}, pathList)
if len(best[table.GLOBAL_RIB_NAME]) == 0 {
return nil, alteredPathList
}