summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager.go
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-03-24 19:38:27 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-24 19:38:27 +0900
commit8fb175eb2c3079613a7970e85d1648207c9d829b (patch)
treeabb0646208b9d4598a60aab0f04878599e9978c0 /table/table_manager.go
parent8d7b670b4ff6cab9e7065ed869b94e42446ecb93 (diff)
policy: add prefix filter
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager.go')
-rw-r--r--table/table_manager.go10
1 files changed, 5 insertions, 5 deletions
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)
}