summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/config/util.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2018-12-28 22:48:54 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2018-12-28 23:27:53 +0900
commitd7e5bf22a6ef7ebbed02968d5610968e3f06cfc6 (patch)
treeedfbe24fd80c7eafa035708a704b6e2ba9815b6e /internal/pkg/config/util.go
parentc83d234c308ce3b9f0d9e7b52ecfb84657e4e300 (diff)
fix bmp statistics
fix the regression of the adj counter due to 301b48532d4a5510c9d4ffdc44eb2754fdd1a3d1 Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal/pkg/config/util.go')
-rw-r--r--internal/pkg/config/util.go16
1 files changed, 9 insertions, 7 deletions
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,