summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/table_manager.go')
-rw-r--r--table/table_manager.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index 876ea331..be068e40 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -233,10 +233,9 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, [
return bestPaths, lostPaths, nil
}
-func (manager *TableManager) DeletePathsforPeer(peerInfo *PeerInfo) ([]Path, []Path, error) {
- destinationList := manager.Tables[peerInfo.RF].DeleteDestByPeer(peerInfo)
+func (manager *TableManager) DeletePathsforPeer(peerInfo *PeerInfo, rf bgp.RouteFamily) ([]Path, []Path, error) {
+ destinationList := manager.Tables[rf].DeleteDestByPeer(peerInfo)
return manager.calculate(destinationList)
-
}
func (manager *TableManager) ProcessPaths(pathList []Path) ([]Path, []Path, error) {