summaryrefslogtreecommitdiffhomepage
path: root/api/gobgp.pb.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-04 14:30:13 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-08 13:13:37 +0900
commitd8dc45772cd1a384cb15917bea43cac5d2a04f10 (patch)
tree26a4f2eec14a791546d2bf254626286b6dbe1cd2 /api/gobgp.pb.go
parent9298e5eeca78e8bb02ff34b500add622b73b4f5f (diff)
api: kill api.Capability
keep protobuf structures simple Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/gobgp.pb.go')
-rw-r--r--api/gobgp.pb.go116
1 files changed, 7 insertions, 109 deletions
diff --git a/api/gobgp.pb.go b/api/gobgp.pb.go
index 182845ea..550863dc 100644
--- a/api/gobgp.pb.go
+++ b/api/gobgp.pb.go
@@ -15,9 +15,6 @@ It has these top-level messages:
PolicyArguments
MrtArguments
ModVrfArguments
- GracefulRestartTuple
- GracefulRestart
- Capability
Path
Destination
PeerConf
@@ -131,44 +128,6 @@ func (x Operation) String() string {
return proto.EnumName(Operation_name, int32(x))
}
-type BGP_CAPABILITY int32
-
-const (
- BGP_CAPABILITY_UNKNOWN_CAP BGP_CAPABILITY = 0
- BGP_CAPABILITY_MULTIPROTOCOL BGP_CAPABILITY = 1
- BGP_CAPABILITY_ROUTE_REFRESH BGP_CAPABILITY = 2
- BGP_CAPABILITY_CARRYING_LABEL_INFO BGP_CAPABILITY = 4
- BGP_CAPABILITY_GRACEFUL_RESTART BGP_CAPABILITY = 64
- BGP_CAPABILITY_FOUR_OCTET_AS_NUMBER BGP_CAPABILITY = 65
- BGP_CAPABILITY_ENHANCED_ROUTE_REFRESH BGP_CAPABILITY = 70
- BGP_CAPABILITY_ROUTE_REFRESH_CISCO BGP_CAPABILITY = 128
-)
-
-var BGP_CAPABILITY_name = map[int32]string{
- 0: "UNKNOWN_CAP",
- 1: "MULTIPROTOCOL",
- 2: "ROUTE_REFRESH",
- 4: "CARRYING_LABEL_INFO",
- 64: "GRACEFUL_RESTART",
- 65: "FOUR_OCTET_AS_NUMBER",
- 70: "ENHANCED_ROUTE_REFRESH",
- 128: "ROUTE_REFRESH_CISCO",
-}
-var BGP_CAPABILITY_value = map[string]int32{
- "UNKNOWN_CAP": 0,
- "MULTIPROTOCOL": 1,
- "ROUTE_REFRESH": 2,
- "CARRYING_LABEL_INFO": 4,
- "GRACEFUL_RESTART": 64,
- "FOUR_OCTET_AS_NUMBER": 65,
- "ENHANCED_ROUTE_REFRESH": 70,
- "ROUTE_REFRESH_CISCO": 128,
-}
-
-func (x BGP_CAPABILITY) String() string {
- return proto.EnumName(BGP_CAPABILITY_name, int32(x))
-}
-
type Error_ErrorCode int32
const (
@@ -281,50 +240,6 @@ func (m *ModVrfArguments) GetVrf() *Vrf {
return nil
}
-type GracefulRestartTuple struct {
- Rf uint32 `protobuf:"varint,1,opt,name=rf" json:"rf,omitempty"`
- Flags uint32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
-}
-
-func (m *GracefulRestartTuple) Reset() { *m = GracefulRestartTuple{} }
-func (m *GracefulRestartTuple) String() string { return proto.CompactTextString(m) }
-func (*GracefulRestartTuple) ProtoMessage() {}
-
-type GracefulRestart struct {
- Flags uint32 `protobuf:"varint,1,opt,name=flags" json:"flags,omitempty"`
- Time uint32 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"`
- Tuples []*GracefulRestartTuple `protobuf:"bytes,3,rep,name=tuples" json:"tuples,omitempty"`
-}
-
-func (m *GracefulRestart) Reset() { *m = GracefulRestart{} }
-func (m *GracefulRestart) String() string { return proto.CompactTextString(m) }
-func (*GracefulRestart) ProtoMessage() {}
-
-func (m *GracefulRestart) GetTuples() []*GracefulRestartTuple {
- if m != nil {
- return m.Tuples
- }
- return nil
-}
-
-type Capability struct {
- Code BGP_CAPABILITY `protobuf:"varint,1,opt,name=code,enum=api.BGP_CAPABILITY" json:"code,omitempty"`
- MultiProtocol uint32 `protobuf:"varint,2,opt,name=multi_protocol" json:"multi_protocol,omitempty"`
- GracefulRestart *GracefulRestart `protobuf:"bytes,3,opt,name=graceful_restart" json:"graceful_restart,omitempty"`
- Asn uint32 `protobuf:"varint,4,opt,name=asn" json:"asn,omitempty"`
-}
-
-func (m *Capability) Reset() { *m = Capability{} }
-func (m *Capability) String() string { return proto.CompactTextString(m) }
-func (*Capability) ProtoMessage() {}
-
-func (m *Capability) GetGracefulRestart() *GracefulRestart {
- if m != nil {
- return m.GracefulRestart
- }
- return nil
-}
-
type Path struct {
Nlri []byte `protobuf:"bytes,1,opt,name=nlri,proto3" json:"nlri,omitempty"`
Pattrs [][]byte `protobuf:"bytes,2,rep,name=pattrs,proto3" json:"pattrs,omitempty"`
@@ -357,35 +272,19 @@ func (m *Destination) GetPaths() []*Path {
}
type PeerConf struct {
- RemoteIp string `protobuf:"bytes,1,opt,name=remote_ip" json:"remote_ip,omitempty"`
- Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
- RemoteAs uint32 `protobuf:"varint,3,opt,name=remote_as" json:"remote_as,omitempty"`
- CapRefresh bool `protobuf:"varint,4,opt,name=cap_refresh" json:"cap_refresh,omitempty"`
- CapEnhancedRefresh bool `protobuf:"varint,5,opt,name=cap_enhanced_refresh" json:"cap_enhanced_refresh,omitempty"`
- RemoteCap []*Capability `protobuf:"bytes,6,rep,name=remote_cap" json:"remote_cap,omitempty"`
- LocalCap []*Capability `protobuf:"bytes,7,rep,name=local_cap" json:"local_cap,omitempty"`
- Holdtime uint32 `protobuf:"varint,8,opt,name=holdtime" json:"holdtime,omitempty"`
- KeepaliveInterval uint32 `protobuf:"varint,9,opt,name=keepalive_interval" json:"keepalive_interval,omitempty"`
+ RemoteIp string `protobuf:"bytes,1,opt,name=remote_ip" json:"remote_ip,omitempty"`
+ Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
+ RemoteAs uint32 `protobuf:"varint,3,opt,name=remote_as" json:"remote_as,omitempty"`
+ RemoteCap [][]byte `protobuf:"bytes,6,rep,name=remote_cap,proto3" json:"remote_cap,omitempty"`
+ LocalCap [][]byte `protobuf:"bytes,7,rep,name=local_cap,proto3" json:"local_cap,omitempty"`
+ Holdtime uint32 `protobuf:"varint,8,opt,name=holdtime" json:"holdtime,omitempty"`
+ KeepaliveInterval uint32 `protobuf:"varint,9,opt,name=keepalive_interval" json:"keepalive_interval,omitempty"`
}
func (m *PeerConf) Reset() { *m = PeerConf{} }
func (m *PeerConf) String() string { return proto.CompactTextString(m) }
func (*PeerConf) ProtoMessage() {}
-func (m *PeerConf) GetRemoteCap() []*Capability {
- if m != nil {
- return m.RemoteCap
- }
- return nil
-}
-
-func (m *PeerConf) GetLocalCap() []*Capability {
- if m != nil {
- return m.LocalCap
- }
- return nil
-}
-
type PeerInfo struct {
BgpState string `protobuf:"bytes,1,opt,name=bgp_state" json:"bgp_state,omitempty"`
AdminState string `protobuf:"bytes,2,opt,name=admin_state" json:"admin_state,omitempty"`
@@ -788,7 +687,6 @@ func (*Vrf) ProtoMessage() {}
func init() {
proto.RegisterEnum("api.Resource", Resource_name, Resource_value)
proto.RegisterEnum("api.Operation", Operation_name, Operation_value)
- proto.RegisterEnum("api.BGP_CAPABILITY", BGP_CAPABILITY_name, BGP_CAPABILITY_value)
proto.RegisterEnum("api.Error_ErrorCode", Error_ErrorCode_name, Error_ErrorCode_value)
}