diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-23 05:20:31 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-23 05:20:31 -0800 |
commit | f33719f78de63f9b51d10605e99d72222410e60d (patch) | |
tree | ef668c9187abe3f36042d01d3f12321e799054a3 /api/rest.go | |
parent | cb48c082ed63590c42ff27315e583649027241e1 (diff) |
packet: define FSMState
Then we can use stringer nicely. Now FSMstate shows nicely like:
DEBU[0081] Peer (10.0.0.1) state changed from BGP_FSM_ACTIVE to BGP_FSM_OPENSENT
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api/rest.go')
-rw-r--r-- | api/rest.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/rest.go b/api/rest.go index b4b2c314..08588e70 100644 --- a/api/rest.go +++ b/api/rest.go @@ -91,7 +91,7 @@ type RestResponseNeighbor struct { RestResponseDefault RemoteAddr string RemoteAs uint32 - NeighborState uint32 + NeighborState string UpdateCount int } |