From d7e5bf22a6ef7ebbed02968d5610968e3f06cfc6 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 28 Dec 2018 22:48:54 +0900 Subject: fix bmp statistics fix the regression of the adj counter due to 301b48532d4a5510c9d4ffdc44eb2754fdd1a3d1 Signed-off-by: FUJITA Tomonori --- internal/pkg/config/util.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'internal/pkg/config') diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go index 6d3af91b..2c2a78c8 100644 --- a/internal/pkg/config/util.go +++ b/internal/pkg/config/util.go @@ -471,13 +471,15 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer { AdminState: api.PeerState_AdminState(s.AdminState.ToInt()), Messages: &api.Messages{ Received: &api.Message{ - Notification: s.Messages.Received.Notification, - Update: s.Messages.Received.Update, - Open: s.Messages.Received.Open, - Keepalive: s.Messages.Received.Keepalive, - Refresh: s.Messages.Received.Refresh, - Discarded: s.Messages.Received.Discarded, - Total: s.Messages.Received.Total, + Notification: s.Messages.Received.Notification, + Update: s.Messages.Received.Update, + Open: s.Messages.Received.Open, + Keepalive: s.Messages.Received.Keepalive, + Refresh: s.Messages.Received.Refresh, + Discarded: s.Messages.Received.Discarded, + Total: s.Messages.Received.Total, + WithdrawUpdate: uint64(s.Messages.Received.WithdrawUpdate), + WithdrawPrefix: uint64(s.Messages.Received.WithdrawPrefix), }, Sent: &api.Message{ Notification: s.Messages.Sent.Notification, -- cgit v1.2.3