From 8fb175eb2c3079613a7970e85d1648207c9d829b Mon Sep 17 00:00:00 2001 From: Naoto Hanaue Date: Tue, 24 Mar 2015 19:38:27 +0900 Subject: policy: add prefix filter Signed-off-by: FUJITA Tomonori --- table/table_manager.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'table/table_manager.go') diff --git a/table/table_manager.go b/table/table_manager.go index 7722ce19..90f243c2 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -177,7 +177,7 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, e "Topic": "table", "Owner": manager.owner, "Key": destination.getNlri().String(), - "peer": newBestPath.getSource().Address, + "peer": newBestPath.GetSource().Address, "next_hop": newBestPath.GetNexthop().String(), "reason": reason, }).Debug("best path is not changed") @@ -198,7 +198,7 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, e "Topic": "table", "Owner": manager.owner, "Key": destination.getNlri().String(), - "peer": currentBestPath.getSource().Address, + "peer": currentBestPath.GetSource().Address, "next_hop": currentBestPath.GetNexthop().String(), }).Debug("best path is lost") @@ -219,8 +219,8 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, e log.WithFields(log.Fields{ "Topic": "table", "Owner": manager.owner, - "Key": newBestPath.getNlri().String(), - "peer": newBestPath.getSource().Address, + "Key": newBestPath.GetNlri().String(), + "peer": newBestPath.GetSource().Address, "next_hop": newBestPath.GetNexthop(), "reason": reason, }).Debug("new best path") @@ -343,7 +343,7 @@ func (adj *AdjRib) UpdateOut(pathList []Path) { func (adj *AdjRib) getPathList(rib map[string]*ReceivedRoute) []Path { trie := patricia.NewTrie() for _, rr := range rib { - key := rr.path.getNlri().String() + key := rr.path.GetNlri().String() trie.Insert(cidr2prefix(key), rr.path) } -- cgit v1.2.3