From 589fdea311c69ad92f9ded519a0f8c99320a47dc Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 12 Sep 2019 23:13:44 +0900 Subject: table: implement adj-in table use routing table structures rib and adj-in use the same data strcutures. Needs more clean up. Signed-off-by: FUJITA Tomonori --- internal/pkg/table/table_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/pkg/table/table_manager.go') diff --git a/internal/pkg/table/table_manager.go b/internal/pkg/table/table_manager.go index 55436369..aa0cd0fc 100644 --- a/internal/pkg/table/table_manager.go +++ b/internal/pkg/table/table_manager.go @@ -182,7 +182,7 @@ func (manager *TableManager) DeleteVrf(name string) ([]*Path, error) { func (tm *TableManager) update(newPath *Path) *Update { t := tm.Tables[newPath.GetRouteFamily()] t.validatePath(newPath) - dst := t.getOrCreateDest(newPath.GetNlri()) + dst := t.getOrCreateDest(newPath.GetNlri(), 64) u := dst.Calculate(newPath) if len(dst.knownPathList) == 0 { t.deleteDest(dst) -- cgit v1.2.3