summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/table/table_manager.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-09-12 23:13:44 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-09-17 21:11:05 +0900
commit589fdea311c69ad92f9ded519a0f8c99320a47dc (patch)
treee41b67248118b142da0b617f1057e8ef1021196d /internal/pkg/table/table_manager.go
parent21093fbc8739d0a8e4f84ec6e52c98dad0894612 (diff)
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 <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal/pkg/table/table_manager.go')
-rw-r--r--internal/pkg/table/table_manager.go2
1 files changed, 1 insertions, 1 deletions
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)