Documentation ¶
Overview ¶
Package gobgpapi is a generated protocol buffer package.
It is generated from these files:
gobgp.proto
It has these top-level messages:
Error Arguments ModPathArguments ModPathResponse ModPathsArguments ModNeighborArguments MrtArguments ModMrtArguments ModBmpArguments ModRpkiArguments ModVrfArguments ModDefinedSetArguments ModStatementArguments ModPolicyArguments ModPolicyAssignmentArguments ModGlobalConfigArguments Path Destination Table Peer ApplyPolicy PeerConf EbgpMultihop RouteReflector PeerState Messages Message Queues Timers TimersConfig TimersState Transport RouteServer Prefix DefinedSet MatchSet AsPathLength Conditions CommunityAction MedAction AsPrependAction Actions Statement Policy PolicyAssignment MrtMessage RPKIConf RPKIState RPKI ROA ROAResult Vrf Global
Index ¶
- Variables
- func RegisterGobgpApiServer(s *grpc.Server, srv GobgpApiServer)
- type Actions
- func (*Actions) Descriptor() ([]byte, []int)
- func (m *Actions) GetAsPrepend() *AsPrependAction
- func (m *Actions) GetCommunity() *CommunityAction
- func (m *Actions) GetExtCommunity() *CommunityAction
- func (m *Actions) GetMed() *MedAction
- func (*Actions) ProtoMessage()
- func (m *Actions) Reset()
- func (m *Actions) String() string
- type ApplyPolicy
- func (*ApplyPolicy) Descriptor() ([]byte, []int)
- func (m *ApplyPolicy) GetExportPolicy() *PolicyAssignment
- func (m *ApplyPolicy) GetImportPolicy() *PolicyAssignment
- func (m *ApplyPolicy) GetInPolicy() *PolicyAssignment
- func (*ApplyPolicy) ProtoMessage()
- func (m *ApplyPolicy) Reset()
- func (m *ApplyPolicy) String() string
- type Arguments
- type AsPathLength
- type AsPathLengthType
- type AsPrependAction
- type CommunityAction
- type CommunityActionType
- type Conditions
- func (*Conditions) Descriptor() ([]byte, []int)
- func (m *Conditions) GetAsPathLength() *AsPathLength
- func (m *Conditions) GetAsPathSet() *MatchSet
- func (m *Conditions) GetCommunitySet() *MatchSet
- func (m *Conditions) GetExtCommunitySet() *MatchSet
- func (m *Conditions) GetNeighborSet() *MatchSet
- func (m *Conditions) GetPrefixSet() *MatchSet
- func (*Conditions) ProtoMessage()
- func (m *Conditions) Reset()
- func (m *Conditions) String() string
- type DefinedSet
- type DefinedType
- type Destination
- type EbgpMultihop
- type Error
- type Error_ErrorCode
- type Global
- type GobgpApiClient
- type GobgpApiServer
- type GobgpApi_GetDefinedSetsClient
- type GobgpApi_GetDefinedSetsServer
- type GobgpApi_GetMrtClient
- type GobgpApi_GetMrtServer
- type GobgpApi_GetNeighborsClient
- type GobgpApi_GetNeighborsServer
- type GobgpApi_GetPoliciesClient
- type GobgpApi_GetPoliciesServer
- type GobgpApi_GetROAClient
- type GobgpApi_GetROAServer
- type GobgpApi_GetRPKIClient
- type GobgpApi_GetRPKIServer
- type GobgpApi_GetStatementsClient
- type GobgpApi_GetStatementsServer
- type GobgpApi_GetVrfsClient
- type GobgpApi_GetVrfsServer
- type GobgpApi_ModPathsClient
- type GobgpApi_ModPathsServer
- type GobgpApi_MonitorBestChangedClient
- type GobgpApi_MonitorBestChangedServer
- type GobgpApi_MonitorPeerStateClient
- type GobgpApi_MonitorPeerStateServer
- type GobgpApi_MonitorROAValidationClient
- type GobgpApi_MonitorROAValidationServer
- type MatchSet
- type MatchType
- type MedAction
- type MedActionType
- type Message
- type Messages
- type ModBmpArguments
- type ModBmpArguments_MonitoringPolicy
- type ModDefinedSetArguments
- type ModGlobalConfigArguments
- type ModMrtArguments
- type ModNeighborArguments
- type ModPathArguments
- type ModPathResponse
- type ModPathsArguments
- type ModPolicyArguments
- type ModPolicyAssignmentArguments
- type ModRpkiArguments
- type ModStatementArguments
- type ModVrfArguments
- type MrtArguments
- type MrtMessage
- type Operation
- type Path
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetApplyPolicy() *ApplyPolicy
- func (m *Peer) GetConf() *PeerConf
- func (m *Peer) GetEbgpMultihop() *EbgpMultihop
- func (m *Peer) GetInfo() *PeerState
- func (m *Peer) GetRouteReflector() *RouteReflector
- func (m *Peer) GetRouteServer() *RouteServer
- func (m *Peer) GetTimers() *Timers
- func (m *Peer) GetTransport() *Transport
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- type PeerConf
- type PeerState
- type Policy
- type PolicyAssignment
- type PolicyType
- type Prefix
- type Queues
- type ROA
- type ROAResult
- type ROAResult_ValidationReason
- type ROAResult_ValidationResult
- type RPKI
- type RPKIConf
- type RPKIState
- type Resource
- type RouteAction
- type RouteReflector
- type RouteServer
- type Statement
- type Table
- type Timers
- type TimersConfig
- type TimersState
- type Transport
- type Vrf
Constants ¶
This section is empty.
Variables ¶
View Source
var AsPathLengthType_name = map[int32]string{
0: "EQ",
1: "GE",
2: "LE",
}
View Source
var AsPathLengthType_value = map[string]int32{
"EQ": 0,
"GE": 1,
"LE": 2,
}
View Source
var CommunityActionType_name = map[int32]string{
0: "COMMUNITY_ADD",
1: "COMMUNITY_REMOVE",
2: "COMMUNITY_REPLACE",
}
View Source
var CommunityActionType_value = map[string]int32{
"COMMUNITY_ADD": 0,
"COMMUNITY_REMOVE": 1,
"COMMUNITY_REPLACE": 2,
}
View Source
var DefinedType_name = map[int32]string{
0: "PREFIX",
1: "NEIGHBOR",
2: "TAG",
3: "AS_PATH",
4: "COMMUNITY",
5: "EXT_COMMUNITY",
}
View Source
var DefinedType_value = map[string]int32{
"PREFIX": 0,
"NEIGHBOR": 1,
"TAG": 2,
"AS_PATH": 3,
"COMMUNITY": 4,
"EXT_COMMUNITY": 5,
}
View Source
var Error_ErrorCode_name = map[int32]string{
0: "SUCCESS",
1: "FAIL",
}
View Source
var Error_ErrorCode_value = map[string]int32{
"SUCCESS": 0,
"FAIL": 1,
}
View Source
var MatchType_name = map[int32]string{
0: "ANY",
1: "ALL",
2: "INVERT",
}
View Source
var MatchType_value = map[string]int32{
"ANY": 0,
"ALL": 1,
"INVERT": 2,
}
View Source
var MedActionType_name = map[int32]string{
0: "MED_MOD",
1: "MED_REPLACE",
}
View Source
var MedActionType_value = map[string]int32{
"MED_MOD": 0,
"MED_REPLACE": 1,
}
View Source
var ModBmpArguments_MonitoringPolicy_name = map[int32]string{
0: "PRE",
1: "POST",
2: "BOTH",
}
View Source
var ModBmpArguments_MonitoringPolicy_value = map[string]int32{
"PRE": 0,
"POST": 1,
"BOTH": 2,
}
View Source
var Operation_name = map[int32]string{
0: "ADD",
1: "DEL",
2: "DEL_ALL",
3: "REPLACE",
4: "ENABLE",
5: "DISABLE",
6: "RESET",
7: "SOFTRESET",
}
View Source
var Operation_value = map[string]int32{
"ADD": 0,
"DEL": 1,
"DEL_ALL": 2,
"REPLACE": 3,
"ENABLE": 4,
"DISABLE": 5,
"RESET": 6,
"SOFTRESET": 7,
}
View Source
var PolicyType_name = map[int32]string{
0: "IN",
1: "IMPORT",
2: "EXPORT",
}
View Source
var PolicyType_value = map[string]int32{
"IN": 0,
"IMPORT": 1,
"EXPORT": 2,
}
View Source
var ROAResult_ValidationReason_name = map[int32]string{
0: "UPDATE",
1: "WITHDRAW",
2: "PEER_DOWN",
}
View Source
var ROAResult_ValidationReason_value = map[string]int32{
"UPDATE": 0,
"WITHDRAW": 1,
"PEER_DOWN": 2,
}
View Source
var ROAResult_ValidationResult_name = map[int32]string{
0: "NONE",
1: "NOT_FOUND",
2: "VALID",
3: "INVALID",
}
View Source
var ROAResult_ValidationResult_value = map[string]int32{
"NONE": 0,
"NOT_FOUND": 1,
"VALID": 2,
"INVALID": 3,
}
View Source
var Resource_name = map[int32]string{
0: "GLOBAL",
1: "LOCAL",
2: "ADJ_IN",
3: "ADJ_OUT",
4: "VRF",
}
View Source
var Resource_value = map[string]int32{
"GLOBAL": 0,
"LOCAL": 1,
"ADJ_IN": 2,
"ADJ_OUT": 3,
"VRF": 4,
}
View Source
var RouteAction_name = map[int32]string{
0: "NONE",
1: "ACCEPT",
2: "REJECT",
}
View Source
var RouteAction_value = map[string]int32{
"NONE": 0,
"ACCEPT": 1,
"REJECT": 2,
}
Functions ¶
func RegisterGobgpApiServer ¶
func RegisterGobgpApiServer(s *grpc.Server, srv GobgpApiServer)
Types ¶
type Actions ¶
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"` Med *MedAction `protobuf:"bytes,3,opt,name=med" json:"med,omitempty"` AsPrepend *AsPrependAction `protobuf:"bytes,4,opt,name=as_prepend" json:"as_prepend,omitempty"` ExtCommunity *CommunityAction `protobuf:"bytes,5,opt,name=ext_community" json:"ext_community,omitempty"` }
func (*Actions) Descriptor ¶
func (*Actions) GetAsPrepend ¶
func (m *Actions) GetAsPrepend() *AsPrependAction
func (*Actions) GetCommunity ¶
func (m *Actions) GetCommunity() *CommunityAction
func (*Actions) GetExtCommunity ¶
func (m *Actions) GetExtCommunity() *CommunityAction
func (*Actions) ProtoMessage ¶
func (*Actions) ProtoMessage()
type ApplyPolicy ¶
type ApplyPolicy struct { InPolicy *PolicyAssignment `protobuf:"bytes,1,opt,name=in_policy" json:"in_policy,omitempty"` ExportPolicy *PolicyAssignment `protobuf:"bytes,2,opt,name=export_policy" json:"export_policy,omitempty"` ImportPolicy *PolicyAssignment `protobuf:"bytes,3,opt,name=import_policy" json:"import_policy,omitempty"` }
func (*ApplyPolicy) Descriptor ¶
func (*ApplyPolicy) Descriptor() ([]byte, []int)
func (*ApplyPolicy) GetExportPolicy ¶
func (m *ApplyPolicy) GetExportPolicy() *PolicyAssignment
func (*ApplyPolicy) GetImportPolicy ¶
func (m *ApplyPolicy) GetImportPolicy() *PolicyAssignment
func (*ApplyPolicy) GetInPolicy ¶
func (m *ApplyPolicy) GetInPolicy() *PolicyAssignment
func (*ApplyPolicy) ProtoMessage ¶
func (*ApplyPolicy) ProtoMessage()
func (*ApplyPolicy) Reset ¶
func (m *ApplyPolicy) Reset()
func (*ApplyPolicy) String ¶
func (m *ApplyPolicy) String() string
type Arguments ¶
type Arguments struct { Resource Resource `protobuf:"varint,1,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"` Family uint32 `protobuf:"varint,2,opt,name=family" json:"family,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` }
func (*Arguments) Descriptor ¶
func (*Arguments) ProtoMessage ¶
func (*Arguments) ProtoMessage()
type AsPathLength ¶
type AsPathLength struct { Type AsPathLengthType `protobuf:"varint,1,opt,name=type,enum=gobgpapi.AsPathLengthType" json:"type,omitempty"` Length uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"` }
func (*AsPathLength) Descriptor ¶
func (*AsPathLength) Descriptor() ([]byte, []int)
func (*AsPathLength) ProtoMessage ¶
func (*AsPathLength) ProtoMessage()
func (*AsPathLength) Reset ¶
func (m *AsPathLength) Reset()
func (*AsPathLength) String ¶
func (m *AsPathLength) String() string
type AsPathLengthType ¶
type AsPathLengthType int32
const ( AsPathLengthType_EQ AsPathLengthType = 0 AsPathLengthType_GE AsPathLengthType = 1 AsPathLengthType_LE AsPathLengthType = 2 )
func (AsPathLengthType) EnumDescriptor ¶
func (AsPathLengthType) EnumDescriptor() ([]byte, []int)
func (AsPathLengthType) String ¶
func (x AsPathLengthType) String() string
type AsPrependAction ¶
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"` UseLeftMost bool `protobuf:"varint,3,opt,name=use_left_most" json:"use_left_most,omitempty"` }
func (*AsPrependAction) Descriptor ¶
func (*AsPrependAction) Descriptor() ([]byte, []int)
func (*AsPrependAction) ProtoMessage ¶
func (*AsPrependAction) ProtoMessage()
func (*AsPrependAction) Reset ¶
func (m *AsPrependAction) Reset()
func (*AsPrependAction) String ¶
func (m *AsPrependAction) String() string
type CommunityAction ¶
type CommunityAction struct { Type CommunityActionType `protobuf:"varint,1,opt,name=type,enum=gobgpapi.CommunityActionType" json:"type,omitempty"` Communities []string `protobuf:"bytes,2,rep,name=communities" json:"communities,omitempty"` }
func (*CommunityAction) Descriptor ¶
func (*CommunityAction) Descriptor() ([]byte, []int)
func (*CommunityAction) ProtoMessage ¶
func (*CommunityAction) ProtoMessage()
func (*CommunityAction) Reset ¶
func (m *CommunityAction) Reset()
func (*CommunityAction) String ¶
func (m *CommunityAction) String() string
type CommunityActionType ¶
type CommunityActionType int32
const ( CommunityActionType_COMMUNITY_ADD CommunityActionType = 0 CommunityActionType_COMMUNITY_REMOVE CommunityActionType = 1 CommunityActionType_COMMUNITY_REPLACE CommunityActionType = 2 )
func (CommunityActionType) EnumDescriptor ¶
func (CommunityActionType) EnumDescriptor() ([]byte, []int)
func (CommunityActionType) String ¶
func (x CommunityActionType) String() string
type Conditions ¶
type Conditions struct { PrefixSet *MatchSet `protobuf:"bytes,1,opt,name=prefix_set" json:"prefix_set,omitempty"` NeighborSet *MatchSet `protobuf:"bytes,2,opt,name=neighbor_set" json:"neighbor_set,omitempty"` AsPathLength *AsPathLength `protobuf:"bytes,3,opt,name=as_path_length" json:"as_path_length,omitempty"` AsPathSet *MatchSet `protobuf:"bytes,4,opt,name=as_path_set" json:"as_path_set,omitempty"` CommunitySet *MatchSet `protobuf:"bytes,5,opt,name=community_set" json:"community_set,omitempty"` ExtCommunitySet *MatchSet `protobuf:"bytes,6,opt,name=ext_community_set" json:"ext_community_set,omitempty"` RpkiResult int32 `protobuf:"varint,7,opt,name=rpki_result" json:"rpki_result,omitempty"` }
func (*Conditions) Descriptor ¶
func (*Conditions) Descriptor() ([]byte, []int)
func (*Conditions) GetAsPathLength ¶
func (m *Conditions) GetAsPathLength() *AsPathLength
func (*Conditions) GetAsPathSet ¶
func (m *Conditions) GetAsPathSet() *MatchSet
func (*Conditions) GetCommunitySet ¶
func (m *Conditions) GetCommunitySet() *MatchSet
func (*Conditions) GetExtCommunitySet ¶
func (m *Conditions) GetExtCommunitySet() *MatchSet
func (*Conditions) GetNeighborSet ¶
func (m *Conditions) GetNeighborSet() *MatchSet
func (*Conditions) GetPrefixSet ¶
func (m *Conditions) GetPrefixSet() *MatchSet
func (*Conditions) ProtoMessage ¶
func (*Conditions) ProtoMessage()
func (*Conditions) Reset ¶
func (m *Conditions) Reset()
func (*Conditions) String ¶
func (m *Conditions) String() string
type DefinedSet ¶
type DefinedSet struct { Type DefinedType `protobuf:"varint,1,opt,name=type,enum=gobgpapi.DefinedType" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` List []string `protobuf:"bytes,3,rep,name=list" json:"list,omitempty"` Prefixes []*Prefix `protobuf:"bytes,4,rep,name=prefixes" json:"prefixes,omitempty"` }
func (*DefinedSet) Descriptor ¶
func (*DefinedSet) Descriptor() ([]byte, []int)
func (*DefinedSet) GetPrefixes ¶
func (m *DefinedSet) GetPrefixes() []*Prefix
func (*DefinedSet) ProtoMessage ¶
func (*DefinedSet) ProtoMessage()
func (*DefinedSet) Reset ¶
func (m *DefinedSet) Reset()
func (*DefinedSet) String ¶
func (m *DefinedSet) String() string
type DefinedType ¶
type DefinedType int32
const ( DefinedType_PREFIX DefinedType = 0 DefinedType_NEIGHBOR DefinedType = 1 DefinedType_TAG DefinedType = 2 DefinedType_AS_PATH DefinedType = 3 DefinedType_COMMUNITY DefinedType = 4 DefinedType_EXT_COMMUNITY DefinedType = 5 )
func (DefinedType) EnumDescriptor ¶
func (DefinedType) EnumDescriptor() ([]byte, []int)
func (DefinedType) String ¶
func (x DefinedType) String() string
type Destination ¶
type Destination struct { Prefix string `protobuf:"bytes,1,opt,name=prefix" json:"prefix,omitempty"` Paths []*Path `protobuf:"bytes,2,rep,name=paths" json:"paths,omitempty"` LongerPrefixes bool `protobuf:"varint,3,opt,name=longer_prefixes" json:"longer_prefixes,omitempty"` }
func (*Destination) Descriptor ¶
func (*Destination) Descriptor() ([]byte, []int)
func (*Destination) GetPaths ¶
func (m *Destination) GetPaths() []*Path
func (*Destination) ProtoMessage ¶
func (*Destination) ProtoMessage()
func (*Destination) Reset ¶
func (m *Destination) Reset()
func (*Destination) String ¶
func (m *Destination) String() string
type EbgpMultihop ¶
type EbgpMultihop struct { Enabled bool `protobuf:"varint,1,opt,name=enabled" json:"enabled,omitempty"` MultihopTtl uint32 `protobuf:"varint,2,opt,name=multihop_ttl" json:"multihop_ttl,omitempty"` }
func (*EbgpMultihop) Descriptor ¶
func (*EbgpMultihop) Descriptor() ([]byte, []int)
func (*EbgpMultihop) ProtoMessage ¶
func (*EbgpMultihop) ProtoMessage()
func (*EbgpMultihop) Reset ¶
func (m *EbgpMultihop) Reset()
func (*EbgpMultihop) String ¶
func (m *EbgpMultihop) String() string
type Error ¶
type Error struct { Code Error_ErrorCode `protobuf:"varint,1,opt,name=code,enum=gobgpapi.Error_ErrorCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"` }
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type Error_ErrorCode ¶
type Error_ErrorCode int32
const ( Error_SUCCESS Error_ErrorCode = 0 Error_FAIL Error_ErrorCode = 1 )
func (Error_ErrorCode) EnumDescriptor ¶
func (Error_ErrorCode) EnumDescriptor() ([]byte, []int)
func (Error_ErrorCode) String ¶
func (x Error_ErrorCode) String() string
type Global ¶
type Global struct { As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"` RouterId string `protobuf:"bytes,2,opt,name=router_id" json:"router_id,omitempty"` ListenPort int32 `protobuf:"varint,3,opt,name=listen_port" json:"listen_port,omitempty"` }
func (*Global) Descriptor ¶
func (*Global) ProtoMessage ¶
func (*Global) ProtoMessage()
type GobgpApiClient ¶
type GobgpApiClient interface { GetGlobalConfig(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Global, error) ModGlobalConfig(ctx context.Context, in *ModGlobalConfigArguments, opts ...grpc.CallOption) (*Error, error) GetNeighbors(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_GetNeighborsClient, error) GetNeighbor(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Peer, error) ModNeighbor(ctx context.Context, in *ModNeighborArguments, opts ...grpc.CallOption) (*Error, error) GetRib(ctx context.Context, in *Table, opts ...grpc.CallOption) (*Table, error) Reset(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Error, error) SoftReset(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Error, error) SoftResetIn(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Error, error) SoftResetOut(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Error, error) Shutdown(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Error, error) Enable(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Error, error) Disable(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (*Error, error) ModPath(ctx context.Context, in *ModPathArguments, opts ...grpc.CallOption) (*ModPathResponse, error) ModPaths(ctx context.Context, opts ...grpc.CallOption) (GobgpApi_ModPathsClient, error) MonitorBestChanged(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_MonitorBestChangedClient, error) MonitorPeerState(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_MonitorPeerStateClient, error) MonitorROAValidation(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_MonitorROAValidationClient, error) GetMrt(ctx context.Context, in *MrtArguments, opts ...grpc.CallOption) (GobgpApi_GetMrtClient, error) ModMrt(ctx context.Context, in *ModMrtArguments, opts ...grpc.CallOption) (*Error, error) ModBmp(ctx context.Context, in *ModBmpArguments, opts ...grpc.CallOption) (*Error, error) GetRPKI(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_GetRPKIClient, error) ModRPKI(ctx context.Context, in *ModRpkiArguments, opts ...grpc.CallOption) (*Error, error) GetROA(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_GetROAClient, error) GetVrfs(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_GetVrfsClient, error) ModVrf(ctx context.Context, in *ModVrfArguments, opts ...grpc.CallOption) (*Error, error) GetDefinedSet(ctx context.Context, in *DefinedSet, opts ...grpc.CallOption) (*DefinedSet, error) GetDefinedSets(ctx context.Context, in *DefinedSet, opts ...grpc.CallOption) (GobgpApi_GetDefinedSetsClient, error) ModDefinedSet(ctx context.Context, in *ModDefinedSetArguments, opts ...grpc.CallOption) (*Error, error) GetStatement(ctx context.Context, in *Statement, opts ...grpc.CallOption) (*Statement, error) GetStatements(ctx context.Context, in *Statement, opts ...grpc.CallOption) (GobgpApi_GetStatementsClient, error) ModStatement(ctx context.Context, in *ModStatementArguments, opts ...grpc.CallOption) (*Error, error) GetPolicy(ctx context.Context, in *Policy, opts ...grpc.CallOption) (*Policy, error) GetPolicies(ctx context.Context, in *Policy, opts ...grpc.CallOption) (GobgpApi_GetPoliciesClient, error) ModPolicy(ctx context.Context, in *ModPolicyArguments, opts ...grpc.CallOption) (*Error, error) GetPolicyAssignment(ctx context.Context, in *PolicyAssignment, opts ...grpc.CallOption) (*PolicyAssignment, error) ModPolicyAssignment(ctx context.Context, in *ModPolicyAssignmentArguments, opts ...grpc.CallOption) (*Error, error) }
func NewGobgpApiClient ¶
func NewGobgpApiClient(cc *grpc.ClientConn) GobgpApiClient
type GobgpApiServer ¶
type GobgpApiServer interface { GetGlobalConfig(context.Context, *Arguments) (*Global, error) ModGlobalConfig(context.Context, *ModGlobalConfigArguments) (*Error, error) GetNeighbors(*Arguments, GobgpApi_GetNeighborsServer) error GetNeighbor(context.Context, *Arguments) (*Peer, error) ModNeighbor(context.Context, *ModNeighborArguments) (*Error, error) GetRib(context.Context, *Table) (*Table, error) Reset(context.Context, *Arguments) (*Error, error) SoftReset(context.Context, *Arguments) (*Error, error) SoftResetIn(context.Context, *Arguments) (*Error, error) SoftResetOut(context.Context, *Arguments) (*Error, error) Shutdown(context.Context, *Arguments) (*Error, error) Enable(context.Context, *Arguments) (*Error, error) Disable(context.Context, *Arguments) (*Error, error) ModPath(context.Context, *ModPathArguments) (*ModPathResponse, error) ModPaths(GobgpApi_ModPathsServer) error MonitorBestChanged(*Arguments, GobgpApi_MonitorBestChangedServer) error MonitorPeerState(*Arguments, GobgpApi_MonitorPeerStateServer) error MonitorROAValidation(*Arguments, GobgpApi_MonitorROAValidationServer) error GetMrt(*MrtArguments, GobgpApi_GetMrtServer) error ModMrt(context.Context, *ModMrtArguments) (*Error, error) ModBmp(context.Context, *ModBmpArguments) (*Error, error) GetRPKI(*Arguments, GobgpApi_GetRPKIServer) error ModRPKI(context.Context, *ModRpkiArguments) (*Error, error) GetROA(*Arguments, GobgpApi_GetROAServer) error GetVrfs(*Arguments, GobgpApi_GetVrfsServer) error ModVrf(context.Context, *ModVrfArguments) (*Error, error) GetDefinedSet(context.Context, *DefinedSet) (*DefinedSet, error) GetDefinedSets(*DefinedSet, GobgpApi_GetDefinedSetsServer) error ModDefinedSet(context.Context, *ModDefinedSetArguments) (*Error, error) GetStatement(context.Context, *Statement) (*Statement, error) GetStatements(*Statement, GobgpApi_GetStatementsServer) error ModStatement(context.Context, *ModStatementArguments) (*Error, error) GetPolicy(context.Context, *Policy) (*Policy, error) GetPolicies(*Policy, GobgpApi_GetPoliciesServer) error ModPolicy(context.Context, *ModPolicyArguments) (*Error, error) GetPolicyAssignment(context.Context, *PolicyAssignment) (*PolicyAssignment, error) ModPolicyAssignment(context.Context, *ModPolicyAssignmentArguments) (*Error, error) }
type GobgpApi_GetDefinedSetsClient ¶
type GobgpApi_GetDefinedSetsClient interface { Recv() (*DefinedSet, error) grpc.ClientStream }
type GobgpApi_GetDefinedSetsServer ¶
type GobgpApi_GetDefinedSetsServer interface { Send(*DefinedSet) error grpc.ServerStream }
type GobgpApi_GetMrtClient ¶
type GobgpApi_GetMrtClient interface { Recv() (*MrtMessage, error) grpc.ClientStream }
type GobgpApi_GetMrtServer ¶
type GobgpApi_GetMrtServer interface { Send(*MrtMessage) error grpc.ServerStream }
type GobgpApi_GetNeighborsClient ¶
type GobgpApi_GetNeighborsClient interface { Recv() (*Peer, error) grpc.ClientStream }
type GobgpApi_GetNeighborsServer ¶
type GobgpApi_GetNeighborsServer interface { Send(*Peer) error grpc.ServerStream }
type GobgpApi_GetPoliciesClient ¶
type GobgpApi_GetPoliciesClient interface { Recv() (*Policy, error) grpc.ClientStream }
type GobgpApi_GetPoliciesServer ¶
type GobgpApi_GetPoliciesServer interface { Send(*Policy) error grpc.ServerStream }
type GobgpApi_GetROAClient ¶
type GobgpApi_GetROAClient interface { Recv() (*ROA, error) grpc.ClientStream }
type GobgpApi_GetROAServer ¶
type GobgpApi_GetROAServer interface { Send(*ROA) error grpc.ServerStream }
type GobgpApi_GetRPKIClient ¶
type GobgpApi_GetRPKIClient interface { Recv() (*RPKI, error) grpc.ClientStream }
type GobgpApi_GetRPKIServer ¶
type GobgpApi_GetRPKIServer interface { Send(*RPKI) error grpc.ServerStream }
type GobgpApi_GetStatementsClient ¶
type GobgpApi_GetStatementsClient interface { Recv() (*Statement, error) grpc.ClientStream }
type GobgpApi_GetStatementsServer ¶
type GobgpApi_GetStatementsServer interface { Send(*Statement) error grpc.ServerStream }
type GobgpApi_GetVrfsClient ¶
type GobgpApi_GetVrfsClient interface { Recv() (*Vrf, error) grpc.ClientStream }
type GobgpApi_GetVrfsServer ¶
type GobgpApi_GetVrfsServer interface { Send(*Vrf) error grpc.ServerStream }
type GobgpApi_ModPathsClient ¶
type GobgpApi_ModPathsClient interface { Send(*ModPathsArguments) error CloseAndRecv() (*Error, error) grpc.ClientStream }
type GobgpApi_ModPathsServer ¶
type GobgpApi_ModPathsServer interface { SendAndClose(*Error) error Recv() (*ModPathsArguments, error) grpc.ServerStream }
type GobgpApi_MonitorBestChangedClient ¶
type GobgpApi_MonitorBestChangedClient interface { Recv() (*Destination, error) grpc.ClientStream }
type GobgpApi_MonitorBestChangedServer ¶
type GobgpApi_MonitorBestChangedServer interface { Send(*Destination) error grpc.ServerStream }
type GobgpApi_MonitorPeerStateClient ¶
type GobgpApi_MonitorPeerStateClient interface { Recv() (*Peer, error) grpc.ClientStream }
type GobgpApi_MonitorPeerStateServer ¶
type GobgpApi_MonitorPeerStateServer interface { Send(*Peer) error grpc.ServerStream }
type GobgpApi_MonitorROAValidationClient ¶
type GobgpApi_MonitorROAValidationClient interface { Recv() (*ROAResult, error) grpc.ClientStream }
type GobgpApi_MonitorROAValidationServer ¶
type GobgpApi_MonitorROAValidationServer interface { Send(*ROAResult) error grpc.ServerStream }
type MatchSet ¶
type MatchSet struct { Type MatchType `protobuf:"varint,1,opt,name=type,enum=gobgpapi.MatchType" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*MatchSet) Descriptor ¶
func (*MatchSet) ProtoMessage ¶
func (*MatchSet) ProtoMessage()
type MedAction ¶
type MedAction struct { Type MedActionType `protobuf:"varint,1,opt,name=type,enum=gobgpapi.MedActionType" json:"type,omitempty"` Value int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"` }
func (*MedAction) Descriptor ¶
func (*MedAction) ProtoMessage ¶
func (*MedAction) ProtoMessage()
type MedActionType ¶
type MedActionType int32
const ( MedActionType_MED_MOD MedActionType = 0 MedActionType_MED_REPLACE MedActionType = 1 )
func (MedActionType) EnumDescriptor ¶
func (MedActionType) EnumDescriptor() ([]byte, []int)
func (MedActionType) String ¶
func (x MedActionType) String() string
type Message ¶
type Message struct { NOTIFICATION uint64 `protobuf:"varint,1,opt,name=NOTIFICATION" json:"NOTIFICATION,omitempty"` UPDATE uint64 `protobuf:"varint,2,opt,name=UPDATE" json:"UPDATE,omitempty"` OPEN uint64 `protobuf:"varint,3,opt,name=OPEN" json:"OPEN,omitempty"` KEEPALIVE uint64 `protobuf:"varint,4,opt,name=KEEPALIVE" json:"KEEPALIVE,omitempty"` REFRESH uint64 `protobuf:"varint,5,opt,name=REFRESH" json:"REFRESH,omitempty"` DISCARDED uint64 `protobuf:"varint,6,opt,name=DISCARDED" json:"DISCARDED,omitempty"` TOTAL uint64 `protobuf:"varint,7,opt,name=TOTAL" json:"TOTAL,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Messages ¶
type Messages struct { Received *Message `protobuf:"bytes,1,opt,name=received" json:"received,omitempty"` Sent *Message `protobuf:"bytes,2,opt,name=sent" json:"sent,omitempty"` }
func (*Messages) Descriptor ¶
func (*Messages) GetReceived ¶
func (*Messages) ProtoMessage ¶
func (*Messages) ProtoMessage()
type ModBmpArguments ¶
type ModBmpArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"` Type ModBmpArguments_MonitoringPolicy `protobuf:"varint,4,opt,name=type,enum=gobgpapi.ModBmpArguments_MonitoringPolicy" json:"type,omitempty"` }
func (*ModBmpArguments) Descriptor ¶
func (*ModBmpArguments) Descriptor() ([]byte, []int)
func (*ModBmpArguments) ProtoMessage ¶
func (*ModBmpArguments) ProtoMessage()
func (*ModBmpArguments) Reset ¶
func (m *ModBmpArguments) Reset()
func (*ModBmpArguments) String ¶
func (m *ModBmpArguments) String() string
type ModBmpArguments_MonitoringPolicy ¶
type ModBmpArguments_MonitoringPolicy int32
const ( ModBmpArguments_PRE ModBmpArguments_MonitoringPolicy = 0 ModBmpArguments_POST ModBmpArguments_MonitoringPolicy = 1 ModBmpArguments_BOTH ModBmpArguments_MonitoringPolicy = 2 )
func (ModBmpArguments_MonitoringPolicy) EnumDescriptor ¶
func (ModBmpArguments_MonitoringPolicy) EnumDescriptor() ([]byte, []int)
func (ModBmpArguments_MonitoringPolicy) String ¶
func (x ModBmpArguments_MonitoringPolicy) String() string
type ModDefinedSetArguments ¶
type ModDefinedSetArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Set *DefinedSet `protobuf:"bytes,2,opt,name=set" json:"set,omitempty"` }
func (*ModDefinedSetArguments) Descriptor ¶
func (*ModDefinedSetArguments) Descriptor() ([]byte, []int)
func (*ModDefinedSetArguments) GetSet ¶
func (m *ModDefinedSetArguments) GetSet() *DefinedSet
func (*ModDefinedSetArguments) ProtoMessage ¶
func (*ModDefinedSetArguments) ProtoMessage()
func (*ModDefinedSetArguments) Reset ¶
func (m *ModDefinedSetArguments) Reset()
func (*ModDefinedSetArguments) String ¶
func (m *ModDefinedSetArguments) String() string
type ModGlobalConfigArguments ¶
type ModGlobalConfigArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Global *Global `protobuf:"bytes,2,opt,name=global" json:"global,omitempty"` }
func (*ModGlobalConfigArguments) Descriptor ¶
func (*ModGlobalConfigArguments) Descriptor() ([]byte, []int)
func (*ModGlobalConfigArguments) GetGlobal ¶
func (m *ModGlobalConfigArguments) GetGlobal() *Global
func (*ModGlobalConfigArguments) ProtoMessage ¶
func (*ModGlobalConfigArguments) ProtoMessage()
func (*ModGlobalConfigArguments) Reset ¶
func (m *ModGlobalConfigArguments) Reset()
func (*ModGlobalConfigArguments) String ¶
func (m *ModGlobalConfigArguments) String() string
type ModMrtArguments ¶
type ModMrtArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"` }
func (*ModMrtArguments) Descriptor ¶
func (*ModMrtArguments) Descriptor() ([]byte, []int)
func (*ModMrtArguments) ProtoMessage ¶
func (*ModMrtArguments) ProtoMessage()
func (*ModMrtArguments) Reset ¶
func (m *ModMrtArguments) Reset()
func (*ModMrtArguments) String ¶
func (m *ModMrtArguments) String() string
type ModNeighborArguments ¶
type ModNeighborArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Peer *Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` }
func (*ModNeighborArguments) Descriptor ¶
func (*ModNeighborArguments) Descriptor() ([]byte, []int)
func (*ModNeighborArguments) GetPeer ¶
func (m *ModNeighborArguments) GetPeer() *Peer
func (*ModNeighborArguments) ProtoMessage ¶
func (*ModNeighborArguments) ProtoMessage()
func (*ModNeighborArguments) Reset ¶
func (m *ModNeighborArguments) Reset()
func (*ModNeighborArguments) String ¶
func (m *ModNeighborArguments) String() string
type ModPathArguments ¶
type ModPathArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Resource Resource `protobuf:"varint,2,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Path *Path `protobuf:"bytes,4,opt,name=path" json:"path,omitempty"` Uuid []byte `protobuf:"bytes,5,opt,name=uuid,proto3" json:"uuid,omitempty"` }
func (*ModPathArguments) Descriptor ¶
func (*ModPathArguments) Descriptor() ([]byte, []int)
func (*ModPathArguments) GetPath ¶
func (m *ModPathArguments) GetPath() *Path
func (*ModPathArguments) ProtoMessage ¶
func (*ModPathArguments) ProtoMessage()
func (*ModPathArguments) Reset ¶
func (m *ModPathArguments) Reset()
func (*ModPathArguments) String ¶
func (m *ModPathArguments) String() string
type ModPathResponse ¶
type ModPathResponse struct {
Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}
func (*ModPathResponse) Descriptor ¶
func (*ModPathResponse) Descriptor() ([]byte, []int)
func (*ModPathResponse) ProtoMessage ¶
func (*ModPathResponse) ProtoMessage()
func (*ModPathResponse) Reset ¶
func (m *ModPathResponse) Reset()
func (*ModPathResponse) String ¶
func (m *ModPathResponse) String() string
type ModPathsArguments ¶
type ModPathsArguments struct { Resource Resource `protobuf:"varint,1,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Paths []*Path `protobuf:"bytes,3,rep,name=paths" json:"paths,omitempty"` }
func (*ModPathsArguments) Descriptor ¶
func (*ModPathsArguments) Descriptor() ([]byte, []int)
func (*ModPathsArguments) GetPaths ¶
func (m *ModPathsArguments) GetPaths() []*Path
func (*ModPathsArguments) ProtoMessage ¶
func (*ModPathsArguments) ProtoMessage()
func (*ModPathsArguments) Reset ¶
func (m *ModPathsArguments) Reset()
func (*ModPathsArguments) String ¶
func (m *ModPathsArguments) String() string
type ModPolicyArguments ¶
type ModPolicyArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Policy *Policy `protobuf:"bytes,2,opt,name=policy" json:"policy,omitempty"` // if this flag is set, gobgpd won't define new statements // but refer existing statements using statement's names in this arguments. // this flag only works with Operation_ADD ReferExistingStatements bool `protobuf:"varint,3,opt,name=refer_existing_statements" json:"refer_existing_statements,omitempty"` // if this flag is set, gobgpd won't delete any statements // even if some statements get not used by any policy by this operation. // this flag means nothing if it is used with Operation_ADD PreserveStatements bool `protobuf:"varint,4,opt,name=preserve_statements" json:"preserve_statements,omitempty"` }
func (*ModPolicyArguments) Descriptor ¶
func (*ModPolicyArguments) Descriptor() ([]byte, []int)
func (*ModPolicyArguments) GetPolicy ¶
func (m *ModPolicyArguments) GetPolicy() *Policy
func (*ModPolicyArguments) ProtoMessage ¶
func (*ModPolicyArguments) ProtoMessage()
func (*ModPolicyArguments) Reset ¶
func (m *ModPolicyArguments) Reset()
func (*ModPolicyArguments) String ¶
func (m *ModPolicyArguments) String() string
type ModPolicyAssignmentArguments ¶
type ModPolicyAssignmentArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Assignment *PolicyAssignment `protobuf:"bytes,2,opt,name=assignment" json:"assignment,omitempty"` }
func (*ModPolicyAssignmentArguments) Descriptor ¶
func (*ModPolicyAssignmentArguments) Descriptor() ([]byte, []int)
func (*ModPolicyAssignmentArguments) GetAssignment ¶
func (m *ModPolicyAssignmentArguments) GetAssignment() *PolicyAssignment
func (*ModPolicyAssignmentArguments) ProtoMessage ¶
func (*ModPolicyAssignmentArguments) ProtoMessage()
func (*ModPolicyAssignmentArguments) Reset ¶
func (m *ModPolicyAssignmentArguments) Reset()
func (*ModPolicyAssignmentArguments) String ¶
func (m *ModPolicyAssignmentArguments) String() string
type ModRpkiArguments ¶
type ModRpkiArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"` }
func (*ModRpkiArguments) Descriptor ¶
func (*ModRpkiArguments) Descriptor() ([]byte, []int)
func (*ModRpkiArguments) ProtoMessage ¶
func (*ModRpkiArguments) ProtoMessage()
func (*ModRpkiArguments) Reset ¶
func (m *ModRpkiArguments) Reset()
func (*ModRpkiArguments) String ¶
func (m *ModRpkiArguments) String() string
type ModStatementArguments ¶
type ModStatementArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Statement *Statement `protobuf:"bytes,2,opt,name=statement" json:"statement,omitempty"` }
func (*ModStatementArguments) Descriptor ¶
func (*ModStatementArguments) Descriptor() ([]byte, []int)
func (*ModStatementArguments) GetStatement ¶
func (m *ModStatementArguments) GetStatement() *Statement
func (*ModStatementArguments) ProtoMessage ¶
func (*ModStatementArguments) ProtoMessage()
func (*ModStatementArguments) Reset ¶
func (m *ModStatementArguments) Reset()
func (*ModStatementArguments) String ¶
func (m *ModStatementArguments) String() string
type ModVrfArguments ¶
type ModVrfArguments struct { Operation Operation `protobuf:"varint,1,opt,name=operation,enum=gobgpapi.Operation" json:"operation,omitempty"` Vrf *Vrf `protobuf:"bytes,2,opt,name=vrf" json:"vrf,omitempty"` }
func (*ModVrfArguments) Descriptor ¶
func (*ModVrfArguments) Descriptor() ([]byte, []int)
func (*ModVrfArguments) GetVrf ¶
func (m *ModVrfArguments) GetVrf() *Vrf
func (*ModVrfArguments) ProtoMessage ¶
func (*ModVrfArguments) ProtoMessage()
func (*ModVrfArguments) Reset ¶
func (m *ModVrfArguments) Reset()
func (*ModVrfArguments) String ¶
func (m *ModVrfArguments) String() string
type MrtArguments ¶
type MrtArguments struct { Resource Resource `protobuf:"varint,1,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"` Family uint32 `protobuf:"varint,2,opt,name=family" json:"family,omitempty"` Interval uint64 `protobuf:"varint,3,opt,name=interval" json:"interval,omitempty"` NeighborAddress string `protobuf:"bytes,4,opt,name=neighbor_address" json:"neighbor_address,omitempty"` }
func (*MrtArguments) Descriptor ¶
func (*MrtArguments) Descriptor() ([]byte, []int)
func (*MrtArguments) ProtoMessage ¶
func (*MrtArguments) ProtoMessage()
func (*MrtArguments) Reset ¶
func (m *MrtArguments) Reset()
func (*MrtArguments) String ¶
func (m *MrtArguments) String() string
type MrtMessage ¶
type MrtMessage struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*MrtMessage) Descriptor ¶
func (*MrtMessage) Descriptor() ([]byte, []int)
func (*MrtMessage) ProtoMessage ¶
func (*MrtMessage) ProtoMessage()
func (*MrtMessage) Reset ¶
func (m *MrtMessage) Reset()
func (*MrtMessage) String ¶
func (m *MrtMessage) String() string
type Path ¶
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"` Age int64 `protobuf:"varint,3,opt,name=age" json:"age,omitempty"` Best bool `protobuf:"varint,4,opt,name=best" json:"best,omitempty"` IsWithdraw bool `protobuf:"varint,5,opt,name=is_withdraw" json:"is_withdraw,omitempty"` Validation int32 `protobuf:"varint,6,opt,name=validation" json:"validation,omitempty"` NoImplicitWithdraw bool `protobuf:"varint,7,opt,name=no_implicit_withdraw" json:"no_implicit_withdraw,omitempty"` Family uint32 `protobuf:"varint,8,opt,name=family" json:"family,omitempty"` SourceAsn uint32 `protobuf:"varint,9,opt,name=source_asn" json:"source_asn,omitempty"` SourceId string `protobuf:"bytes,10,opt,name=source_id" json:"source_id,omitempty"` Filtered bool `protobuf:"varint,11,opt,name=filtered" json:"filtered,omitempty"` }
func (*Path) Descriptor ¶
func (*Path) ProtoMessage ¶
func (*Path) ProtoMessage()
type Peer ¶
type Peer struct { Families []uint32 `protobuf:"varint,2,rep,name=families" json:"families,omitempty"` ApplyPolicy *ApplyPolicy `protobuf:"bytes,3,opt,name=apply_policy" json:"apply_policy,omitempty"` Conf *PeerConf `protobuf:"bytes,5,opt,name=conf" json:"conf,omitempty"` EbgpMultihop *EbgpMultihop `protobuf:"bytes,6,opt,name=ebgp_multihop" json:"ebgp_multihop,omitempty"` RouteReflector *RouteReflector `protobuf:"bytes,10,opt,name=route_reflector" json:"route_reflector,omitempty"` Info *PeerState `protobuf:"bytes,11,opt,name=info" json:"info,omitempty"` Timers *Timers `protobuf:"bytes,12,opt,name=timers" json:"timers,omitempty"` Transport *Transport `protobuf:"bytes,13,opt,name=transport" json:"transport,omitempty"` RouteServer *RouteServer `protobuf:"bytes,15,opt,name=route_server" json:"route_server,omitempty"` }
func (*Peer) Descriptor ¶
func (*Peer) GetApplyPolicy ¶
func (m *Peer) GetApplyPolicy() *ApplyPolicy
func (*Peer) GetEbgpMultihop ¶
func (m *Peer) GetEbgpMultihop() *EbgpMultihop
func (*Peer) GetRouteReflector ¶
func (m *Peer) GetRouteReflector() *RouteReflector
func (*Peer) GetRouteServer ¶
func (m *Peer) GetRouteServer() *RouteServer
func (*Peer) GetTransport ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
type PeerConf ¶
type PeerConf struct { AuthPassword string `protobuf:"bytes,1,opt,name=auth_password" json:"auth_password,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` LocalAs uint32 `protobuf:"varint,3,opt,name=local_as" json:"local_as,omitempty"` NeighborAddress string `protobuf:"bytes,4,opt,name=neighbor_address" json:"neighbor_address,omitempty"` PeerAs uint32 `protobuf:"varint,5,opt,name=peer_as" json:"peer_as,omitempty"` PeerGroup string `protobuf:"bytes,6,opt,name=peer_group" json:"peer_group,omitempty"` PeerType uint32 `protobuf:"varint,7,opt,name=peer_type" json:"peer_type,omitempty"` RemovePrivateAs uint32 `protobuf:"varint,8,opt,name=remove_private_as" json:"remove_private_as,omitempty"` RouteFlapDamping bool `protobuf:"varint,9,opt,name=route_flap_damping" json:"route_flap_damping,omitempty"` SendCommunity uint32 `protobuf:"varint,10,opt,name=send_community" json:"send_community,omitempty"` RemoteCap [][]byte `protobuf:"bytes,11,rep,name=remote_cap,proto3" json:"remote_cap,omitempty"` LocalCap [][]byte `protobuf:"bytes,12,rep,name=local_cap,proto3" json:"local_cap,omitempty"` Id string `protobuf:"bytes,13,opt,name=id" json:"id,omitempty"` }
func (*PeerConf) Descriptor ¶
func (*PeerConf) ProtoMessage ¶
func (*PeerConf) ProtoMessage()
type PeerState ¶
type PeerState struct { AuthPassword string `protobuf:"bytes,1,opt,name=auth_password" json:"auth_password,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` LocalAs uint32 `protobuf:"varint,3,opt,name=local_as" json:"local_as,omitempty"` Messages *Messages `protobuf:"bytes,4,opt,name=messages" json:"messages,omitempty"` NeighborAddress string `protobuf:"bytes,5,opt,name=neighbor_address" json:"neighbor_address,omitempty"` PeerAs uint32 `protobuf:"varint,6,opt,name=peer_as" json:"peer_as,omitempty"` PeerGroup string `protobuf:"bytes,7,opt,name=peer_group" json:"peer_group,omitempty"` PeerType uint32 `protobuf:"varint,8,opt,name=peer_type" json:"peer_type,omitempty"` Queues *Queues `protobuf:"bytes,9,opt,name=queues" json:"queues,omitempty"` RemovePrivateAs uint32 `protobuf:"varint,10,opt,name=remove_private_as" json:"remove_private_as,omitempty"` RouteFlapDamping bool `protobuf:"varint,11,opt,name=route_flap_damping" json:"route_flap_damping,omitempty"` SendCommunity uint32 `protobuf:"varint,12,opt,name=send_community" json:"send_community,omitempty"` SessionState uint32 `protobuf:"varint,13,opt,name=session_state" json:"session_state,omitempty"` SupportedCapabilities []string `protobuf:"bytes,14,rep,name=supported_capabilities" json:"supported_capabilities,omitempty"` BgpState string `protobuf:"bytes,15,opt,name=bgp_state" json:"bgp_state,omitempty"` AdminState string `protobuf:"bytes,16,opt,name=admin_state" json:"admin_state,omitempty"` Received uint32 `protobuf:"varint,17,opt,name=received" json:"received,omitempty"` Accepted uint32 `protobuf:"varint,18,opt,name=accepted" json:"accepted,omitempty"` Advertized uint32 `protobuf:"varint,19,opt,name=advertized" json:"advertized,omitempty"` OutQ uint32 `protobuf:"varint,20,opt,name=out_q" json:"out_q,omitempty"` Flops uint32 `protobuf:"varint,21,opt,name=flops" json:"flops,omitempty"` }
func (*PeerState) Descriptor ¶
func (*PeerState) GetMessages ¶
func (*PeerState) ProtoMessage ¶
func (*PeerState) ProtoMessage()
type Policy ¶
type Policy struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Statements []*Statement `protobuf:"bytes,2,rep,name=statements" json:"statements,omitempty"` }
func (*Policy) Descriptor ¶
func (*Policy) GetStatements ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
type PolicyAssignment ¶
type PolicyAssignment struct { Type PolicyType `protobuf:"varint,1,opt,name=type,enum=gobgpapi.PolicyType" json:"type,omitempty"` Resource Resource `protobuf:"varint,2,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Policies []*Policy `protobuf:"bytes,4,rep,name=policies" json:"policies,omitempty"` Default RouteAction `protobuf:"varint,5,opt,name=default,enum=gobgpapi.RouteAction" json:"default,omitempty"` }
func (*PolicyAssignment) Descriptor ¶
func (*PolicyAssignment) Descriptor() ([]byte, []int)
func (*PolicyAssignment) GetPolicies ¶
func (m *PolicyAssignment) GetPolicies() []*Policy
func (*PolicyAssignment) ProtoMessage ¶
func (*PolicyAssignment) ProtoMessage()
func (*PolicyAssignment) Reset ¶
func (m *PolicyAssignment) Reset()
func (*PolicyAssignment) String ¶
func (m *PolicyAssignment) String() string
type PolicyType ¶
type PolicyType int32
const ( PolicyType_IN PolicyType = 0 PolicyType_IMPORT PolicyType = 1 PolicyType_EXPORT PolicyType = 2 )
func (PolicyType) EnumDescriptor ¶
func (PolicyType) EnumDescriptor() ([]byte, []int)
func (PolicyType) String ¶
func (x PolicyType) String() string
type Prefix ¶
type Prefix struct { 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 (*Prefix) Descriptor ¶
func (*Prefix) ProtoMessage ¶
func (*Prefix) ProtoMessage()
type Queues ¶
type Queues struct { Input uint32 `protobuf:"varint,1,opt,name=input" json:"input,omitempty"` Output uint32 `protobuf:"varint,2,opt,name=output" json:"output,omitempty"` }
func (*Queues) Descriptor ¶
func (*Queues) ProtoMessage ¶
func (*Queues) ProtoMessage()
type ROA ¶
type ROA struct { As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"` Prefixlen uint32 `protobuf:"varint,2,opt,name=prefixlen" json:"prefixlen,omitempty"` Maxlen uint32 `protobuf:"varint,3,opt,name=maxlen" json:"maxlen,omitempty"` Prefix string `protobuf:"bytes,4,opt,name=prefix" json:"prefix,omitempty"` Conf *RPKIConf `protobuf:"bytes,5,opt,name=conf" json:"conf,omitempty"` }
func (*ROA) Descriptor ¶
func (*ROA) ProtoMessage ¶
func (*ROA) ProtoMessage()
type ROAResult ¶
type ROAResult struct { Reason ROAResult_ValidationReason `protobuf:"varint,1,opt,name=reason,enum=gobgpapi.ROAResult_ValidationReason" json:"reason,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` AspathAttr []byte `protobuf:"bytes,4,opt,name=aspath_attr,proto3" json:"aspath_attr,omitempty"` OriginAs uint32 `protobuf:"varint,5,opt,name=origin_as" json:"origin_as,omitempty"` Prefix string `protobuf:"bytes,6,opt,name=prefix" json:"prefix,omitempty"` OldResult ROAResult_ValidationResult `protobuf:"varint,7,opt,name=old_result,enum=gobgpapi.ROAResult_ValidationResult" json:"old_result,omitempty"` NewResult ROAResult_ValidationResult `protobuf:"varint,8,opt,name=new_result,enum=gobgpapi.ROAResult_ValidationResult" json:"new_result,omitempty"` Roas []*ROA `protobuf:"bytes,9,rep,name=roas" json:"roas,omitempty"` }
func (*ROAResult) Descriptor ¶
func (*ROAResult) ProtoMessage ¶
func (*ROAResult) ProtoMessage()
type ROAResult_ValidationReason ¶
type ROAResult_ValidationReason int32
const ( ROAResult_UPDATE ROAResult_ValidationReason = 0 ROAResult_WITHDRAW ROAResult_ValidationReason = 1 ROAResult_PEER_DOWN ROAResult_ValidationReason = 2 )
func (ROAResult_ValidationReason) EnumDescriptor ¶
func (ROAResult_ValidationReason) EnumDescriptor() ([]byte, []int)
func (ROAResult_ValidationReason) String ¶
func (x ROAResult_ValidationReason) String() string
type ROAResult_ValidationResult ¶
type ROAResult_ValidationResult int32
const ( ROAResult_NONE ROAResult_ValidationResult = 0 ROAResult_NOT_FOUND ROAResult_ValidationResult = 1 ROAResult_VALID ROAResult_ValidationResult = 2 ROAResult_INVALID ROAResult_ValidationResult = 3 )
func (ROAResult_ValidationResult) EnumDescriptor ¶
func (ROAResult_ValidationResult) EnumDescriptor() ([]byte, []int)
func (ROAResult_ValidationResult) String ¶
func (x ROAResult_ValidationResult) String() string
type RPKI ¶
type RPKI struct { Conf *RPKIConf `protobuf:"bytes,1,opt,name=conf" json:"conf,omitempty"` State *RPKIState `protobuf:"bytes,2,opt,name=state" json:"state,omitempty"` }
func (*RPKI) Descriptor ¶
func (*RPKI) ProtoMessage ¶
func (*RPKI) ProtoMessage()
type RPKIConf ¶
type RPKIConf struct { Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` RemotePort uint32 `protobuf:"varint,2,opt,name=remote_port" json:"remote_port,omitempty"` }
func (*RPKIConf) Descriptor ¶
func (*RPKIConf) ProtoMessage ¶
func (*RPKIConf) ProtoMessage()
type RPKIState ¶
type RPKIState struct { Uptime int64 `protobuf:"varint,1,opt,name=uptime" json:"uptime,omitempty"` Downtime int64 `protobuf:"varint,2,opt,name=downtime" json:"downtime,omitempty"` Up bool `protobuf:"varint,3,opt,name=up" json:"up,omitempty"` RecordIpv4 uint32 `protobuf:"varint,4,opt,name=record_ipv4" json:"record_ipv4,omitempty"` RecordIpv6 uint32 `protobuf:"varint,5,opt,name=record_ipv6" json:"record_ipv6,omitempty"` PrefixIpv4 uint32 `protobuf:"varint,6,opt,name=prefix_ipv4" json:"prefix_ipv4,omitempty"` PrefixIpv6 uint32 `protobuf:"varint,7,opt,name=prefix_ipv6" json:"prefix_ipv6,omitempty"` Serial uint32 `protobuf:"varint,8,opt,name=serial" json:"serial,omitempty"` ReceivedIpv4 int64 `protobuf:"varint,9,opt,name=received_ipv4" json:"received_ipv4,omitempty"` ReceivedIpv6 int64 `protobuf:"varint,10,opt,name=received_ipv6" json:"received_ipv6,omitempty"` SerialNotify int64 `protobuf:"varint,11,opt,name=serial_notify" json:"serial_notify,omitempty"` CacheReset int64 `protobuf:"varint,12,opt,name=cache_reset" json:"cache_reset,omitempty"` CacheResponse int64 `protobuf:"varint,13,opt,name=cache_response" json:"cache_response,omitempty"` EndOfData int64 `protobuf:"varint,14,opt,name=end_of_data" json:"end_of_data,omitempty"` Error int64 `protobuf:"varint,15,opt,name=error" json:"error,omitempty"` SerialQuery int64 `protobuf:"varint,16,opt,name=serial_query" json:"serial_query,omitempty"` ResetQuery int64 `protobuf:"varint,17,opt,name=reset_query" json:"reset_query,omitempty"` }
func (*RPKIState) Descriptor ¶
func (*RPKIState) ProtoMessage ¶
func (*RPKIState) ProtoMessage()
type RouteAction ¶
type RouteAction int32
const ( RouteAction_NONE RouteAction = 0 RouteAction_ACCEPT RouteAction = 1 RouteAction_REJECT RouteAction = 2 )
func (RouteAction) EnumDescriptor ¶
func (RouteAction) EnumDescriptor() ([]byte, []int)
func (RouteAction) String ¶
func (x RouteAction) String() string
type RouteReflector ¶
type RouteReflector struct { RouteReflectorClient bool `protobuf:"varint,1,opt,name=route_reflector_client" json:"route_reflector_client,omitempty"` RouteReflectorClusterId uint32 `protobuf:"varint,2,opt,name=route_reflector_cluster_id" json:"route_reflector_cluster_id,omitempty"` }
func (*RouteReflector) Descriptor ¶
func (*RouteReflector) Descriptor() ([]byte, []int)
func (*RouteReflector) ProtoMessage ¶
func (*RouteReflector) ProtoMessage()
func (*RouteReflector) Reset ¶
func (m *RouteReflector) Reset()
func (*RouteReflector) String ¶
func (m *RouteReflector) String() string
type RouteServer ¶
type RouteServer struct {
RouteServerClient bool `protobuf:"varint,1,opt,name=route_server_client" json:"route_server_client,omitempty"`
}
func (*RouteServer) Descriptor ¶
func (*RouteServer) Descriptor() ([]byte, []int)
func (*RouteServer) ProtoMessage ¶
func (*RouteServer) ProtoMessage()
func (*RouteServer) Reset ¶
func (m *RouteServer) Reset()
func (*RouteServer) String ¶
func (m *RouteServer) String() string
type Statement ¶
type Statement struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Conditions *Conditions `protobuf:"bytes,2,opt,name=conditions" json:"conditions,omitempty"` Actions *Actions `protobuf:"bytes,3,opt,name=actions" json:"actions,omitempty"` }
func (*Statement) Descriptor ¶
func (*Statement) GetActions ¶
func (*Statement) GetConditions ¶
func (m *Statement) GetConditions() *Conditions
func (*Statement) ProtoMessage ¶
func (*Statement) ProtoMessage()
type Table ¶
type Table struct { Type Resource `protobuf:"varint,1,opt,name=type,enum=gobgpapi.Resource" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Family uint32 `protobuf:"varint,3,opt,name=family" json:"family,omitempty"` Destinations []*Destination `protobuf:"bytes,4,rep,name=destinations" json:"destinations,omitempty"` }
func (*Table) Descriptor ¶
func (*Table) GetDestinations ¶
func (m *Table) GetDestinations() []*Destination
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
type Timers ¶
type Timers struct { Config *TimersConfig `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"` State *TimersState `protobuf:"bytes,2,opt,name=state" json:"state,omitempty"` }
func (*Timers) Descriptor ¶
func (*Timers) GetConfig ¶
func (m *Timers) GetConfig() *TimersConfig
func (*Timers) GetState ¶
func (m *Timers) GetState() *TimersState
func (*Timers) ProtoMessage ¶
func (*Timers) ProtoMessage()
type TimersConfig ¶
type TimersConfig struct { ConnectRetry uint64 `protobuf:"varint,1,opt,name=connect_retry" json:"connect_retry,omitempty"` HoldTime uint64 `protobuf:"varint,2,opt,name=hold_time" json:"hold_time,omitempty"` KeepaliveInterval uint64 `protobuf:"varint,3,opt,name=keepalive_interval" json:"keepalive_interval,omitempty"` MinimumAdvertisementInterval uint64 `protobuf:"varint,4,opt,name=minimum_advertisement_interval" json:"minimum_advertisement_interval,omitempty"` }
func (*TimersConfig) Descriptor ¶
func (*TimersConfig) Descriptor() ([]byte, []int)
func (*TimersConfig) ProtoMessage ¶
func (*TimersConfig) ProtoMessage()
func (*TimersConfig) Reset ¶
func (m *TimersConfig) Reset()
func (*TimersConfig) String ¶
func (m *TimersConfig) String() string
type TimersState ¶
type TimersState struct { ConnectRetry uint64 `protobuf:"varint,1,opt,name=connect_retry" json:"connect_retry,omitempty"` HoldTime uint64 `protobuf:"varint,2,opt,name=hold_time" json:"hold_time,omitempty"` KeepaliveInterval uint64 `protobuf:"varint,3,opt,name=keepalive_interval" json:"keepalive_interval,omitempty"` MinimumAdvertisementInterval uint64 `protobuf:"varint,4,opt,name=minimum_advertisement_interval" json:"minimum_advertisement_interval,omitempty"` NegotiatedHoldTime uint64 `protobuf:"varint,5,opt,name=negotiated_hold_time" json:"negotiated_hold_time,omitempty"` Uptime uint64 `protobuf:"varint,6,opt,name=uptime" json:"uptime,omitempty"` Downtime uint64 `protobuf:"varint,7,opt,name=downtime" json:"downtime,omitempty"` }
func (*TimersState) Descriptor ¶
func (*TimersState) Descriptor() ([]byte, []int)
func (*TimersState) ProtoMessage ¶
func (*TimersState) ProtoMessage()
func (*TimersState) Reset ¶
func (m *TimersState) Reset()
func (*TimersState) String ¶
func (m *TimersState) String() string
type Transport ¶
type Transport struct { LocalAddress string `protobuf:"bytes,1,opt,name=local_address" json:"local_address,omitempty"` LocalPort uint32 `protobuf:"varint,2,opt,name=local_port" json:"local_port,omitempty"` MtuDiscovery bool `protobuf:"varint,3,opt,name=mtu_discovery" json:"mtu_discovery,omitempty"` PassiveMode bool `protobuf:"varint,4,opt,name=passive_mode" json:"passive_mode,omitempty"` RemoteAddress string `protobuf:"bytes,5,opt,name=remote_address" json:"remote_address,omitempty"` RemotePort uint32 `protobuf:"varint,6,opt,name=remote_port" json:"remote_port,omitempty"` TcpMss uint32 `protobuf:"varint,7,opt,name=tcp_mss" json:"tcp_mss,omitempty"` }
func (*Transport) Descriptor ¶
func (*Transport) ProtoMessage ¶
func (*Transport) ProtoMessage()
type Vrf ¶
type Vrf struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Rd []byte `protobuf:"bytes,2,opt,name=rd,proto3" json:"rd,omitempty"` ImportRt [][]byte `protobuf:"bytes,3,rep,name=import_rt,proto3" json:"import_rt,omitempty"` ExportRt [][]byte `protobuf:"bytes,4,rep,name=export_rt,proto3" json:"export_rt,omitempty"` }
func (*Vrf) Descriptor ¶
func (*Vrf) ProtoMessage ¶
func (*Vrf) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.