diff options
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go index ef08a4d8..b8bc9bcb 100644 --- a/server/peer.go +++ b/server/peer.go @@ -56,7 +56,7 @@ func NewPeer(g config.Global, conf config.Neighbor, loc *table.TableManager, pol tableId = conf.Config.NeighborAddress } peer.tableId = tableId - conf.State.SessionState = uint32(bgp.BGP_FSM_IDLE) + conf.State.SessionState = conf.State.SessionState.FromInt(int(bgp.BGP_FSM_IDLE)) conf.Timers.State.Downtime = time.Now().Unix() rfs, _ := config.AfiSafis(conf.AfiSafis).ToRfList() peer.adjRibIn = table.NewAdjRib(peer.ID(), rfs) |