summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-12 10:12:12 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-14 02:15:47 +0000
commit1e22e529c92fe7b2e1576ceea96d827f16a76654 (patch)
tree587c27db5caad26185ff6e0c0aff126b21fe1b2d /server/peer.go
parentc4ced97e76f12d5c37721c107e61147edb4254d7 (diff)
config/api: create admin-state type
align with session-state Signed-off-by: Wataru Ishida <ishida.wataru@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 e7fa290b..05018f89 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -525,7 +525,7 @@ func (peer *Peer) ToConfig() *config.Neighbor {
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()
+ conf.State.AdminState = config.IntToAdminStateMap[int(peer.fsm.adminState)]
if peer.fsm.state == bgp.BGP_FSM_ESTABLISHED {
rfList := peer.configuredRFlist()