diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-17 00:11:08 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-17 00:11:08 +0900 |
commit | fe3a7e226622a58d746a199b96cc938c39f9445b (patch) | |
tree | ca27c8fd9dacbba28d4e677db0f772cc39826e8c /table | |
parent | 1ee4e65bc9ed53887c9c835dfbb22d3b7817d71c (diff) |
cli: update show neighbors output
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-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) |