From fa387c90650613bceaca6c6c90c8744405988f8c Mon Sep 17 00:00:00 2001 From: Eiichiro Watanabe Date: Tue, 13 Nov 2018 14:41:52 +0900 Subject: Fix Statistics Report in BMP --- cmd/gobgpd/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd/gobgpd/main.go') diff --git a/cmd/gobgpd/main.go b/cmd/gobgpd/main.go index c880b4b4..5c8f5ac5 100644 --- a/cmd/gobgpd/main.go +++ b/cmd/gobgpd/main.go @@ -216,9 +216,10 @@ func main() { } for _, c := range newConfig.BmpServers { if err := bgpServer.AddBmp(context.Background(), &api.AddBmpRequest{ - Address: c.Config.Address, - Port: c.Config.Port, - Type: api.AddBmpRequest_MonitoringPolicy(c.Config.RouteMonitoringPolicy.ToInt()), + Address: c.Config.Address, + Port: c.Config.Port, + Type: api.AddBmpRequest_MonitoringPolicy(c.Config.RouteMonitoringPolicy.ToInt()), + StatisticsTimeout: int32(c.Config.StatisticsTimeout), }); err != nil { log.Fatalf("failed to set bmp config: %s", err) } -- cgit v1.2.3