diff options
Diffstat (limited to 'table/table_manager.go')
-rw-r--r-- | table/table_manager.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/table/table_manager.go b/table/table_manager.go index 6ee96518..109cd004 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -281,6 +281,14 @@ func (adj *AdjRib) GetOutPathList(rf bgp.RouteFamily) []Path { return adj.getPathList(adj.adjRibOut[rf]) } +func (adj *AdjRib) GetInCount(rf bgp.RouteFamily) int { + return len(adj.adjRibIn[rf]) +} + +func (adj *AdjRib) GetOutCount(rf bgp.RouteFamily) int { + return len(adj.adjRibOut[rf]) +} + func (adj *AdjRib) DropAllIn(rf bgp.RouteFamily) { // replace old one adj.adjRibIn[rf] = make(map[string]*ReceivedRoute) |