From a7521827e1d8c964f1c9f342dc39d02f45660c49 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 21 May 2016 15:00:41 +0000 Subject: server/table: fix intra-AS RTC route distribution Signed-off-by: ISHIDA Wataru --- table/table_manager.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'table/table_manager.go') diff --git a/table/table_manager.go b/table/table_manager.go index a041c5b9..cc9784b9 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -358,3 +358,15 @@ func (manager *TableManager) GetPathList(id string, rfList []bgp.RouteFamily) [] } return paths } + +func (manager *TableManager) GetDestination(path *Path) *Destination { + if path == nil { + return nil + } + family := path.GetRouteFamily() + t, ok := manager.Tables[family] + if !ok { + return nil + } + return t.GetDestination(path.getPrefix()) +} -- cgit v1.2.3