summaryrefslogtreecommitdiffhomepage
path: root/api/capability.pb.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-26 22:04:12 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-28 15:36:50 +0900
commit97ad6b32ee61fd439c2edefbc371f748cdf82046 (patch)
tree7e06da9270ed2fc826939f462662a75b9e7b1714 /api/capability.pb.go
parent23ac6ebb861a725273c6b663dc484becef55087c (diff)
api: change Family
fixes #1812 Avoid the cast and use strightforward data strcuture; two variables for afi and safi instead of squashing two into one variable. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'api/capability.pb.go')
-rw-r--r--api/capability.pb.go111
1 files changed, 55 insertions, 56 deletions
diff --git a/api/capability.pb.go b/api/capability.pb.go
index 9fcccbe8..d3a61769 100644
--- a/api/capability.pb.go
+++ b/api/capability.pb.go
@@ -1,6 +1,5 @@
-// Code generated by protoc-gen-go.
+// Code generated by protoc-gen-go. DO NOT EDIT.
// source: capability.proto
-// DO NOT EDIT!
package gobgpapi
@@ -41,7 +40,7 @@ func (x AddPathMode) String() string {
func (AddPathMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
type MultiProtocolCapability struct {
- Family Family `protobuf:"varint,1,opt,name=family,enum=gobgpapi.Family" json:"family,omitempty"`
+ Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"`
}
func (m *MultiProtocolCapability) Reset() { *m = MultiProtocolCapability{} }
@@ -49,11 +48,11 @@ func (m *MultiProtocolCapability) String() string { return proto.Comp
func (*MultiProtocolCapability) ProtoMessage() {}
func (*MultiProtocolCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
-func (m *MultiProtocolCapability) GetFamily() Family {
+func (m *MultiProtocolCapability) GetFamily() *Family {
if m != nil {
return m.Family
}
- return Family_RESERVED
+ return nil
}
type RouteRefreshCapability struct {
@@ -73,11 +72,11 @@ func (*CarryingLabelInfoCapability) ProtoMessage() {}
func (*CarryingLabelInfoCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
type ExtendedNexthopCapabilityTuple struct {
- NlriFamily Family `protobuf:"varint,1,opt,name=nlri_family,json=nlriFamily,enum=gobgpapi.Family" json:"nlri_family,omitempty"`
+ NlriFamily *Family `protobuf:"bytes,1,opt,name=nlri_family,json=nlriFamily" json:"nlri_family,omitempty"`
// Nexthop AFI must be either
// gobgp.IPv4 or
// gobgp.IPv6.
- NexthopFamily Family `protobuf:"varint,2,opt,name=nexthop_family,json=nexthopFamily,enum=gobgpapi.Family" json:"nexthop_family,omitempty"`
+ NexthopFamily *Family `protobuf:"bytes,2,opt,name=nexthop_family,json=nexthopFamily" json:"nexthop_family,omitempty"`
}
func (m *ExtendedNexthopCapabilityTuple) Reset() { *m = ExtendedNexthopCapabilityTuple{} }
@@ -85,18 +84,18 @@ func (m *ExtendedNexthopCapabilityTuple) String() string { return pro
func (*ExtendedNexthopCapabilityTuple) ProtoMessage() {}
func (*ExtendedNexthopCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
-func (m *ExtendedNexthopCapabilityTuple) GetNlriFamily() Family {
+func (m *ExtendedNexthopCapabilityTuple) GetNlriFamily() *Family {
if m != nil {
return m.NlriFamily
}
- return Family_RESERVED
+ return nil
}
-func (m *ExtendedNexthopCapabilityTuple) GetNexthopFamily() Family {
+func (m *ExtendedNexthopCapabilityTuple) GetNexthopFamily() *Family {
if m != nil {
return m.NexthopFamily
}
- return Family_RESERVED
+ return nil
}
type ExtendedNexthopCapability struct {
@@ -116,8 +115,8 @@ func (m *ExtendedNexthopCapability) GetTuples() []*ExtendedNexthopCapabilityTupl
}
type GracefulRestartCapabilityTuple struct {
- Family Family `protobuf:"varint,1,opt,name=family,enum=gobgpapi.Family" json:"family,omitempty"`
- Flags uint32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
+ Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"`
+ Flags uint32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
}
func (m *GracefulRestartCapabilityTuple) Reset() { *m = GracefulRestartCapabilityTuple{} }
@@ -125,11 +124,11 @@ func (m *GracefulRestartCapabilityTuple) String() string { return pro
func (*GracefulRestartCapabilityTuple) ProtoMessage() {}
func (*GracefulRestartCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
-func (m *GracefulRestartCapabilityTuple) GetFamily() Family {
+func (m *GracefulRestartCapabilityTuple) GetFamily() *Family {
if m != nil {
return m.Family
}
- return Family_RESERVED
+ return nil
}
func (m *GracefulRestartCapabilityTuple) GetFlags() uint32 {
@@ -188,7 +187,7 @@ func (m *FourOctetASNumberCapability) GetAs() uint32 {
}
type AddPathCapabilityTuple struct {
- Family Family `protobuf:"varint,1,opt,name=family,enum=gobgpapi.Family" json:"family,omitempty"`
+ Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"`
Mode AddPathMode `protobuf:"varint,2,opt,name=mode,enum=gobgpapi.AddPathMode" json:"mode,omitempty"`
}
@@ -197,11 +196,11 @@ func (m *AddPathCapabilityTuple) String() string { return proto.Compa
func (*AddPathCapabilityTuple) ProtoMessage() {}
func (*AddPathCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
-func (m *AddPathCapabilityTuple) GetFamily() Family {
+func (m *AddPathCapabilityTuple) GetFamily() *Family {
if m != nil {
return m.Family
}
- return Family_RESERVED
+ return nil
}
func (m *AddPathCapabilityTuple) GetMode() AddPathMode {
@@ -236,9 +235,9 @@ func (*EnhancedRouteRefreshCapability) ProtoMessage() {}
func (*EnhancedRouteRefreshCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} }
type LongLivedGracefulRestartCapabilityTuple struct {
- Family Family `protobuf:"varint,1,opt,name=family,enum=gobgpapi.Family" json:"family,omitempty"`
- Flags uint32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
- Time uint32 `protobuf:"varint,3,opt,name=time" json:"time,omitempty"`
+ Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"`
+ Flags uint32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
+ Time uint32 `protobuf:"varint,3,opt,name=time" json:"time,omitempty"`
}
func (m *LongLivedGracefulRestartCapabilityTuple) Reset() {
@@ -250,11 +249,11 @@ func (*LongLivedGracefulRestartCapabilityTuple) Descriptor() ([]byte, []int) {
return fileDescriptor2, []int{11}
}
-func (m *LongLivedGracefulRestartCapabilityTuple) GetFamily() Family {
+func (m *LongLivedGracefulRestartCapabilityTuple) GetFamily() *Family {
if m != nil {
return m.Family
}
- return Family_RESERVED
+ return nil
}
func (m *LongLivedGracefulRestartCapabilityTuple) GetFlags() uint32 {
@@ -344,37 +343,37 @@ func init() { proto.RegisterFile("capability.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 520 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcd, 0x6f, 0xd3, 0x4e,
- 0x10, 0xfd, 0x39, 0xc9, 0x2f, 0x82, 0x49, 0x13, 0xb9, 0x2b, 0x28, 0x29, 0x51, 0xa3, 0x68, 0x2f,
- 0x04, 0x24, 0x22, 0xb5, 0x1c, 0xe0, 0x82, 0x44, 0x49, 0x5d, 0x88, 0x94, 0x8f, 0xca, 0x2d, 0xdc,
- 0x50, 0xd9, 0xd8, 0x6b, 0x67, 0xc5, 0x7a, 0xd7, 0xb2, 0xd7, 0xa5, 0x39, 0x70, 0xe6, 0xc2, 0x1f,
- 0x8d, 0xfc, 0x11, 0xdb, 0xa4, 0x72, 0x5b, 0x21, 0x71, 0x9b, 0xf1, 0xce, 0xbc, 0x79, 0x6f, 0xde,
- 0xae, 0x41, 0xb7, 0x88, 0x4f, 0x96, 0x8c, 0x33, 0xb5, 0x1e, 0xf9, 0x81, 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