summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-06 22:11:04 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-06 22:11:04 +0900
commit25f1152dafdc785352e19d0893aa9007f279045c (patch)
treec6c135e08528739db9024a6d677c35716875d4fd /table/table_manager.go
parent162a6137ac625552c5e248fa36d56edf89ddd06c (diff)
server: remove rf in ServerMsg
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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)
}