diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2018-12-28 22:48:54 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2018-12-28 23:27:53 +0900 |
commit | d7e5bf22a6ef7ebbed02968d5610968e3f06cfc6 (patch) | |
tree | edfbe24fd80c7eafa035708a704b6e2ba9815b6e /pkg/server/server.go | |
parent | c83d234c308ce3b9f0d9e7b52ecfb84657e4e300 (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 'pkg/server/server.go')
-rw-r--r-- | pkg/server/server.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go index 728214f5..1f103c12 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -2517,12 +2517,12 @@ func (s *BgpServer) ListPeer(ctx context.Context, r *api.ListPeerRequest, fn fun c := afisafi.Config if c.Family != nil && c.Family.Afi == api.Family_Afi(afi) && c.Family.Safi == api.Family_Safi(safi) { flist := []bgp.RouteFamily{family} - received := uint32(peer.adjRibIn.Count(flist)) - accepted := uint32(peer.adjRibIn.Accepted(flist)) - advertised := uint32(0) + received := uint64(peer.adjRibIn.Count(flist)) + accepted := uint64(peer.adjRibIn.Accepted(flist)) + advertised := uint64(0) if getAdvertised { pathList, _ := s.getBestFromLocal(peer, flist) - advertised = uint32(len(pathList)) + advertised = uint64(len(pathList)) } p.AfiSafis[i].State = &api.AfiSafiState{ Family: c.Family, |