summaryrefslogtreecommitdiffhomepage
path: root/server/peer.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/peer.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/peer.go')
-rw-r--r--server/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go
index d27f96e6..f239033a 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -394,7 +394,7 @@ func (peer *Peer) ToConfig() *config.Neighbor {
}
conf.State.Capabilities.LocalList = localCap
- conf.State.Description = peer.fsm.peerInfo.ID.To4().String()
+ conf.State.RemoteRouterId = peer.fsm.peerInfo.ID.To4().String()
conf.State.SessionState = config.IntToSessionStateMap[int(peer.fsm.state)]
conf.State.AdminState = peer.fsm.adminState.String()