summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/peer.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-26 10:26:07 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-26 10:26:07 +0900
commit5856fe44297cb4248356671bc7a7f9c3bf17b699 (patch)
tree7a296d2057b0bbc03467e6417a3db20950281ef0 /pkg/server/peer.go
parenta472a4964087989814740ac175d12b2759394c85 (diff)
table: kill GetPathListByPeer()
when a peer is down, use paths in its adj table instead of searching for the global table. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'pkg/server/peer.go')
-rw-r--r--pkg/server/peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/peer.go b/pkg/server/peer.go
index f7b89371..7d85ec52 100644
--- a/pkg/server/peer.go
+++ b/pkg/server/peer.go
@@ -558,6 +558,6 @@ func (peer *peer) PassConn(conn *net.TCPConn) {
}
}
-func (peer *peer) DropAll(rfList []bgp.RouteFamily) {
- peer.adjRibIn.Drop(rfList)
+func (peer *peer) DropAll(rfList []bgp.RouteFamily) []*table.Path {
+ return peer.adjRibIn.Drop(rfList)
}