summaryrefslogtreecommitdiffhomepage
path: root/server/mrt.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-26 18:15:03 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-26 18:15:03 +0900
commiteef1fc0a7529a2ee12c822af1b393906cd114ef9 (patch)
treed3ea1183f2f3d162b59b0c3197a8969dbcd6aaf6 /server/mrt.go
parent982a5b448f5ba99033911cdcaeebeeb8c2ed81fa (diff)
add RemoteRouterId to config.NeighborState
Stop using config.NeighborState's Description in a hacky way for the remote Router Id. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/mrt.go')
-rw-r--r--server/mrt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/mrt.go b/server/mrt.go
index b92ce293..06537817 100644
--- a/server/mrt.go
+++ b/server/mrt.go
@@ -104,7 +104,7 @@ func (m *mrtWriter) loop() error {
t := uint32(time.Now().Unix())
peers := make([]*mrt.Peer, 0, len(m.Neighbor))
for _, pconf := range m.Neighbor {
- peers = append(peers, mrt.NewPeer(pconf.State.Description, pconf.Config.NeighborAddress, pconf.Config.PeerAs, true))
+ peers = append(peers, mrt.NewPeer(pconf.State.RemoteRouterId, pconf.Config.NeighborAddress, pconf.Config.PeerAs, true))
}
if bm, err := mrt.NewMRTMessage(t, mrt.TABLE_DUMPv2, mrt.PEER_INDEX_TABLE, mrt.NewPeerIndexTable(m.RouterId, "", peers)); err != nil {
break