diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2018-11-13 14:41:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-11-14 19:32:24 +0900 |
commit | fa387c90650613bceaca6c6c90c8744405988f8c (patch) | |
tree | b41edff67b98094e9a8d85710032849f9d7c5671 /api | |
parent | 99b272438618c33fecc74ae8514c6a10f3de8f8f (diff) |
Fix Statistics Report in BMP
Diffstat (limited to 'api')
-rw-r--r-- | api/gobgp.pb.go | 14 | ||||
-rw-r--r-- | api/gobgp.proto | 1 |
2 files changed, 12 insertions, 3 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go index d7cd913e..fd37fbad 100644 --- a/api/gobgp.pb.go +++ b/api/gobgp.pb.go @@ -2306,9 +2306,10 @@ func (*DisableMrtRequest) ProtoMessage() {} func (*DisableMrtRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{64} } type AddBmpRequest struct { - Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` - Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` - Type AddBmpRequest_MonitoringPolicy `protobuf:"varint,3,opt,name=type,enum=gobgpapi.AddBmpRequest_MonitoringPolicy" json:"type,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` + Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` + Type AddBmpRequest_MonitoringPolicy `protobuf:"varint,3,opt,name=type,enum=gobgpapi.AddBmpRequest_MonitoringPolicy" json:"type,omitempty"` + StatisticsTimeout int32 `protobuf:"varint,4,opt,name=statistics_timeout" json:"statistics_timeout,omitempty"` } func (m *AddBmpRequest) Reset() { *m = AddBmpRequest{} } @@ -2337,6 +2338,13 @@ func (m *AddBmpRequest) GetType() AddBmpRequest_MonitoringPolicy { return AddBmpRequest_PRE } +func (m *AddBmpRequest) GetStatisticsTimeout() int32 { + if m != nil { + return m.StatisticsTimeout + } + return 0 +} + type DeleteBmpRequest struct { Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` diff --git a/api/gobgp.proto b/api/gobgp.proto index 85284710..9b9e0f53 100644 --- a/api/gobgp.proto +++ b/api/gobgp.proto @@ -431,6 +431,7 @@ message AddBmpRequest { ALL = 4; } MonitoringPolicy type = 3; + int32 StatisticsTimeout = 4; } message DeleteBmpRequest { |