summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorEiichiro Watanabe <a16tochjp@gmail.com>2018-11-12 17:12:04 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-12 21:32:07 +0900
commit0eb3dcede55433facbeab23e753d3ab991b5e33b (patch)
treea34744934fe0780cb4008a9481c4e7237a5dfd17 /api
parent4cc7a81e8f5ae3c6584f26a1d9300e0522fdab7d (diff)
Fix intervals for MRT
Diffstat (limited to 'api')
-rw-r--r--api/gobgp.pb.go18
-rw-r--r--api/gobgp.proto3
2 files changed, 15 insertions, 6 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index bb41655a..d7cd913e 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -2258,9 +2258,10 @@ func (m *EnableZebraRequest) GetNexthopTriggerDelay() uint32 {
}
type EnableMrtRequest struct {
- DumpType int32 `protobuf:"varint,1,opt,name=dump_type,json=dumpType" json:"dump_type,omitempty"`
- Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"`
- Interval uint64 `protobuf:"varint,3,opt,name=interval" json:"interval,omitempty"`
+ DumpType int32 `protobuf:"varint,1,opt,name=dump_type,json=dumpType" json:"dump_type,omitempty"`
+ Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"`
+ DumpInterval uint64 `protobuf:"varint,3,opt,name=dump_interval" json:"dump_interval,omitempty"`
+ RotationInterval uint64 `protobuf:"varint,4,opt,name=rotation_interval" json:"rotation_interval,omitempty"`
}
func (m *EnableMrtRequest) Reset() { *m = EnableMrtRequest{} }
@@ -2282,9 +2283,16 @@ func (m *EnableMrtRequest) GetFilename() string {
return ""
}
-func (m *EnableMrtRequest) GetInterval() uint64 {
+func (m *EnableMrtRequest) GetDumpInterval() uint64 {
if m != nil {
- return m.Interval
+ return m.DumpInterval
+ }
+ return 0
+}
+
+func (m *EnableMrtRequest) GetRotationInterval() uint64 {
+ if m != nil {
+ return m.RotationInterval
}
return 0
}
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 2b8e8e4a..85284710 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -413,7 +413,8 @@ message EnableZebraRequest {
message EnableMrtRequest {
int32 dump_type = 1;
string filename = 2;
- uint64 interval = 3;
+ uint64 dump_interval = 3;
+ uint64 rotation_interval = 4;
}
message DisableMrtRequest {