diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-30 20:25:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-30 20:25:35 +0900 |
commit | 7e7b78e775bb40e0998418c5c294ed2668e3ea1a (patch) | |
tree | fef0f5d28ec733077ddd4115dbf7362561420302 /server/peer.go | |
parent | ebd6f9a06639df996da8e4570b8c26b664bbbc1a (diff) |
table: use Path as API instead of destination
ProcessPaths and DeletePathsforPeer API uses both Path and Destination
for outside. There is no good reason to use Destination. Let's use
Path.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/peer.go b/server/peer.go index 3ddc823a..aa3405f6 100644 --- a/server/peer.go +++ b/server/peer.go @@ -142,12 +142,10 @@ func (peer *Peer) handleREST(restReq *api.RestRequest) { } func (peer *Peer) handlePeermessage(m *message) { - - sendpath := func(pList []table.Path, wList []table.Destination) { + sendpath := func(pList []table.Path, wList []table.Path) { pathList := append([]table.Path(nil), pList...) - for _, dest := range wList { - p := dest.GetOldBestPath() + for _, p := range wList { pathList = append(pathList, p.Clone(true)) } peer.adjRib.UpdateOut(pathList) |