summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go
index f3ed0092..126bd6a9 100644
--- a/server/server.go
+++ b/server/server.go
@@ -20,6 +20,7 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/osrg/gobgp/api"
"github.com/osrg/gobgp/config"
+ "github.com/osrg/gobgp/packet"
"net"
"os"
"strconv"
@@ -158,7 +159,7 @@ func (server *BgpServer) handleRest(restReq *api.RestRequest) {
peer, found := server.peerMap[remoteAddr]
if found {
c := peer.peerConfig
- result.NeighborState = c.BgpNeighborCommonState.State
+ result.NeighborState = bgp.FSMState(c.BgpNeighborCommonState.State).String()
result.RemoteAddr = c.NeighborAddress.String()
result.RemoteAs = c.PeerAs
} else {