summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-28 23:00:49 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-05-28 23:20:59 +0900
commitdf6c998bc1718e093aabdeab6ef0f857ccc229d1 (patch)
tree3c8699bbf01a0abf0515ddd81640e1054f624d23 /table
parentff09df9841485e6dec5ac228d6c1a55c1f2e5245 (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.go6
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 {