From 4142dda9988d69a9e6c3d3ac098442a9309f0c67 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 8 Jan 2015 23:21:40 +0900 Subject: server: drop all paths in adj-in when peer is down Signed-off-by: FUJITA Tomonori --- table/table_manager.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'table') diff --git a/table/table_manager.go b/table/table_manager.go index 7112c0ca..1fb95f3f 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -281,6 +281,11 @@ func (adj *AdjRib) GetOutPathList(rf bgp.RouteFamily) []Path { return adj.getPathList(adj.adjRibOut[rf]) } +func (adj *AdjRib) DropAllIn(rf bgp.RouteFamily) { + // replace old one + adj.adjRibIn[rf] = make(map[string]*ReceivedRoute) +} + type ReceivedRoute struct { path Path filtered bool -- cgit v1.2.3