diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-28 23:00:49 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-28 23:20:59 +0900 |
commit | df6c998bc1718e093aabdeab6ef0f857ccc229d1 (patch) | |
tree | 3c8699bbf01a0abf0515ddd81640e1054f624d23 /table | |
parent | ff09df9841485e6dec5ac228d6c1a55c1f2e5245 (diff) |
table: update accepted number in adj-in rib after softreset-in
update accepted number in adj-in rib after AllowOwnAs has changed.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/adj.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/table/adj.go b/table/adj.go index 9e4ce528..871a6813 100644 --- a/table/adj.go +++ b/table/adj.go @@ -73,12 +73,6 @@ func (adj *AdjRib) Update(pathList []*Path) { } } -func (adj *AdjRib) RefreshAcceptedNumber(rfList []bgp.RouteFamily) { - for _, rf := range rfList { - adj.accepted[rf] = len(adj.table[rf]) - } -} - func (adj *AdjRib) PathList(rfList []bgp.RouteFamily, accepted bool) []*Path { pathList := make([]*Path, 0, adj.Count(rfList)) for _, rf := range rfList { |