diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-06 22:11:04 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-06 22:11:04 +0900 |
commit | 25f1152dafdc785352e19d0893aa9007f279045c (patch) | |
tree | c6c135e08528739db9024a6d677c35716875d4fd /table | |
parent | 162a6137ac625552c5e248fa36d56edf89ddd06c (diff) |
server: remove rf in ServerMsg
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/table_manager.go | 7 |
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) } |