summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2015-08-05 17:21:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-05 22:12:24 +0900
commitad4bfac371e545e2713e9157cc6e5f6af5278635 (patch)
tree46e44865c4b74af43c262f366c5fa3d0cb870b11 /api
parent0b5bb073128b3000f383927a997d4a40d274f569 (diff)
config: change type of Prefix in the PrefixSet
Diffstat (limited to 'api')
-rw-r--r--api/gobgp.pb.go5
-rw-r--r--api/gobgp.proto5
2 files changed, 4 insertions, 6 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index 2dabd008..436f6119 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -1131,9 +1131,8 @@ func (m *Peer) GetInfo() *PeerInfo {
}
type Prefix struct {
- Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
- MaskLength uint32 `protobuf:"varint,2,opt,name=mask_length" json:"mask_length,omitempty"`
- MaskLengthRange string `protobuf:"bytes,3,opt,name=mask_length_range" json:"mask_length_range,omitempty"`
+ IpPrefix string `protobuf:"bytes,1,opt,name=ip_prefix" json:"ip_prefix,omitempty"`
+ MaskLengthRange string `protobuf:"bytes,2,opt,name=mask_length_range" json:"mask_length_range,omitempty"`
}
func (m *Prefix) Reset() { *m = Prefix{} }
diff --git a/api/gobgp.proto b/api/gobgp.proto
index 2f20a5b9..74c0b993 100644
--- a/api/gobgp.proto
+++ b/api/gobgp.proto
@@ -420,9 +420,8 @@ message Peer {
}
message Prefix {
- string address = 1;
- uint32 mask_length = 2;
- string mask_length_range = 3;
+ string ip_prefix = 1;
+ string mask_length_range = 2;
}
message PrefixSet {