summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.pb.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-10-16 11:10:09 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-20 10:33:10 +0900
commit0ba93b0aa99fe72809bf081bae56bd756bba6937 (patch)
tree1c0ef3ecae1c9d927b0122b7d9af1471979636ff /api/gobgp.pb.go
parent7937d8ddb6f8f82c593fb3b019d1fc618dc89f48 (diff)
api: use two ints instead of string to represent mask-length-range
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.pb.go')
-rw-r--r--api/gobgp.pb.go25
1 files changed, 13 insertions, 12 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index 819be3ad..d4ec9c0a 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -26,8 +26,8 @@ It has these top-level messages:
MatchSet
Conditions
CommunityAction
- AsPrependAction
MedAction
+ AsPrependAction
Actions
Statement
PolicyDefinition
@@ -387,8 +387,9 @@ func (m *Peer) GetInfo() *PeerInfo {
}
type Prefix struct {
- 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"`
+ IpPrefix string `protobuf:"bytes,1,opt,name=ip_prefix" json:"ip_prefix,omitempty"`
+ MaskLengthMin uint32 `protobuf:"varint,2,opt,name=mask_length_min" json:"mask_length_min,omitempty"`
+ MaskLengthMax uint32 `protobuf:"varint,3,opt,name=mask_length_max" json:"mask_length_max,omitempty"`
}
func (m *Prefix) Reset() { *m = Prefix{} }
@@ -496,6 +497,15 @@ func (m *CommunityAction) Reset() { *m = CommunityAction{} }
func (m *CommunityAction) String() string { return proto.CompactTextString(m) }
func (*CommunityAction) ProtoMessage() {}
+type MedAction struct {
+ Type int32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"`
+ Value int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
+}
+
+func (m *MedAction) Reset() { *m = MedAction{} }
+func (m *MedAction) String() string { return proto.CompactTextString(m) }
+func (*MedAction) ProtoMessage() {}
+
type AsPrependAction struct {
Asn uint32 `protobuf:"varint,1,opt,name=asn" json:"asn,omitempty"`
Repeat uint32 `protobuf:"varint,2,opt,name=repeat" json:"repeat,omitempty"`
@@ -506,15 +516,6 @@ func (m *AsPrependAction) Reset() { *m = AsPrependAction{} }
func (m *AsPrependAction) String() string { return proto.CompactTextString(m) }
func (*AsPrependAction) ProtoMessage() {}
-type MedAction struct {
- Type int32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"`
- Value int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"`
-}
-
-func (m *MedAction) Reset() { *m = MedAction{} }
-func (m *MedAction) String() string { return proto.CompactTextString(m) }
-func (*MedAction) ProtoMessage() {}
-
type Actions struct {
RouteAction RouteAction `protobuf:"varint,1,opt,name=route_action,enum=gobgpapi.RouteAction" json:"route_action,omitempty"`
Community *CommunityAction `protobuf:"bytes,2,opt,name=community" json:"community,omitempty"`