From f33719f78de63f9b51d10605e99d72222410e60d Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 23 Dec 2014 05:20:31 -0800 Subject: 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 --- api/rest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/rest.go') 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 } -- cgit v1.2.3