diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-08-17 16:50:58 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-19 13:29:33 +0900 |
commit | 79ed96fdc1a171de4b13108c7ca9c154d6d7fcd4 (patch) | |
tree | bfd691f15f5a369d1717112cc95d61cf19d843a4 /server/peer.go | |
parent | c14a63575c62addaf96c78f4de9aef6e3c430f0f (diff) |
table: fix best path selection which considers local asn
TableManager.localAsn wasn't used.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go index 1d77ed51..70d464ec 100644 --- a/server/peer.go +++ b/server/peer.go @@ -63,6 +63,7 @@ func NewPeer(g config.Global, conf config.Neighbor) *Peer { } peer.peerInfo = &table.PeerInfo{ AS: conf.NeighborConfig.PeerAs, + LocalAS: g.GlobalConfig.As, LocalID: g.GlobalConfig.RouterId, Address: conf.NeighborConfig.NeighborAddress, } |