From 25f1152dafdc785352e19d0893aa9007f279045c Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 6 Mar 2015 22:11:04 +0900 Subject: server: remove rf in ServerMsg Signed-off-by: FUJITA Tomonori --- table/table_manager.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'table') 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) } -- cgit v1.2.3