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.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index e7815af6..59b0a275 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -249,9 +249,10 @@ func (manager *TableManager) ProcessPaths(pathList []Path) ([]Path, []Path, erro
destinationList := make([]Destination, 0)
for _, path := range pathList {
rf := path.GetRouteFamily()
- // push Path into table
- destination := insert(manager.Tables[rf], path)
- destinationList = append(destinationList, destination)
+ if _, ok := manager.Tables[rf]; ok {
+ destination := insert(manager.Tables[rf], path)
+ destinationList = append(destinationList, destination)
+ }
}
return manager.calculate(destinationList)
}