diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-03-11 23:15:35 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-20 22:30:47 +0900 |
commit | 53730a4dfd938933b87dec0c5f11a7fdbdbb2a2a (patch) | |
tree | 4cc4960c5f19429f72478a3b1a1efcec1c4f08e3 /table/table_manager.go | |
parent | c9ec21fe3250551b0e02fa4c7dcf776996aa2af2 (diff) |
peer: don't send back routes to the source.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager.go')
-rw-r--r-- | table/table_manager.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/table/table_manager.go b/table/table_manager.go index d34e3780..23c233b1 100644 --- a/table/table_manager.go +++ b/table/table_manager.go @@ -175,7 +175,7 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, e "Owner": manager.owner, "Key": destination.getNlri().String(), "peer": newBestPath.getSource().Address, - "next_hop": newBestPath.getNexthop().String(), + "next_hop": newBestPath.GetNexthop().String(), "reason": reason, }).Debug("best path is not changed") continue @@ -196,7 +196,7 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, e "Owner": manager.owner, "Key": destination.getNlri().String(), "peer": currentBestPath.getSource().Address, - "next_hop": currentBestPath.getNexthop().String(), + "next_hop": currentBestPath.GetNexthop().String(), }).Debug("best path is lost") p := destination.getBestPath() @@ -218,7 +218,7 @@ func (manager *TableManager) calculate(destinationList []Destination) ([]Path, e "Owner": manager.owner, "Key": newBestPath.getNlri().String(), "peer": newBestPath.getSource().Address, - "next_hop": newBestPath.getNexthop(), + "next_hop": newBestPath.GetNexthop(), "reason": reason, }).Debug("new best path") |