mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
table: fix the number of accepted
Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ func (adj *AdjRib) Update(pathList []*Path) {
|
||||
if path.IsWithdraw {
|
||||
if found {
|
||||
delete(adj.table[rf], key)
|
||||
if old.Filtered(adj.id) > POLICY_DIRECTION_NONE {
|
||||
if old.Filtered(adj.id) == POLICY_DIRECTION_NONE {
|
||||
adj.accepted[rf]--
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user