gobgpapi

package
Version: v0.0.0-...-97bc9dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2016 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package gobgpapi is a generated protocol buffer package.

It is generated from these files:

gobgp.proto

It has these top-level messages:

GetNeighborRequest
GetNeighborResponse
Arguments
AddPathRequest
AddPathResponse
DeletePathRequest
DeletePathResponse
AddNeighborRequest
AddNeighborResponse
DeleteNeighborRequest
DeleteNeighborResponse
ResetNeighborRequest
ResetNeighborResponse
SoftResetNeighborRequest
SoftResetNeighborResponse
ShutdownNeighborRequest
ShutdownNeighborResponse
EnableNeighborRequest
EnableNeighborResponse
DisableNeighborRequest
DisableNeighborResponse
EnableMrtRequest
EnableMrtResponse
DisableMrtRequest
DisableMrtResponse
InjectMrtRequest
InjectMrtResponse
AddBmpRequest
AddBmpResponse
DeleteBmpRequest
DeleteBmpResponse
RPKIConf
RPKIState
Rpki
GetRpkiRequest
GetRpkiResponse
AddRpkiRequest
AddRpkiResponse
DeleteRpkiRequest
DeleteRpkiResponse
EnableRpkiRequest
EnableRpkiResponse
DisableRpkiRequest
DisableRpkiResponse
ResetRpkiRequest
ResetRpkiResponse
SoftResetRpkiRequest
SoftResetRpkiResponse
EnableZebraRequest
EnableZebraResponse
GetVrfRequest
GetVrfResponse
AddVrfRequest
AddVrfResponse
DeleteVrfRequest
DeleteVrfResponse
GetDefinedSetRequest
GetDefinedSetResponse
AddDefinedSetRequest
AddDefinedSetResponse
DeleteDefinedSetRequest
DeleteDefinedSetResponse
ReplaceDefinedSetRequest
ReplaceDefinedSetResponse
GetStatementRequest
GetStatementResponse
AddStatementRequest
AddStatementResponse
DeleteStatementRequest
DeleteStatementResponse
ReplaceStatementRequest
ReplaceStatementResponse
GetPolicyRequest
GetPolicyResponse
AddPolicyRequest
AddPolicyResponse
DeletePolicyRequest
DeletePolicyResponse
ReplacePolicyRequest
ReplacePolicyResponse
GetPolicyAssignmentRequest
GetPolicyAssignmentResponse
AddPolicyAssignmentRequest
AddPolicyAssignmentResponse
DeletePolicyAssignmentRequest
DeletePolicyAssignmentResponse
ReplacePolicyAssignmentRequest
ReplacePolicyAssignmentResponse
GetServerRequest
GetServerResponse
StartServerRequest
StartServerResponse
StopServerRequest
StopServerResponse
Path
Destination
Table
GetRibRequest
GetRibResponse
ValidateRibRequest
ValidateRibResponse
Peer
ApplyPolicy
PrefixLimit
PeerConf
EbgpMultihop
RouteReflector
PeerState
Messages
Message
Queues
Timers
TimersConfig
TimersState
Transport
RouteServer
Prefix
DefinedSet
MatchSet
AsPathLength
Conditions
CommunityAction
MedAction
AsPrependAction
NexthopAction
LocalPrefAction
Actions
Statement
Policy
PolicyAssignment
Roa
GetRoaRequest
GetRoaResponse
Vrf
Global
TableInfo
GetRibInfoRequest
GetRibInfoResponse

Index

Constants

This section is empty.

Variables

View Source
var AddBmpRequest_MonitoringPolicy_name = map[int32]string{
	0: "PRE",
	1: "POST",
	2: "BOTH",
}
View Source
var AddBmpRequest_MonitoringPolicy_value = map[string]int32{
	"PRE":  0,
	"POST": 1,
	"BOTH": 2,
}
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 Conditions_RouteType_name = map[int32]string{
	0: "ROUTE_TYPE_NONE",
	1: "ROUTE_TYPE_INTERNAL",
	2: "ROUTE_TYPE_EXTERNAL",
	3: "ROUTE_TYPE_LOCAL",
}
View Source
var Conditions_RouteType_value = map[string]int32{
	"ROUTE_TYPE_NONE":     0,
	"ROUTE_TYPE_INTERNAL": 1,
	"ROUTE_TYPE_EXTERNAL": 2,
	"ROUTE_TYPE_LOCAL":    3,
}
View Source
var DefinedType_name = map[int32]string{
	0: "PREFIX",
	1: "NEIGHBOR",
	2: "TAG",
	3: "AS_PATH",
	4: "COMMUNITY",
	5: "EXT_COMMUNITY",
	6: "LARGE_COMMUNITY",
}
View Source
var DefinedType_value = map[string]int32{
	"PREFIX":          0,
	"NEIGHBOR":        1,
	"TAG":             2,
	"AS_PATH":         3,
	"COMMUNITY":       4,
	"EXT_COMMUNITY":   5,
	"LARGE_COMMUNITY": 6,
}
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 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 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,
}
View Source
var SoftResetNeighborRequest_SoftResetDirection_name = map[int32]string{
	0: "IN",
	1: "OUT",
	2: "BOTH",
}
View Source
var SoftResetNeighborRequest_SoftResetDirection_value = map[string]int32{
	"IN":   0,
	"OUT":  1,
	"BOTH": 2,
}

Functions

func NewAsPathConditionFromApiStruct

func NewAsPathConditionFromApiStruct(a *MatchSet) (*table.AsPathCondition, error)

func NewAsPathLengthConditionFromApiStruct

func NewAsPathLengthConditionFromApiStruct(a *AsPathLength) (*table.AsPathLengthCondition, error)

func NewAsPathPrependActionFromApiStruct

func NewAsPathPrependActionFromApiStruct(a *AsPrependAction) (*table.AsPathPrependAction, error)

func NewCommunityActionFromApiStruct

func NewCommunityActionFromApiStruct(a *CommunityAction) (*table.CommunityAction, error)

func NewCommunityConditionFromApiStruct

func NewCommunityConditionFromApiStruct(a *MatchSet) (*table.CommunityCondition, error)

func NewDefinedSetFromApiStruct

func NewDefinedSetFromApiStruct(a *DefinedSet) (table.DefinedSet, error)

func NewExtCommunityActionFromApiStruct

func NewExtCommunityActionFromApiStruct(a *CommunityAction) (*table.ExtCommunityAction, error)

func NewExtCommunityConditionFromApiStruct

func NewExtCommunityConditionFromApiStruct(a *MatchSet) (*table.ExtCommunityCondition, error)

func NewLargeCommunityActionFromApiStruct

func NewLargeCommunityActionFromApiStruct(a *CommunityAction) (*table.LargeCommunityAction, error)

func NewLargeCommunityConditionFromApiStruct

func NewLargeCommunityConditionFromApiStruct(a *MatchSet) (*table.LargeCommunityCondition, error)

func NewLocalPrefActionFromApiStruct

func NewLocalPrefActionFromApiStruct(a *LocalPrefAction) (*table.LocalPrefAction, error)

func NewMedActionFromApiStruct

func NewMedActionFromApiStruct(a *MedAction) (*table.MedAction, error)

func NewNeighborConditionFromApiStruct

func NewNeighborConditionFromApiStruct(a *MatchSet) (*table.NeighborCondition, error)

func NewNexthopActionFromApiStruct

func NewNexthopActionFromApiStruct(a *NexthopAction) (*table.NexthopAction, error)

func NewPolicyFromApiStruct

func NewPolicyFromApiStruct(a *Policy) (*table.Policy, error)

func NewPrefixConditionFromApiStruct

func NewPrefixConditionFromApiStruct(a *MatchSet) (*table.PrefixCondition, error)

func NewPrefixFromApiStruct

func NewPrefixFromApiStruct(a *Prefix) (*table.Prefix, error)

func NewRouteTypeConditionFromApiStruct

func NewRouteTypeConditionFromApiStruct(a Conditions_RouteType) (*table.RouteTypeCondition, error)

func NewRoutingActionFromApiStruct

func NewRoutingActionFromApiStruct(a RouteAction) (*table.RoutingAction, error)

func NewRpkiValidationConditionFromApiStruct

func NewRpkiValidationConditionFromApiStruct(a int32) (*table.RpkiValidationCondition, error)

func NewStatementFromApiStruct

func NewStatementFromApiStruct(a *Statement) (*table.Statement, error)

func RegisterGobgpApiServer

func RegisterGobgpApiServer(s *grpc.Server, srv GobgpApiServer)

Types

type Actions

type Actions struct {
	RouteAction    RouteAction      `protobuf:"varint,1,opt,name=route_action,json=routeAction,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=asPrepend" json:"as_prepend,omitempty"`
	ExtCommunity   *CommunityAction `protobuf:"bytes,5,opt,name=ext_community,json=extCommunity" json:"ext_community,omitempty"`
	Nexthop        *NexthopAction   `protobuf:"bytes,6,opt,name=nexthop" json:"nexthop,omitempty"`
	LocalPref      *LocalPrefAction `protobuf:"bytes,7,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"`
	LargeCommunity *CommunityAction `protobuf:"bytes,8,opt,name=large_community,json=largeCommunity" json:"large_community,omitempty"`
}

func (*Actions) Descriptor

func (*Actions) Descriptor() ([]byte, []int)

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) GetLargeCommunity

func (m *Actions) GetLargeCommunity() *CommunityAction

func (*Actions) GetLocalPref

func (m *Actions) GetLocalPref() *LocalPrefAction

func (*Actions) GetMed

func (m *Actions) GetMed() *MedAction

func (*Actions) GetNexthop

func (m *Actions) GetNexthop() *NexthopAction

func (*Actions) ProtoMessage

func (*Actions) ProtoMessage()

func (*Actions) Reset

func (m *Actions) Reset()

func (*Actions) String

func (m *Actions) String() string

type AddBmpRequest

type AddBmpRequest struct {
	Address string                         `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Port    uint32                         `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
	Type    AddBmpRequest_MonitoringPolicy `protobuf:"varint,3,opt,name=type,enum=gobgpapi.AddBmpRequest_MonitoringPolicy" json:"type,omitempty"`
}

func (*AddBmpRequest) Descriptor

func (*AddBmpRequest) Descriptor() ([]byte, []int)

func (*AddBmpRequest) ProtoMessage

func (*AddBmpRequest) ProtoMessage()

func (*AddBmpRequest) Reset

func (m *AddBmpRequest) Reset()

func (*AddBmpRequest) String

func (m *AddBmpRequest) String() string

type AddBmpRequest_MonitoringPolicy

type AddBmpRequest_MonitoringPolicy int32
const (
	AddBmpRequest_PRE  AddBmpRequest_MonitoringPolicy = 0
	AddBmpRequest_POST AddBmpRequest_MonitoringPolicy = 1
	AddBmpRequest_BOTH AddBmpRequest_MonitoringPolicy = 2
)

func (AddBmpRequest_MonitoringPolicy) EnumDescriptor

func (AddBmpRequest_MonitoringPolicy) EnumDescriptor() ([]byte, []int)

func (AddBmpRequest_MonitoringPolicy) String

type AddBmpResponse

type AddBmpResponse struct {
}

func (*AddBmpResponse) Descriptor

func (*AddBmpResponse) Descriptor() ([]byte, []int)

func (*AddBmpResponse) ProtoMessage

func (*AddBmpResponse) ProtoMessage()

func (*AddBmpResponse) Reset

func (m *AddBmpResponse) Reset()

func (*AddBmpResponse) String

func (m *AddBmpResponse) String() string

type AddDefinedSetRequest

type AddDefinedSetRequest struct {
	Set *DefinedSet `protobuf:"bytes,1,opt,name=set" json:"set,omitempty"`
}

func (*AddDefinedSetRequest) Descriptor

func (*AddDefinedSetRequest) Descriptor() ([]byte, []int)

func (*AddDefinedSetRequest) GetSet

func (m *AddDefinedSetRequest) GetSet() *DefinedSet

func (*AddDefinedSetRequest) ProtoMessage

func (*AddDefinedSetRequest) ProtoMessage()

func (*AddDefinedSetRequest) Reset

func (m *AddDefinedSetRequest) Reset()

func (*AddDefinedSetRequest) String

func (m *AddDefinedSetRequest) String() string

type AddDefinedSetResponse

type AddDefinedSetResponse struct {
}

func (*AddDefinedSetResponse) Descriptor

func (*AddDefinedSetResponse) Descriptor() ([]byte, []int)

func (*AddDefinedSetResponse) ProtoMessage

func (*AddDefinedSetResponse) ProtoMessage()

func (*AddDefinedSetResponse) Reset

func (m *AddDefinedSetResponse) Reset()

func (*AddDefinedSetResponse) String

func (m *AddDefinedSetResponse) String() string

type AddNeighborRequest

type AddNeighborRequest struct {
	Peer *Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"`
}

func (*AddNeighborRequest) Descriptor

func (*AddNeighborRequest) Descriptor() ([]byte, []int)

func (*AddNeighborRequest) GetPeer

func (m *AddNeighborRequest) GetPeer() *Peer

func (*AddNeighborRequest) ProtoMessage

func (*AddNeighborRequest) ProtoMessage()

func (*AddNeighborRequest) Reset

func (m *AddNeighborRequest) Reset()

func (*AddNeighborRequest) String

func (m *AddNeighborRequest) String() string

type AddNeighborResponse

type AddNeighborResponse struct {
}

func (*AddNeighborResponse) Descriptor

func (*AddNeighborResponse) Descriptor() ([]byte, []int)

func (*AddNeighborResponse) ProtoMessage

func (*AddNeighborResponse) ProtoMessage()

func (*AddNeighborResponse) Reset

func (m *AddNeighborResponse) Reset()

func (*AddNeighborResponse) String

func (m *AddNeighborResponse) String() string

type AddPathRequest

type AddPathRequest struct {
	Resource Resource `protobuf:"varint,1,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"`
	VrfId    string   `protobuf:"bytes,2,opt,name=vrf_id,json=vrfId" json:"vrf_id,omitempty"`
	Path     *Path    `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
}

func (*AddPathRequest) Descriptor

func (*AddPathRequest) Descriptor() ([]byte, []int)

func (*AddPathRequest) GetPath

func (m *AddPathRequest) GetPath() *Path

func (*AddPathRequest) ProtoMessage

func (*AddPathRequest) ProtoMessage()

func (*AddPathRequest) Reset

func (m *AddPathRequest) Reset()

func (*AddPathRequest) String

func (m *AddPathRequest) String() string

type AddPathResponse

type AddPathResponse struct {
	Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}

func (*AddPathResponse) Descriptor

func (*AddPathResponse) Descriptor() ([]byte, []int)

func (*AddPathResponse) ProtoMessage

func (*AddPathResponse) ProtoMessage()

func (*AddPathResponse) Reset

func (m *AddPathResponse) Reset()

func (*AddPathResponse) String

func (m *AddPathResponse) String() string

type AddPolicyAssignmentRequest

type AddPolicyAssignmentRequest struct {
	Assignment *PolicyAssignment `protobuf:"bytes,1,opt,name=assignment" json:"assignment,omitempty"`
}

func (*AddPolicyAssignmentRequest) Descriptor

func (*AddPolicyAssignmentRequest) Descriptor() ([]byte, []int)

func (*AddPolicyAssignmentRequest) GetAssignment

func (m *AddPolicyAssignmentRequest) GetAssignment() *PolicyAssignment

func (*AddPolicyAssignmentRequest) ProtoMessage

func (*AddPolicyAssignmentRequest) ProtoMessage()

func (*AddPolicyAssignmentRequest) Reset

func (m *AddPolicyAssignmentRequest) Reset()

func (*AddPolicyAssignmentRequest) String

func (m *AddPolicyAssignmentRequest) String() string

type AddPolicyAssignmentResponse

type AddPolicyAssignmentResponse struct {
}

func (*AddPolicyAssignmentResponse) Descriptor

func (*AddPolicyAssignmentResponse) Descriptor() ([]byte, []int)

func (*AddPolicyAssignmentResponse) ProtoMessage

func (*AddPolicyAssignmentResponse) ProtoMessage()

func (*AddPolicyAssignmentResponse) Reset

func (m *AddPolicyAssignmentResponse) Reset()

func (*AddPolicyAssignmentResponse) String

func (m *AddPolicyAssignmentResponse) String() string

type AddPolicyRequest

type AddPolicyRequest struct {
	Policy *Policy `protobuf:"bytes,1,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.
	ReferExistingStatements bool `` /* 126-byte string literal not displayed */
}

func (*AddPolicyRequest) Descriptor

func (*AddPolicyRequest) Descriptor() ([]byte, []int)

func (*AddPolicyRequest) GetPolicy

func (m *AddPolicyRequest) GetPolicy() *Policy

func (*AddPolicyRequest) ProtoMessage

func (*AddPolicyRequest) ProtoMessage()

func (*AddPolicyRequest) Reset

func (m *AddPolicyRequest) Reset()

func (*AddPolicyRequest) String

func (m *AddPolicyRequest) String() string

type AddPolicyResponse

type AddPolicyResponse struct {
}

func (*AddPolicyResponse) Descriptor

func (*AddPolicyResponse) Descriptor() ([]byte, []int)

func (*AddPolicyResponse) ProtoMessage

func (*AddPolicyResponse) ProtoMessage()

func (*AddPolicyResponse) Reset

func (m *AddPolicyResponse) Reset()

func (*AddPolicyResponse) String

func (m *AddPolicyResponse) String() string

type AddRpkiRequest

type AddRpkiRequest struct {
	Address  string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Port     uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
	Lifetime int64  `protobuf:"varint,3,opt,name=lifetime" json:"lifetime,omitempty"`
}

func (*AddRpkiRequest) Descriptor

func (*AddRpkiRequest) Descriptor() ([]byte, []int)

func (*AddRpkiRequest) ProtoMessage

func (*AddRpkiRequest) ProtoMessage()

func (*AddRpkiRequest) Reset

func (m *AddRpkiRequest) Reset()

func (*AddRpkiRequest) String

func (m *AddRpkiRequest) String() string

type AddRpkiResponse

type AddRpkiResponse struct {
}

func (*AddRpkiResponse) Descriptor

func (*AddRpkiResponse) Descriptor() ([]byte, []int)

func (*AddRpkiResponse) ProtoMessage

func (*AddRpkiResponse) ProtoMessage()

func (*AddRpkiResponse) Reset

func (m *AddRpkiResponse) Reset()

func (*AddRpkiResponse) String

func (m *AddRpkiResponse) String() string

type AddStatementRequest

type AddStatementRequest struct {
	Statement *Statement `protobuf:"bytes,1,opt,name=statement" json:"statement,omitempty"`
}

func (*AddStatementRequest) Descriptor

func (*AddStatementRequest) Descriptor() ([]byte, []int)

func (*AddStatementRequest) GetStatement

func (m *AddStatementRequest) GetStatement() *Statement

func (*AddStatementRequest) ProtoMessage

func (*AddStatementRequest) ProtoMessage()

func (*AddStatementRequest) Reset

func (m *AddStatementRequest) Reset()

func (*AddStatementRequest) String

func (m *AddStatementRequest) String() string

type AddStatementResponse

type AddStatementResponse struct {
}

func (*AddStatementResponse) Descriptor

func (*AddStatementResponse) Descriptor() ([]byte, []int)

func (*AddStatementResponse) ProtoMessage

func (*AddStatementResponse) ProtoMessage()

func (*AddStatementResponse) Reset

func (m *AddStatementResponse) Reset()

func (*AddStatementResponse) String

func (m *AddStatementResponse) String() string

type AddVrfRequest

type AddVrfRequest struct {
	Vrf *Vrf `protobuf:"bytes,1,opt,name=vrf" json:"vrf,omitempty"`
}

func (*AddVrfRequest) Descriptor

func (*AddVrfRequest) Descriptor() ([]byte, []int)

func (*AddVrfRequest) GetVrf

func (m *AddVrfRequest) GetVrf() *Vrf

func (*AddVrfRequest) ProtoMessage

func (*AddVrfRequest) ProtoMessage()

func (*AddVrfRequest) Reset

func (m *AddVrfRequest) Reset()

func (*AddVrfRequest) String

func (m *AddVrfRequest) String() string

type AddVrfResponse

type AddVrfResponse struct {
}

func (*AddVrfResponse) Descriptor

func (*AddVrfResponse) Descriptor() ([]byte, []int)

func (*AddVrfResponse) ProtoMessage

func (*AddVrfResponse) ProtoMessage()

func (*AddVrfResponse) Reset

func (m *AddVrfResponse) Reset()

func (*AddVrfResponse) String

func (m *AddVrfResponse) String() string

type ApplyPolicy

type ApplyPolicy struct {
	InPolicy     *PolicyAssignment `protobuf:"bytes,1,opt,name=in_policy,json=inPolicy" json:"in_policy,omitempty"`
	ExportPolicy *PolicyAssignment `protobuf:"bytes,2,opt,name=export_policy,json=exportPolicy" json:"export_policy,omitempty"`
	ImportPolicy *PolicyAssignment `protobuf:"bytes,3,opt,name=import_policy,json=importPolicy" 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) Descriptor() ([]byte, []int)

func (*Arguments) ProtoMessage

func (*Arguments) ProtoMessage()

func (*Arguments) Reset

func (m *Arguments) Reset()

func (*Arguments) String

func (m *Arguments) String() string

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=useLeftMost" 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=prefixSet" json:"prefix_set,omitempty"`
	NeighborSet       *MatchSet            `protobuf:"bytes,2,opt,name=neighbor_set,json=neighborSet" json:"neighbor_set,omitempty"`
	AsPathLength      *AsPathLength        `protobuf:"bytes,3,opt,name=as_path_length,json=asPathLength" json:"as_path_length,omitempty"`
	AsPathSet         *MatchSet            `protobuf:"bytes,4,opt,name=as_path_set,json=asPathSet" json:"as_path_set,omitempty"`
	CommunitySet      *MatchSet            `protobuf:"bytes,5,opt,name=community_set,json=communitySet" json:"community_set,omitempty"`
	ExtCommunitySet   *MatchSet            `protobuf:"bytes,6,opt,name=ext_community_set,json=extCommunitySet" json:"ext_community_set,omitempty"`
	RpkiResult        int32                `protobuf:"varint,7,opt,name=rpki_result,json=rpkiResult" json:"rpki_result,omitempty"`
	RouteType         Conditions_RouteType `protobuf:"varint,8,opt,name=route_type,json=routeType,enum=gobgpapi.Conditions_RouteType" json:"route_type,omitempty"`
	LargeCommunitySet *MatchSet            `protobuf:"bytes,9,opt,name=large_community_set,json=largeCommunitySet" json:"large_community_set,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) GetLargeCommunitySet

func (m *Conditions) GetLargeCommunitySet() *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 Conditions_RouteType

type Conditions_RouteType int32
const (
	Conditions_ROUTE_TYPE_NONE     Conditions_RouteType = 0
	Conditions_ROUTE_TYPE_INTERNAL Conditions_RouteType = 1
	Conditions_ROUTE_TYPE_EXTERNAL Conditions_RouteType = 2
	Conditions_ROUTE_TYPE_LOCAL    Conditions_RouteType = 3
)

func (Conditions_RouteType) EnumDescriptor

func (Conditions_RouteType) EnumDescriptor() ([]byte, []int)

func (Conditions_RouteType) String

func (x Conditions_RouteType) 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
	DefinedType_LARGE_COMMUNITY DefinedType = 6
)

func (DefinedType) EnumDescriptor

func (DefinedType) EnumDescriptor() ([]byte, []int)

func (DefinedType) String

func (x DefinedType) String() string

type DeleteBmpRequest

type DeleteBmpRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Port    uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
}

func (*DeleteBmpRequest) Descriptor

func (*DeleteBmpRequest) Descriptor() ([]byte, []int)

func (*DeleteBmpRequest) ProtoMessage

func (*DeleteBmpRequest) ProtoMessage()

func (*DeleteBmpRequest) Reset

func (m *DeleteBmpRequest) Reset()

func (*DeleteBmpRequest) String

func (m *DeleteBmpRequest) String() string

type DeleteBmpResponse

type DeleteBmpResponse struct {
}

func (*DeleteBmpResponse) Descriptor

func (*DeleteBmpResponse) Descriptor() ([]byte, []int)

func (*DeleteBmpResponse) ProtoMessage

func (*DeleteBmpResponse) ProtoMessage()

func (*DeleteBmpResponse) Reset

func (m *DeleteBmpResponse) Reset()

func (*DeleteBmpResponse) String

func (m *DeleteBmpResponse) String() string

type DeleteDefinedSetRequest

type DeleteDefinedSetRequest struct {
	Set *DefinedSet `protobuf:"bytes,1,opt,name=set" json:"set,omitempty"`
	All bool        `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
}

func (*DeleteDefinedSetRequest) Descriptor

func (*DeleteDefinedSetRequest) Descriptor() ([]byte, []int)

func (*DeleteDefinedSetRequest) GetSet

func (m *DeleteDefinedSetRequest) GetSet() *DefinedSet

func (*DeleteDefinedSetRequest) ProtoMessage

func (*DeleteDefinedSetRequest) ProtoMessage()

func (*DeleteDefinedSetRequest) Reset

func (m *DeleteDefinedSetRequest) Reset()

func (*DeleteDefinedSetRequest) String

func (m *DeleteDefinedSetRequest) String() string

type DeleteDefinedSetResponse

type DeleteDefinedSetResponse struct {
}

func (*DeleteDefinedSetResponse) Descriptor

func (*DeleteDefinedSetResponse) Descriptor() ([]byte, []int)

func (*DeleteDefinedSetResponse) ProtoMessage

func (*DeleteDefinedSetResponse) ProtoMessage()

func (*DeleteDefinedSetResponse) Reset

func (m *DeleteDefinedSetResponse) Reset()

func (*DeleteDefinedSetResponse) String

func (m *DeleteDefinedSetResponse) String() string

type DeleteNeighborRequest

type DeleteNeighborRequest struct {
	Peer *Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"`
}

func (*DeleteNeighborRequest) Descriptor

func (*DeleteNeighborRequest) Descriptor() ([]byte, []int)

func (*DeleteNeighborRequest) GetPeer

func (m *DeleteNeighborRequest) GetPeer() *Peer

func (*DeleteNeighborRequest) ProtoMessage

func (*DeleteNeighborRequest) ProtoMessage()

func (*DeleteNeighborRequest) Reset

func (m *DeleteNeighborRequest) Reset()

func (*DeleteNeighborRequest) String

func (m *DeleteNeighborRequest) String() string

type DeleteNeighborResponse

type DeleteNeighborResponse struct {
}

func (*DeleteNeighborResponse) Descriptor

func (*DeleteNeighborResponse) Descriptor() ([]byte, []int)

func (*DeleteNeighborResponse) ProtoMessage

func (*DeleteNeighborResponse) ProtoMessage()

func (*DeleteNeighborResponse) Reset

func (m *DeleteNeighborResponse) Reset()

func (*DeleteNeighborResponse) String

func (m *DeleteNeighborResponse) String() string

type DeletePathRequest

type DeletePathRequest struct {
	Resource Resource `protobuf:"varint,1,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"`
	VrfId    string   `protobuf:"bytes,2,opt,name=vrf_id,json=vrfId" json:"vrf_id,omitempty"`
	Family   uint32   `protobuf:"varint,3,opt,name=family" json:"family,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 (*DeletePathRequest) Descriptor

func (*DeletePathRequest) Descriptor() ([]byte, []int)

func (*DeletePathRequest) GetPath

func (m *DeletePathRequest) GetPath() *Path

func (*DeletePathRequest) ProtoMessage

func (*DeletePathRequest) ProtoMessage()

func (*DeletePathRequest) Reset

func (m *DeletePathRequest) Reset()

func (*DeletePathRequest) String

func (m *DeletePathRequest) String() string

type DeletePathResponse

type DeletePathResponse struct {
}

func (*DeletePathResponse) Descriptor

func (*DeletePathResponse) Descriptor() ([]byte, []int)

func (*DeletePathResponse) ProtoMessage

func (*DeletePathResponse) ProtoMessage()

func (*DeletePathResponse) Reset

func (m *DeletePathResponse) Reset()

func (*DeletePathResponse) String

func (m *DeletePathResponse) String() string

type DeletePolicyAssignmentRequest

type DeletePolicyAssignmentRequest struct {
	Assignment *PolicyAssignment `protobuf:"bytes,1,opt,name=assignment" json:"assignment,omitempty"`
	All        bool              `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
}

func (*DeletePolicyAssignmentRequest) Descriptor

func (*DeletePolicyAssignmentRequest) Descriptor() ([]byte, []int)

func (*DeletePolicyAssignmentRequest) GetAssignment

func (m *DeletePolicyAssignmentRequest) GetAssignment() *PolicyAssignment

func (*DeletePolicyAssignmentRequest) ProtoMessage

func (*DeletePolicyAssignmentRequest) ProtoMessage()

func (*DeletePolicyAssignmentRequest) Reset

func (m *DeletePolicyAssignmentRequest) Reset()

func (*DeletePolicyAssignmentRequest) String

type DeletePolicyAssignmentResponse

type DeletePolicyAssignmentResponse struct {
}

func (*DeletePolicyAssignmentResponse) Descriptor

func (*DeletePolicyAssignmentResponse) Descriptor() ([]byte, []int)

func (*DeletePolicyAssignmentResponse) ProtoMessage

func (*DeletePolicyAssignmentResponse) ProtoMessage()

func (*DeletePolicyAssignmentResponse) Reset

func (m *DeletePolicyAssignmentResponse) Reset()

func (*DeletePolicyAssignmentResponse) String

type DeletePolicyRequest

type DeletePolicyRequest struct {
	Policy *Policy `protobuf:"bytes,1,opt,name=policy" json:"policy,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.
	PreserveStatements bool `protobuf:"varint,2,opt,name=preserve_statements,json=preserveStatements" json:"preserve_statements,omitempty"`
	All                bool `protobuf:"varint,3,opt,name=all" json:"all,omitempty"`
}

func (*DeletePolicyRequest) Descriptor

func (*DeletePolicyRequest) Descriptor() ([]byte, []int)

func (*DeletePolicyRequest) GetPolicy

func (m *DeletePolicyRequest) GetPolicy() *Policy

func (*DeletePolicyRequest) ProtoMessage

func (*DeletePolicyRequest) ProtoMessage()

func (*DeletePolicyRequest) Reset

func (m *DeletePolicyRequest) Reset()

func (*DeletePolicyRequest) String

func (m *DeletePolicyRequest) String() string

type DeletePolicyResponse

type DeletePolicyResponse struct {
}

func (*DeletePolicyResponse) Descriptor

func (*DeletePolicyResponse) Descriptor() ([]byte, []int)

func (*DeletePolicyResponse) ProtoMessage

func (*DeletePolicyResponse) ProtoMessage()

func (*DeletePolicyResponse) Reset

func (m *DeletePolicyResponse) Reset()

func (*DeletePolicyResponse) String

func (m *DeletePolicyResponse) String() string

type DeleteRpkiRequest

type DeleteRpkiRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Port    uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
}

func (*DeleteRpkiRequest) Descriptor

func (*DeleteRpkiRequest) Descriptor() ([]byte, []int)

func (*DeleteRpkiRequest) ProtoMessage

func (*DeleteRpkiRequest) ProtoMessage()

func (*DeleteRpkiRequest) Reset

func (m *DeleteRpkiRequest) Reset()

func (*DeleteRpkiRequest) String

func (m *DeleteRpkiRequest) String() string

type DeleteRpkiResponse

type DeleteRpkiResponse struct {
}

func (*DeleteRpkiResponse) Descriptor

func (*DeleteRpkiResponse) Descriptor() ([]byte, []int)

func (*DeleteRpkiResponse) ProtoMessage

func (*DeleteRpkiResponse) ProtoMessage()

func (*DeleteRpkiResponse) Reset

func (m *DeleteRpkiResponse) Reset()

func (*DeleteRpkiResponse) String

func (m *DeleteRpkiResponse) String() string

type DeleteStatementRequest

type DeleteStatementRequest struct {
	Statement *Statement `protobuf:"bytes,1,opt,name=statement" json:"statement,omitempty"`
	All       bool       `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
}

func (*DeleteStatementRequest) Descriptor

func (*DeleteStatementRequest) Descriptor() ([]byte, []int)

func (*DeleteStatementRequest) GetStatement

func (m *DeleteStatementRequest) GetStatement() *Statement

func (*DeleteStatementRequest) ProtoMessage

func (*DeleteStatementRequest) ProtoMessage()

func (*DeleteStatementRequest) Reset

func (m *DeleteStatementRequest) Reset()

func (*DeleteStatementRequest) String

func (m *DeleteStatementRequest) String() string

type DeleteStatementResponse

type DeleteStatementResponse struct {
}

func (*DeleteStatementResponse) Descriptor

func (*DeleteStatementResponse) Descriptor() ([]byte, []int)

func (*DeleteStatementResponse) ProtoMessage

func (*DeleteStatementResponse) ProtoMessage()

func (*DeleteStatementResponse) Reset

func (m *DeleteStatementResponse) Reset()

func (*DeleteStatementResponse) String

func (m *DeleteStatementResponse) String() string

type DeleteVrfRequest

type DeleteVrfRequest struct {
	Vrf *Vrf `protobuf:"bytes,1,opt,name=vrf" json:"vrf,omitempty"`
}

func (*DeleteVrfRequest) Descriptor

func (*DeleteVrfRequest) Descriptor() ([]byte, []int)

func (*DeleteVrfRequest) GetVrf

func (m *DeleteVrfRequest) GetVrf() *Vrf

func (*DeleteVrfRequest) ProtoMessage

func (*DeleteVrfRequest) ProtoMessage()

func (*DeleteVrfRequest) Reset

func (m *DeleteVrfRequest) Reset()

func (*DeleteVrfRequest) String

func (m *DeleteVrfRequest) String() string

type DeleteVrfResponse

type DeleteVrfResponse struct {
}

func (*DeleteVrfResponse) Descriptor

func (*DeleteVrfResponse) Descriptor() ([]byte, []int)

func (*DeleteVrfResponse) ProtoMessage

func (*DeleteVrfResponse) ProtoMessage()

func (*DeleteVrfResponse) Reset

func (m *DeleteVrfResponse) Reset()

func (*DeleteVrfResponse) String

func (m *DeleteVrfResponse) 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=longerPrefixes" json:"longer_prefixes,omitempty"`
	ShorterPrefixes bool    `protobuf:"varint,4,opt,name=shorter_prefixes,json=shorterPrefixes" json:"shorter_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

func (*Destination) ToNativeDestination

func (d *Destination) ToNativeDestination(option ...ToNativeOption) (*table.Destination, error)

type DisableMrtRequest

type DisableMrtRequest struct {
}

func (*DisableMrtRequest) Descriptor

func (*DisableMrtRequest) Descriptor() ([]byte, []int)

func (*DisableMrtRequest) ProtoMessage

func (*DisableMrtRequest) ProtoMessage()

func (*DisableMrtRequest) Reset

func (m *DisableMrtRequest) Reset()

func (*DisableMrtRequest) String

func (m *DisableMrtRequest) String() string

type DisableMrtResponse

type DisableMrtResponse struct {
}

func (*DisableMrtResponse) Descriptor

func (*DisableMrtResponse) Descriptor() ([]byte, []int)

func (*DisableMrtResponse) ProtoMessage

func (*DisableMrtResponse) ProtoMessage()

func (*DisableMrtResponse) Reset

func (m *DisableMrtResponse) Reset()

func (*DisableMrtResponse) String

func (m *DisableMrtResponse) String() string

type DisableNeighborRequest

type DisableNeighborRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*DisableNeighborRequest) Descriptor

func (*DisableNeighborRequest) Descriptor() ([]byte, []int)

func (*DisableNeighborRequest) ProtoMessage

func (*DisableNeighborRequest) ProtoMessage()

func (*DisableNeighborRequest) Reset

func (m *DisableNeighborRequest) Reset()

func (*DisableNeighborRequest) String

func (m *DisableNeighborRequest) String() string

type DisableNeighborResponse

type DisableNeighborResponse struct {
}

func (*DisableNeighborResponse) Descriptor

func (*DisableNeighborResponse) Descriptor() ([]byte, []int)

func (*DisableNeighborResponse) ProtoMessage

func (*DisableNeighborResponse) ProtoMessage()

func (*DisableNeighborResponse) Reset

func (m *DisableNeighborResponse) Reset()

func (*DisableNeighborResponse) String

func (m *DisableNeighborResponse) String() string

type DisableRpkiRequest

type DisableRpkiRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*DisableRpkiRequest) Descriptor

func (*DisableRpkiRequest) Descriptor() ([]byte, []int)

func (*DisableRpkiRequest) ProtoMessage

func (*DisableRpkiRequest) ProtoMessage()

func (*DisableRpkiRequest) Reset

func (m *DisableRpkiRequest) Reset()

func (*DisableRpkiRequest) String

func (m *DisableRpkiRequest) String() string

type DisableRpkiResponse

type DisableRpkiResponse struct {
}

func (*DisableRpkiResponse) Descriptor

func (*DisableRpkiResponse) Descriptor() ([]byte, []int)

func (*DisableRpkiResponse) ProtoMessage

func (*DisableRpkiResponse) ProtoMessage()

func (*DisableRpkiResponse) Reset

func (m *DisableRpkiResponse) Reset()

func (*DisableRpkiResponse) String

func (m *DisableRpkiResponse) 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=multihopTtl" 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 EnableMrtRequest

type EnableMrtRequest struct {
	DumpType int32  `protobuf:"varint,1,opt,name=dump_type,json=dumpType" json:"dump_type,omitempty"`
	Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"`
	Interval uint64 `protobuf:"varint,3,opt,name=interval" json:"interval,omitempty"`
}

func (*EnableMrtRequest) Descriptor

func (*EnableMrtRequest) Descriptor() ([]byte, []int)

func (*EnableMrtRequest) ProtoMessage

func (*EnableMrtRequest) ProtoMessage()

func (*EnableMrtRequest) Reset

func (m *EnableMrtRequest) Reset()

func (*EnableMrtRequest) String

func (m *EnableMrtRequest) String() string

type EnableMrtResponse

type EnableMrtResponse struct {
}

func (*EnableMrtResponse) Descriptor

func (*EnableMrtResponse) Descriptor() ([]byte, []int)

func (*EnableMrtResponse) ProtoMessage

func (*EnableMrtResponse) ProtoMessage()

func (*EnableMrtResponse) Reset

func (m *EnableMrtResponse) Reset()

func (*EnableMrtResponse) String

func (m *EnableMrtResponse) String() string

type EnableNeighborRequest

type EnableNeighborRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*EnableNeighborRequest) Descriptor

func (*EnableNeighborRequest) Descriptor() ([]byte, []int)

func (*EnableNeighborRequest) ProtoMessage

func (*EnableNeighborRequest) ProtoMessage()

func (*EnableNeighborRequest) Reset

func (m *EnableNeighborRequest) Reset()

func (*EnableNeighborRequest) String

func (m *EnableNeighborRequest) String() string

type EnableNeighborResponse

type EnableNeighborResponse struct {
}

func (*EnableNeighborResponse) Descriptor

func (*EnableNeighborResponse) Descriptor() ([]byte, []int)

func (*EnableNeighborResponse) ProtoMessage

func (*EnableNeighborResponse) ProtoMessage()

func (*EnableNeighborResponse) Reset

func (m *EnableNeighborResponse) Reset()

func (*EnableNeighborResponse) String

func (m *EnableNeighborResponse) String() string

type EnableRpkiRequest

type EnableRpkiRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*EnableRpkiRequest) Descriptor

func (*EnableRpkiRequest) Descriptor() ([]byte, []int)

func (*EnableRpkiRequest) ProtoMessage

func (*EnableRpkiRequest) ProtoMessage()

func (*EnableRpkiRequest) Reset

func (m *EnableRpkiRequest) Reset()

func (*EnableRpkiRequest) String

func (m *EnableRpkiRequest) String() string

type EnableRpkiResponse

type EnableRpkiResponse struct {
}

func (*EnableRpkiResponse) Descriptor

func (*EnableRpkiResponse) Descriptor() ([]byte, []int)

func (*EnableRpkiResponse) ProtoMessage

func (*EnableRpkiResponse) ProtoMessage()

func (*EnableRpkiResponse) Reset

func (m *EnableRpkiResponse) Reset()

func (*EnableRpkiResponse) String

func (m *EnableRpkiResponse) String() string

type EnableZebraRequest

type EnableZebraRequest struct {
	Url        string   `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	RouteTypes []string `protobuf:"bytes,2,rep,name=route_types,json=routeTypes" json:"route_types,omitempty"`
	Version    uint32   `protobuf:"varint,3,opt,name=version" json:"version,omitempty"`
}

func (*EnableZebraRequest) Descriptor

func (*EnableZebraRequest) Descriptor() ([]byte, []int)

func (*EnableZebraRequest) ProtoMessage

func (*EnableZebraRequest) ProtoMessage()

func (*EnableZebraRequest) Reset

func (m *EnableZebraRequest) Reset()

func (*EnableZebraRequest) String

func (m *EnableZebraRequest) String() string

type EnableZebraResponse

type EnableZebraResponse struct {
}

func (*EnableZebraResponse) Descriptor

func (*EnableZebraResponse) Descriptor() ([]byte, []int)

func (*EnableZebraResponse) ProtoMessage

func (*EnableZebraResponse) ProtoMessage()

func (*EnableZebraResponse) Reset

func (m *EnableZebraResponse) Reset()

func (*EnableZebraResponse) String

func (m *EnableZebraResponse) String() string

type GetDefinedSetRequest

type GetDefinedSetRequest struct {
	Type DefinedType `protobuf:"varint,1,opt,name=type,enum=gobgpapi.DefinedType" json:"type,omitempty"`
}

func (*GetDefinedSetRequest) Descriptor

func (*GetDefinedSetRequest) Descriptor() ([]byte, []int)

func (*GetDefinedSetRequest) ProtoMessage

func (*GetDefinedSetRequest) ProtoMessage()

func (*GetDefinedSetRequest) Reset

func (m *GetDefinedSetRequest) Reset()

func (*GetDefinedSetRequest) String

func (m *GetDefinedSetRequest) String() string

type GetDefinedSetResponse

type GetDefinedSetResponse struct {
	Sets []*DefinedSet `protobuf:"bytes,1,rep,name=sets" json:"sets,omitempty"`
}

func (*GetDefinedSetResponse) Descriptor

func (*GetDefinedSetResponse) Descriptor() ([]byte, []int)

func (*GetDefinedSetResponse) GetSets

func (m *GetDefinedSetResponse) GetSets() []*DefinedSet

func (*GetDefinedSetResponse) ProtoMessage

func (*GetDefinedSetResponse) ProtoMessage()

func (*GetDefinedSetResponse) Reset

func (m *GetDefinedSetResponse) Reset()

func (*GetDefinedSetResponse) String

func (m *GetDefinedSetResponse) String() string

type GetNeighborRequest

type GetNeighborRequest struct {
}

func (*GetNeighborRequest) Descriptor

func (*GetNeighborRequest) Descriptor() ([]byte, []int)

func (*GetNeighborRequest) ProtoMessage

func (*GetNeighborRequest) ProtoMessage()

func (*GetNeighborRequest) Reset

func (m *GetNeighborRequest) Reset()

func (*GetNeighborRequest) String

func (m *GetNeighborRequest) String() string

type GetNeighborResponse

type GetNeighborResponse struct {
	Peers []*Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"`
}

func (*GetNeighborResponse) Descriptor

func (*GetNeighborResponse) Descriptor() ([]byte, []int)

func (*GetNeighborResponse) GetPeers

func (m *GetNeighborResponse) GetPeers() []*Peer

func (*GetNeighborResponse) ProtoMessage

func (*GetNeighborResponse) ProtoMessage()

func (*GetNeighborResponse) Reset

func (m *GetNeighborResponse) Reset()

func (*GetNeighborResponse) String

func (m *GetNeighborResponse) String() string

type GetPolicyAssignmentRequest

type GetPolicyAssignmentRequest struct {
	Assignment *PolicyAssignment `protobuf:"bytes,1,opt,name=assignment" json:"assignment,omitempty"`
}

func (*GetPolicyAssignmentRequest) Descriptor

func (*GetPolicyAssignmentRequest) Descriptor() ([]byte, []int)

func (*GetPolicyAssignmentRequest) GetAssignment

func (m *GetPolicyAssignmentRequest) GetAssignment() *PolicyAssignment

func (*GetPolicyAssignmentRequest) ProtoMessage

func (*GetPolicyAssignmentRequest) ProtoMessage()

func (*GetPolicyAssignmentRequest) Reset

func (m *GetPolicyAssignmentRequest) Reset()

func (*GetPolicyAssignmentRequest) String

func (m *GetPolicyAssignmentRequest) String() string

type GetPolicyAssignmentResponse

type GetPolicyAssignmentResponse struct {
	Assignment *PolicyAssignment `protobuf:"bytes,1,opt,name=assignment" json:"assignment,omitempty"`
}

func (*GetPolicyAssignmentResponse) Descriptor

func (*GetPolicyAssignmentResponse) Descriptor() ([]byte, []int)

func (*GetPolicyAssignmentResponse) GetAssignment

func (m *GetPolicyAssignmentResponse) GetAssignment() *PolicyAssignment

func (*GetPolicyAssignmentResponse) ProtoMessage

func (*GetPolicyAssignmentResponse) ProtoMessage()

func (*GetPolicyAssignmentResponse) Reset

func (m *GetPolicyAssignmentResponse) Reset()

func (*GetPolicyAssignmentResponse) String

func (m *GetPolicyAssignmentResponse) String() string

type GetPolicyRequest

type GetPolicyRequest struct {
}

func (*GetPolicyRequest) Descriptor

func (*GetPolicyRequest) Descriptor() ([]byte, []int)

func (*GetPolicyRequest) ProtoMessage

func (*GetPolicyRequest) ProtoMessage()

func (*GetPolicyRequest) Reset

func (m *GetPolicyRequest) Reset()

func (*GetPolicyRequest) String

func (m *GetPolicyRequest) String() string

type GetPolicyResponse

type GetPolicyResponse struct {
	Policies []*Policy `protobuf:"bytes,1,rep,name=policies" json:"policies,omitempty"`
}

func (*GetPolicyResponse) Descriptor

func (*GetPolicyResponse) Descriptor() ([]byte, []int)

func (*GetPolicyResponse) GetPolicies

func (m *GetPolicyResponse) GetPolicies() []*Policy

func (*GetPolicyResponse) ProtoMessage

func (*GetPolicyResponse) ProtoMessage()

func (*GetPolicyResponse) Reset

func (m *GetPolicyResponse) Reset()

func (*GetPolicyResponse) String

func (m *GetPolicyResponse) String() string

type GetRibInfoRequest

type GetRibInfoRequest struct {
	Info *TableInfo `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
}

func (*GetRibInfoRequest) Descriptor

func (*GetRibInfoRequest) Descriptor() ([]byte, []int)

func (*GetRibInfoRequest) GetInfo

func (m *GetRibInfoRequest) GetInfo() *TableInfo

func (*GetRibInfoRequest) ProtoMessage

func (*GetRibInfoRequest) ProtoMessage()

func (*GetRibInfoRequest) Reset

func (m *GetRibInfoRequest) Reset()

func (*GetRibInfoRequest) String

func (m *GetRibInfoRequest) String() string

type GetRibInfoResponse

type GetRibInfoResponse struct {
	Info *TableInfo `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
}

func (*GetRibInfoResponse) Descriptor

func (*GetRibInfoResponse) Descriptor() ([]byte, []int)

func (*GetRibInfoResponse) GetInfo

func (m *GetRibInfoResponse) GetInfo() *TableInfo

func (*GetRibInfoResponse) ProtoMessage

func (*GetRibInfoResponse) ProtoMessage()

func (*GetRibInfoResponse) Reset

func (m *GetRibInfoResponse) Reset()

func (*GetRibInfoResponse) String

func (m *GetRibInfoResponse) String() string

type GetRibRequest

type GetRibRequest struct {
	Table *Table `protobuf:"bytes,1,opt,name=table" json:"table,omitempty"`
}

func (*GetRibRequest) Descriptor

func (*GetRibRequest) Descriptor() ([]byte, []int)

func (*GetRibRequest) GetTable

func (m *GetRibRequest) GetTable() *Table

func (*GetRibRequest) ProtoMessage

func (*GetRibRequest) ProtoMessage()

func (*GetRibRequest) Reset

func (m *GetRibRequest) Reset()

func (*GetRibRequest) String

func (m *GetRibRequest) String() string

type GetRibResponse

type GetRibResponse struct {
	Table *Table `protobuf:"bytes,1,opt,name=table" json:"table,omitempty"`
}

func (*GetRibResponse) Descriptor

func (*GetRibResponse) Descriptor() ([]byte, []int)

func (*GetRibResponse) GetTable

func (m *GetRibResponse) GetTable() *Table

func (*GetRibResponse) ProtoMessage

func (*GetRibResponse) ProtoMessage()

func (*GetRibResponse) Reset

func (m *GetRibResponse) Reset()

func (*GetRibResponse) String

func (m *GetRibResponse) String() string

type GetRoaRequest

type GetRoaRequest struct {
	Family uint32 `protobuf:"varint,1,opt,name=family" json:"family,omitempty"`
}

func (*GetRoaRequest) Descriptor

func (*GetRoaRequest) Descriptor() ([]byte, []int)

func (*GetRoaRequest) ProtoMessage

func (*GetRoaRequest) ProtoMessage()

func (*GetRoaRequest) Reset

func (m *GetRoaRequest) Reset()

func (*GetRoaRequest) String

func (m *GetRoaRequest) String() string

type GetRoaResponse

type GetRoaResponse struct {
	Roas []*Roa `protobuf:"bytes,1,rep,name=roas" json:"roas,omitempty"`
}

func (*GetRoaResponse) Descriptor

func (*GetRoaResponse) Descriptor() ([]byte, []int)

func (*GetRoaResponse) GetRoas

func (m *GetRoaResponse) GetRoas() []*Roa

func (*GetRoaResponse) ProtoMessage

func (*GetRoaResponse) ProtoMessage()

func (*GetRoaResponse) Reset

func (m *GetRoaResponse) Reset()

func (*GetRoaResponse) String

func (m *GetRoaResponse) String() string

type GetRpkiRequest

type GetRpkiRequest struct {
	Family uint32 `protobuf:"varint,1,opt,name=family" json:"family,omitempty"`
}

func (*GetRpkiRequest) Descriptor

func (*GetRpkiRequest) Descriptor() ([]byte, []int)

func (*GetRpkiRequest) ProtoMessage

func (*GetRpkiRequest) ProtoMessage()

func (*GetRpkiRequest) Reset

func (m *GetRpkiRequest) Reset()

func (*GetRpkiRequest) String

func (m *GetRpkiRequest) String() string

type GetRpkiResponse

type GetRpkiResponse struct {
	Servers []*Rpki `protobuf:"bytes,1,rep,name=servers" json:"servers,omitempty"`
}

func (*GetRpkiResponse) Descriptor

func (*GetRpkiResponse) Descriptor() ([]byte, []int)

func (*GetRpkiResponse) GetServers

func (m *GetRpkiResponse) GetServers() []*Rpki

func (*GetRpkiResponse) ProtoMessage

func (*GetRpkiResponse) ProtoMessage()

func (*GetRpkiResponse) Reset

func (m *GetRpkiResponse) Reset()

func (*GetRpkiResponse) String

func (m *GetRpkiResponse) String() string

type GetServerRequest

type GetServerRequest struct {
}

func (*GetServerRequest) Descriptor

func (*GetServerRequest) Descriptor() ([]byte, []int)

func (*GetServerRequest) ProtoMessage

func (*GetServerRequest) ProtoMessage()

func (*GetServerRequest) Reset

func (m *GetServerRequest) Reset()

func (*GetServerRequest) String

func (m *GetServerRequest) String() string

type GetServerResponse

type GetServerResponse struct {
	Global *Global `protobuf:"bytes,1,opt,name=global" json:"global,omitempty"`
}

func (*GetServerResponse) Descriptor

func (*GetServerResponse) Descriptor() ([]byte, []int)

func (*GetServerResponse) GetGlobal

func (m *GetServerResponse) GetGlobal() *Global

func (*GetServerResponse) ProtoMessage

func (*GetServerResponse) ProtoMessage()

func (*GetServerResponse) Reset

func (m *GetServerResponse) Reset()

func (*GetServerResponse) String

func (m *GetServerResponse) String() string

type GetStatementRequest

type GetStatementRequest struct {
}

func (*GetStatementRequest) Descriptor

func (*GetStatementRequest) Descriptor() ([]byte, []int)

func (*GetStatementRequest) ProtoMessage

func (*GetStatementRequest) ProtoMessage()

func (*GetStatementRequest) Reset

func (m *GetStatementRequest) Reset()

func (*GetStatementRequest) String

func (m *GetStatementRequest) String() string

type GetStatementResponse

type GetStatementResponse struct {
	Statements []*Statement `protobuf:"bytes,1,rep,name=statements" json:"statements,omitempty"`
}

func (*GetStatementResponse) Descriptor

func (*GetStatementResponse) Descriptor() ([]byte, []int)

func (*GetStatementResponse) GetStatements

func (m *GetStatementResponse) GetStatements() []*Statement

func (*GetStatementResponse) ProtoMessage

func (*GetStatementResponse) ProtoMessage()

func (*GetStatementResponse) Reset

func (m *GetStatementResponse) Reset()

func (*GetStatementResponse) String

func (m *GetStatementResponse) String() string

type GetVrfRequest

type GetVrfRequest struct {
}

func (*GetVrfRequest) Descriptor

func (*GetVrfRequest) Descriptor() ([]byte, []int)

func (*GetVrfRequest) ProtoMessage

func (*GetVrfRequest) ProtoMessage()

func (*GetVrfRequest) Reset

func (m *GetVrfRequest) Reset()

func (*GetVrfRequest) String

func (m *GetVrfRequest) String() string

type GetVrfResponse

type GetVrfResponse struct {
	Vrfs []*Vrf `protobuf:"bytes,1,rep,name=vrfs" json:"vrfs,omitempty"`
}

func (*GetVrfResponse) Descriptor

func (*GetVrfResponse) Descriptor() ([]byte, []int)

func (*GetVrfResponse) GetVrfs

func (m *GetVrfResponse) GetVrfs() []*Vrf

func (*GetVrfResponse) ProtoMessage

func (*GetVrfResponse) ProtoMessage()

func (*GetVrfResponse) Reset

func (m *GetVrfResponse) Reset()

func (*GetVrfResponse) String

func (m *GetVrfResponse) 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=routerId" json:"router_id,omitempty"`
	ListenPort       int32    `protobuf:"varint,3,opt,name=listen_port,json=listenPort" json:"listen_port,omitempty"`
	ListenAddresses  []string `protobuf:"bytes,4,rep,name=listen_addresses,json=listenAddresses" json:"listen_addresses,omitempty"`
	Families         []uint32 `protobuf:"varint,5,rep,packed,name=families" json:"families,omitempty"`
	UseMultiplePaths bool     `protobuf:"varint,6,opt,name=use_multiple_paths,json=useMultiplePaths" json:"use_multiple_paths,omitempty"`
}

func (*Global) Descriptor

func (*Global) Descriptor() ([]byte, []int)

func (*Global) ProtoMessage

func (*Global) ProtoMessage()

func (*Global) Reset

func (m *Global) Reset()

func (*Global) String

func (m *Global) String() string

type GobgpApiClient

type GobgpApiClient interface {
	StartServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error)
	StopServer(ctx context.Context, in *StopServerRequest, opts ...grpc.CallOption) (*StopServerResponse, error)
	GetServer(ctx context.Context, in *GetServerRequest, opts ...grpc.CallOption) (*GetServerResponse, error)
	AddNeighbor(ctx context.Context, in *AddNeighborRequest, opts ...grpc.CallOption) (*AddNeighborResponse, error)
	DeleteNeighbor(ctx context.Context, in *DeleteNeighborRequest, opts ...grpc.CallOption) (*DeleteNeighborResponse, error)
	GetNeighbor(ctx context.Context, in *GetNeighborRequest, opts ...grpc.CallOption) (*GetNeighborResponse, error)
	ResetNeighbor(ctx context.Context, in *ResetNeighborRequest, opts ...grpc.CallOption) (*ResetNeighborResponse, error)
	SoftResetNeighbor(ctx context.Context, in *SoftResetNeighborRequest, opts ...grpc.CallOption) (*SoftResetNeighborResponse, error)
	ShutdownNeighbor(ctx context.Context, in *ShutdownNeighborRequest, opts ...grpc.CallOption) (*ShutdownNeighborResponse, error)
	EnableNeighbor(ctx context.Context, in *EnableNeighborRequest, opts ...grpc.CallOption) (*EnableNeighborResponse, error)
	DisableNeighbor(ctx context.Context, in *DisableNeighborRequest, opts ...grpc.CallOption) (*DisableNeighborResponse, error)
	GetRib(ctx context.Context, in *GetRibRequest, opts ...grpc.CallOption) (*GetRibResponse, error)
	ValidateRib(ctx context.Context, in *ValidateRibRequest, opts ...grpc.CallOption) (*ValidateRibResponse, error)
	AddPath(ctx context.Context, in *AddPathRequest, opts ...grpc.CallOption) (*AddPathResponse, error)
	DeletePath(ctx context.Context, in *DeletePathRequest, opts ...grpc.CallOption) (*DeletePathResponse, error)
	MonitorRib(ctx context.Context, in *Table, opts ...grpc.CallOption) (GobgpApi_MonitorRibClient, error)
	MonitorPeerState(ctx context.Context, in *Arguments, opts ...grpc.CallOption) (GobgpApi_MonitorPeerStateClient, error)
	EnableMrt(ctx context.Context, in *EnableMrtRequest, opts ...grpc.CallOption) (*EnableMrtResponse, error)
	DisableMrt(ctx context.Context, in *DisableMrtRequest, opts ...grpc.CallOption) (*DisableMrtResponse, error)
	InjectMrt(ctx context.Context, opts ...grpc.CallOption) (GobgpApi_InjectMrtClient, error)
	AddBmp(ctx context.Context, in *AddBmpRequest, opts ...grpc.CallOption) (*AddBmpResponse, error)
	DeleteBmp(ctx context.Context, in *DeleteBmpRequest, opts ...grpc.CallOption) (*DeleteBmpResponse, error)
	GetRpki(ctx context.Context, in *GetRpkiRequest, opts ...grpc.CallOption) (*GetRpkiResponse, error)
	AddRpki(ctx context.Context, in *AddRpkiRequest, opts ...grpc.CallOption) (*AddRpkiResponse, error)
	DeleteRpki(ctx context.Context, in *DeleteRpkiRequest, opts ...grpc.CallOption) (*DeleteRpkiResponse, error)
	EnableRpki(ctx context.Context, in *EnableRpkiRequest, opts ...grpc.CallOption) (*EnableRpkiResponse, error)
	DisableRpki(ctx context.Context, in *DisableRpkiRequest, opts ...grpc.CallOption) (*DisableRpkiResponse, error)
	ResetRpki(ctx context.Context, in *ResetRpkiRequest, opts ...grpc.CallOption) (*ResetRpkiResponse, error)
	SoftResetRpki(ctx context.Context, in *SoftResetRpkiRequest, opts ...grpc.CallOption) (*SoftResetRpkiResponse, error)
	GetRoa(ctx context.Context, in *GetRoaRequest, opts ...grpc.CallOption) (*GetRoaResponse, error)
	EnableZebra(ctx context.Context, in *EnableZebraRequest, opts ...grpc.CallOption) (*EnableZebraResponse, error)
	AddVrf(ctx context.Context, in *AddVrfRequest, opts ...grpc.CallOption) (*AddVrfResponse, error)
	DeleteVrf(ctx context.Context, in *DeleteVrfRequest, opts ...grpc.CallOption) (*DeleteVrfResponse, error)
	GetVrf(ctx context.Context, in *GetVrfRequest, opts ...grpc.CallOption) (*GetVrfResponse, error)
	GetDefinedSet(ctx context.Context, in *GetDefinedSetRequest, opts ...grpc.CallOption) (*GetDefinedSetResponse, error)
	AddDefinedSet(ctx context.Context, in *AddDefinedSetRequest, opts ...grpc.CallOption) (*AddDefinedSetResponse, error)
	DeleteDefinedSet(ctx context.Context, in *DeleteDefinedSetRequest, opts ...grpc.CallOption) (*DeleteDefinedSetResponse, error)
	ReplaceDefinedSet(ctx context.Context, in *ReplaceDefinedSetRequest, opts ...grpc.CallOption) (*ReplaceDefinedSetResponse, error)
	GetStatement(ctx context.Context, in *GetStatementRequest, opts ...grpc.CallOption) (*GetStatementResponse, error)
	AddStatement(ctx context.Context, in *AddStatementRequest, opts ...grpc.CallOption) (*AddStatementResponse, error)
	DeleteStatement(ctx context.Context, in *DeleteStatementRequest, opts ...grpc.CallOption) (*DeleteStatementResponse, error)
	ReplaceStatement(ctx context.Context, in *ReplaceStatementRequest, opts ...grpc.CallOption) (*ReplaceStatementResponse, error)
	GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error)
	AddPolicy(ctx context.Context, in *AddPolicyRequest, opts ...grpc.CallOption) (*AddPolicyResponse, error)
	DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error)
	ReplacePolicy(ctx context.Context, in *ReplacePolicyRequest, opts ...grpc.CallOption) (*ReplacePolicyResponse, error)
	GetPolicyAssignment(ctx context.Context, in *GetPolicyAssignmentRequest, opts ...grpc.CallOption) (*GetPolicyAssignmentResponse, error)
	AddPolicyAssignment(ctx context.Context, in *AddPolicyAssignmentRequest, opts ...grpc.CallOption) (*AddPolicyAssignmentResponse, error)
	DeletePolicyAssignment(ctx context.Context, in *DeletePolicyAssignmentRequest, opts ...grpc.CallOption) (*DeletePolicyAssignmentResponse, error)
	ReplacePolicyAssignment(ctx context.Context, in *ReplacePolicyAssignmentRequest, opts ...grpc.CallOption) (*ReplacePolicyAssignmentResponse, error)
	GetRibInfo(ctx context.Context, in *GetRibInfoRequest, opts ...grpc.CallOption) (*GetRibInfoResponse, error)
}

func NewGobgpApiClient

func NewGobgpApiClient(cc *grpc.ClientConn) GobgpApiClient

type GobgpApiServer

type GobgpApiServer interface {
	StartServer(context.Context, *StartServerRequest) (*StartServerResponse, error)
	StopServer(context.Context, *StopServerRequest) (*StopServerResponse, error)
	GetServer(context.Context, *GetServerRequest) (*GetServerResponse, error)
	AddNeighbor(context.Context, *AddNeighborRequest) (*AddNeighborResponse, error)
	DeleteNeighbor(context.Context, *DeleteNeighborRequest) (*DeleteNeighborResponse, error)
	GetNeighbor(context.Context, *GetNeighborRequest) (*GetNeighborResponse, error)
	ResetNeighbor(context.Context, *ResetNeighborRequest) (*ResetNeighborResponse, error)
	SoftResetNeighbor(context.Context, *SoftResetNeighborRequest) (*SoftResetNeighborResponse, error)
	ShutdownNeighbor(context.Context, *ShutdownNeighborRequest) (*ShutdownNeighborResponse, error)
	EnableNeighbor(context.Context, *EnableNeighborRequest) (*EnableNeighborResponse, error)
	DisableNeighbor(context.Context, *DisableNeighborRequest) (*DisableNeighborResponse, error)
	GetRib(context.Context, *GetRibRequest) (*GetRibResponse, error)
	ValidateRib(context.Context, *ValidateRibRequest) (*ValidateRibResponse, error)
	AddPath(context.Context, *AddPathRequest) (*AddPathResponse, error)
	DeletePath(context.Context, *DeletePathRequest) (*DeletePathResponse, error)
	MonitorRib(*Table, GobgpApi_MonitorRibServer) error
	MonitorPeerState(*Arguments, GobgpApi_MonitorPeerStateServer) error
	EnableMrt(context.Context, *EnableMrtRequest) (*EnableMrtResponse, error)
	DisableMrt(context.Context, *DisableMrtRequest) (*DisableMrtResponse, error)
	InjectMrt(GobgpApi_InjectMrtServer) error
	AddBmp(context.Context, *AddBmpRequest) (*AddBmpResponse, error)
	DeleteBmp(context.Context, *DeleteBmpRequest) (*DeleteBmpResponse, error)
	GetRpki(context.Context, *GetRpkiRequest) (*GetRpkiResponse, error)
	AddRpki(context.Context, *AddRpkiRequest) (*AddRpkiResponse, error)
	DeleteRpki(context.Context, *DeleteRpkiRequest) (*DeleteRpkiResponse, error)
	EnableRpki(context.Context, *EnableRpkiRequest) (*EnableRpkiResponse, error)
	DisableRpki(context.Context, *DisableRpkiRequest) (*DisableRpkiResponse, error)
	ResetRpki(context.Context, *ResetRpkiRequest) (*ResetRpkiResponse, error)
	SoftResetRpki(context.Context, *SoftResetRpkiRequest) (*SoftResetRpkiResponse, error)
	GetRoa(context.Context, *GetRoaRequest) (*GetRoaResponse, error)
	EnableZebra(context.Context, *EnableZebraRequest) (*EnableZebraResponse, error)
	AddVrf(context.Context, *AddVrfRequest) (*AddVrfResponse, error)
	DeleteVrf(context.Context, *DeleteVrfRequest) (*DeleteVrfResponse, error)
	GetVrf(context.Context, *GetVrfRequest) (*GetVrfResponse, error)
	GetDefinedSet(context.Context, *GetDefinedSetRequest) (*GetDefinedSetResponse, error)
	AddDefinedSet(context.Context, *AddDefinedSetRequest) (*AddDefinedSetResponse, error)
	DeleteDefinedSet(context.Context, *DeleteDefinedSetRequest) (*DeleteDefinedSetResponse, error)
	ReplaceDefinedSet(context.Context, *ReplaceDefinedSetRequest) (*ReplaceDefinedSetResponse, error)
	GetStatement(context.Context, *GetStatementRequest) (*GetStatementResponse, error)
	AddStatement(context.Context, *AddStatementRequest) (*AddStatementResponse, error)
	DeleteStatement(context.Context, *DeleteStatementRequest) (*DeleteStatementResponse, error)
	ReplaceStatement(context.Context, *ReplaceStatementRequest) (*ReplaceStatementResponse, error)
	GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error)
	AddPolicy(context.Context, *AddPolicyRequest) (*AddPolicyResponse, error)
	DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error)
	ReplacePolicy(context.Context, *ReplacePolicyRequest) (*ReplacePolicyResponse, error)
	GetPolicyAssignment(context.Context, *GetPolicyAssignmentRequest) (*GetPolicyAssignmentResponse, error)
	AddPolicyAssignment(context.Context, *AddPolicyAssignmentRequest) (*AddPolicyAssignmentResponse, error)
	DeletePolicyAssignment(context.Context, *DeletePolicyAssignmentRequest) (*DeletePolicyAssignmentResponse, error)
	ReplacePolicyAssignment(context.Context, *ReplacePolicyAssignmentRequest) (*ReplacePolicyAssignmentResponse, error)
	GetRibInfo(context.Context, *GetRibInfoRequest) (*GetRibInfoResponse, error)
}

type GobgpApi_InjectMrtClient

type GobgpApi_InjectMrtClient interface {
	Send(*InjectMrtRequest) error
	CloseAndRecv() (*InjectMrtResponse, error)
	grpc.ClientStream
}

type GobgpApi_InjectMrtServer

type GobgpApi_InjectMrtServer interface {
	SendAndClose(*InjectMrtResponse) error
	Recv() (*InjectMrtRequest, 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_MonitorRibClient

type GobgpApi_MonitorRibClient interface {
	Recv() (*Destination, error)
	grpc.ClientStream
}

type GobgpApi_MonitorRibServer

type GobgpApi_MonitorRibServer interface {
	Send(*Destination) error
	grpc.ServerStream
}

type InjectMrtRequest

type InjectMrtRequest struct {
	Resource Resource `protobuf:"varint,1,opt,name=resource,enum=gobgpapi.Resource" json:"resource,omitempty"`
	VrfId    string   `protobuf:"bytes,2,opt,name=vrf_id,json=vrfId" json:"vrf_id,omitempty"`
	Paths    []*Path  `protobuf:"bytes,3,rep,name=paths" json:"paths,omitempty"`
}

func (*InjectMrtRequest) Descriptor

func (*InjectMrtRequest) Descriptor() ([]byte, []int)

func (*InjectMrtRequest) GetPaths

func (m *InjectMrtRequest) GetPaths() []*Path

func (*InjectMrtRequest) ProtoMessage

func (*InjectMrtRequest) ProtoMessage()

func (*InjectMrtRequest) Reset

func (m *InjectMrtRequest) Reset()

func (*InjectMrtRequest) String

func (m *InjectMrtRequest) String() string

type InjectMrtResponse

type InjectMrtResponse struct {
}

func (*InjectMrtResponse) Descriptor

func (*InjectMrtResponse) Descriptor() ([]byte, []int)

func (*InjectMrtResponse) ProtoMessage

func (*InjectMrtResponse) ProtoMessage()

func (*InjectMrtResponse) Reset

func (m *InjectMrtResponse) Reset()

func (*InjectMrtResponse) String

func (m *InjectMrtResponse) String() string

type LocalPrefAction

type LocalPrefAction struct {
	Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}

func (*LocalPrefAction) Descriptor

func (*LocalPrefAction) Descriptor() ([]byte, []int)

func (*LocalPrefAction) ProtoMessage

func (*LocalPrefAction) ProtoMessage()

func (*LocalPrefAction) Reset

func (m *LocalPrefAction) Reset()

func (*LocalPrefAction) String

func (m *LocalPrefAction) String() string

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) Descriptor() ([]byte, []int)

func (*MatchSet) ProtoMessage

func (*MatchSet) ProtoMessage()

func (*MatchSet) Reset

func (m *MatchSet) Reset()

func (*MatchSet) String

func (m *MatchSet) String() string

type MatchType

type MatchType int32
const (
	MatchType_ANY    MatchType = 0
	MatchType_ALL    MatchType = 1
	MatchType_INVERT MatchType = 2
)

func (MatchType) EnumDescriptor

func (MatchType) EnumDescriptor() ([]byte, []int)

func (MatchType) String

func (x MatchType) String() string

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) Descriptor() ([]byte, []int)

func (*MedAction) ProtoMessage

func (*MedAction) ProtoMessage()

func (*MedAction) Reset

func (m *MedAction) Reset()

func (*MedAction) String

func (m *MedAction) String() string

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) Descriptor() ([]byte, []int)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

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) Descriptor() ([]byte, []int)

func (*Messages) GetReceived

func (m *Messages) GetReceived() *Message

func (*Messages) GetSent

func (m *Messages) GetSent() *Message

func (*Messages) ProtoMessage

func (*Messages) ProtoMessage()

func (*Messages) Reset

func (m *Messages) Reset()

func (*Messages) String

func (m *Messages) String() string

type NexthopAction

type NexthopAction struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Self    bool   `protobuf:"varint,2,opt,name=self" json:"self,omitempty"`
}

func (*NexthopAction) Descriptor

func (*NexthopAction) Descriptor() ([]byte, []int)

func (*NexthopAction) ProtoMessage

func (*NexthopAction) ProtoMessage()

func (*NexthopAction) Reset

func (m *NexthopAction) Reset()

func (*NexthopAction) String

func (m *NexthopAction) 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=isWithdraw" 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=noImplicitWithdraw" 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=sourceAsn" json:"source_asn,omitempty"`
	SourceId           string   `protobuf:"bytes,10,opt,name=source_id,json=sourceId" json:"source_id,omitempty"`
	Filtered           bool     `protobuf:"varint,11,opt,name=filtered" json:"filtered,omitempty"`
	Stale              bool     `protobuf:"varint,12,opt,name=stale" json:"stale,omitempty"`
	IsFromExternal     bool     `protobuf:"varint,13,opt,name=is_from_external,json=isFromExternal" json:"is_from_external,omitempty"`
	NeighborIp         string   `protobuf:"bytes,14,opt,name=neighbor_ip,json=neighborIp" json:"neighbor_ip,omitempty"`
}

func ToPathApi

func ToPathApi(path *table.Path) *Path

func (*Path) Descriptor

func (*Path) Descriptor() ([]byte, []int)

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) Reset

func (m *Path) Reset()

func (*Path) String

func (m *Path) String() string

func (*Path) ToNativePath

func (p *Path) ToNativePath(option ...ToNativeOption) (*table.Path, error)

type Peer

type Peer struct {
	Families       []uint32        `protobuf:"varint,1,rep,packed,name=families" json:"families,omitempty"`
	ApplyPolicy    *ApplyPolicy    `protobuf:"bytes,2,opt,name=apply_policy,json=applyPolicy" json:"apply_policy,omitempty"`
	Conf           *PeerConf       `protobuf:"bytes,3,opt,name=conf" json:"conf,omitempty"`
	EbgpMultihop   *EbgpMultihop   `protobuf:"bytes,4,opt,name=ebgp_multihop,json=ebgpMultihop" json:"ebgp_multihop,omitempty"`
	RouteReflector *RouteReflector `protobuf:"bytes,5,opt,name=route_reflector,json=routeReflector" json:"route_reflector,omitempty"`
	Info           *PeerState      `protobuf:"bytes,6,opt,name=info" json:"info,omitempty"`
	Timers         *Timers         `protobuf:"bytes,7,opt,name=timers" json:"timers,omitempty"`
	Transport      *Transport      `protobuf:"bytes,8,opt,name=transport" json:"transport,omitempty"`
	RouteServer    *RouteServer    `protobuf:"bytes,9,opt,name=route_server,json=routeServer" json:"route_server,omitempty"`
}

func (*Peer) Descriptor

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) GetApplyPolicy

func (m *Peer) GetApplyPolicy() *ApplyPolicy

func (*Peer) GetConf

func (m *Peer) GetConf() *PeerConf

func (*Peer) GetEbgpMultihop

func (m *Peer) GetEbgpMultihop() *EbgpMultihop

func (*Peer) GetInfo

func (m *Peer) GetInfo() *PeerState

func (*Peer) GetRouteReflector

func (m *Peer) GetRouteReflector() *RouteReflector

func (*Peer) GetRouteServer

func (m *Peer) GetRouteServer() *RouteServer

func (*Peer) GetTimers

func (m *Peer) GetTimers() *Timers

func (*Peer) GetTransport

func (m *Peer) GetTransport() *Transport

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

type PeerConf

type PeerConf struct {
	AuthPassword      string         `protobuf:"bytes,1,opt,name=auth_password,json=authPassword" 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=localAs" json:"local_as,omitempty"`
	NeighborAddress   string         `protobuf:"bytes,4,opt,name=neighbor_address,json=neighborAddress" json:"neighbor_address,omitempty"`
	PeerAs            uint32         `protobuf:"varint,5,opt,name=peer_as,json=peerAs" json:"peer_as,omitempty"`
	PeerGroup         string         `protobuf:"bytes,6,opt,name=peer_group,json=peerGroup" json:"peer_group,omitempty"`
	PeerType          uint32         `protobuf:"varint,7,opt,name=peer_type,json=peerType" json:"peer_type,omitempty"`
	RemovePrivateAs   uint32         `protobuf:"varint,8,opt,name=remove_private_as,json=removePrivateAs" json:"remove_private_as,omitempty"`
	RouteFlapDamping  bool           `protobuf:"varint,9,opt,name=route_flap_damping,json=routeFlapDamping" json:"route_flap_damping,omitempty"`
	SendCommunity     uint32         `protobuf:"varint,10,opt,name=send_community,json=sendCommunity" json:"send_community,omitempty"`
	RemoteCap         [][]byte       `protobuf:"bytes,11,rep,name=remote_cap,json=remoteCap,proto3" json:"remote_cap,omitempty"`
	LocalCap          [][]byte       `protobuf:"bytes,12,rep,name=local_cap,json=localCap,proto3" json:"local_cap,omitempty"`
	Id                string         `protobuf:"bytes,13,opt,name=id" json:"id,omitempty"`
	PrefixLimits      []*PrefixLimit `protobuf:"bytes,14,rep,name=prefix_limits,json=prefixLimits" json:"prefix_limits,omitempty"`
	LocalAddress      string         `protobuf:"bytes,15,opt,name=local_address,json=localAddress" json:"local_address,omitempty"`
	NeighborInterface string         `protobuf:"bytes,16,opt,name=neighbor_interface,json=neighborInterface" json:"neighbor_interface,omitempty"`
}

func (*PeerConf) Descriptor

func (*PeerConf) Descriptor() ([]byte, []int)

func (*PeerConf) GetPrefixLimits

func (m *PeerConf) GetPrefixLimits() []*PrefixLimit

func (*PeerConf) ProtoMessage

func (*PeerConf) ProtoMessage()

func (*PeerConf) Reset

func (m *PeerConf) Reset()

func (*PeerConf) String

func (m *PeerConf) String() string

type PeerState

type PeerState struct {
	AuthPassword          string    `protobuf:"bytes,1,opt,name=auth_password,json=authPassword" 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=localAs" 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=neighborAddress" json:"neighbor_address,omitempty"`
	PeerAs                uint32    `protobuf:"varint,6,opt,name=peer_as,json=peerAs" json:"peer_as,omitempty"`
	PeerGroup             string    `protobuf:"bytes,7,opt,name=peer_group,json=peerGroup" json:"peer_group,omitempty"`
	PeerType              uint32    `protobuf:"varint,8,opt,name=peer_type,json=peerType" 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=removePrivateAs" json:"remove_private_as,omitempty"`
	RouteFlapDamping      bool      `protobuf:"varint,11,opt,name=route_flap_damping,json=routeFlapDamping" json:"route_flap_damping,omitempty"`
	SendCommunity         uint32    `protobuf:"varint,12,opt,name=send_community,json=sendCommunity" json:"send_community,omitempty"`
	SessionState          uint32    `protobuf:"varint,13,opt,name=session_state,json=sessionState" json:"session_state,omitempty"`
	SupportedCapabilities []string  `protobuf:"bytes,14,rep,name=supported_capabilities,json=supportedCapabilities" json:"supported_capabilities,omitempty"`
	BgpState              string    `protobuf:"bytes,15,opt,name=bgp_state,json=bgpState" json:"bgp_state,omitempty"`
	AdminState            string    `protobuf:"bytes,16,opt,name=admin_state,json=adminState" 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"`
	Advertised            uint32    `protobuf:"varint,19,opt,name=advertised" json:"advertised,omitempty"`
	OutQ                  uint32    `protobuf:"varint,20,opt,name=out_q,json=outQ" json:"out_q,omitempty"`
	Flops                 uint32    `protobuf:"varint,21,opt,name=flops" json:"flops,omitempty"`
}

func (*PeerState) Descriptor

func (*PeerState) Descriptor() ([]byte, []int)

func (*PeerState) GetMessages

func (m *PeerState) GetMessages() *Messages

func (*PeerState) GetQueues

func (m *PeerState) GetQueues() *Queues

func (*PeerState) ProtoMessage

func (*PeerState) ProtoMessage()

func (*PeerState) Reset

func (m *PeerState) Reset()

func (*PeerState) String

func (m *PeerState) String() string

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) Descriptor() ([]byte, []int)

func (*Policy) GetStatements

func (m *Policy) GetStatements() []*Statement

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) String

func (m *Policy) String() string

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=ipPrefix" json:"ip_prefix,omitempty"`
	MaskLengthMin uint32 `protobuf:"varint,2,opt,name=mask_length_min,json=maskLengthMin" json:"mask_length_min,omitempty"`
	MaskLengthMax uint32 `protobuf:"varint,3,opt,name=mask_length_max,json=maskLengthMax" json:"mask_length_max,omitempty"`
}

func (*Prefix) Descriptor

func (*Prefix) Descriptor() ([]byte, []int)

func (*Prefix) ProtoMessage

func (*Prefix) ProtoMessage()

func (*Prefix) Reset

func (m *Prefix) Reset()

func (*Prefix) String

func (m *Prefix) String() string

type PrefixLimit

type PrefixLimit struct {
	Family               uint32 `protobuf:"varint,1,opt,name=family" json:"family,omitempty"`
	MaxPrefixes          uint32 `protobuf:"varint,2,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"`
	ShutdownThresholdPct uint32 `protobuf:"varint,3,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"`
}

func (*PrefixLimit) Descriptor

func (*PrefixLimit) Descriptor() ([]byte, []int)

func (*PrefixLimit) ProtoMessage

func (*PrefixLimit) ProtoMessage()

func (*PrefixLimit) Reset

func (m *PrefixLimit) Reset()

func (*PrefixLimit) String

func (m *PrefixLimit) String() string

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) Descriptor() ([]byte, []int)

func (*Queues) ProtoMessage

func (*Queues) ProtoMessage()

func (*Queues) Reset

func (m *Queues) Reset()

func (*Queues) String

func (m *Queues) String() string

type RPKIConf

type RPKIConf struct {
	Address    string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	RemotePort string `protobuf:"bytes,2,opt,name=remote_port,json=remotePort" json:"remote_port,omitempty"`
}

func (*RPKIConf) Descriptor

func (*RPKIConf) Descriptor() ([]byte, []int)

func (*RPKIConf) ProtoMessage

func (*RPKIConf) ProtoMessage()

func (*RPKIConf) Reset

func (m *RPKIConf) Reset()

func (*RPKIConf) String

func (m *RPKIConf) String() string

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=recordIpv4" json:"record_ipv4,omitempty"`
	RecordIpv6    uint32 `protobuf:"varint,5,opt,name=record_ipv6,json=recordIpv6" json:"record_ipv6,omitempty"`
	PrefixIpv4    uint32 `protobuf:"varint,6,opt,name=prefix_ipv4,json=prefixIpv4" json:"prefix_ipv4,omitempty"`
	PrefixIpv6    uint32 `protobuf:"varint,7,opt,name=prefix_ipv6,json=prefixIpv6" 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=receivedIpv4" json:"received_ipv4,omitempty"`
	ReceivedIpv6  int64  `protobuf:"varint,10,opt,name=received_ipv6,json=receivedIpv6" json:"received_ipv6,omitempty"`
	SerialNotify  int64  `protobuf:"varint,11,opt,name=serial_notify,json=serialNotify" json:"serial_notify,omitempty"`
	CacheReset    int64  `protobuf:"varint,12,opt,name=cache_reset,json=cacheReset" json:"cache_reset,omitempty"`
	CacheResponse int64  `protobuf:"varint,13,opt,name=cache_response,json=cacheResponse" json:"cache_response,omitempty"`
	EndOfData     int64  `protobuf:"varint,14,opt,name=end_of_data,json=endOfData" 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=serialQuery" json:"serial_query,omitempty"`
	ResetQuery    int64  `protobuf:"varint,17,opt,name=reset_query,json=resetQuery" json:"reset_query,omitempty"`
}

func (*RPKIState) Descriptor

func (*RPKIState) Descriptor() ([]byte, []int)

func (*RPKIState) ProtoMessage

func (*RPKIState) ProtoMessage()

func (*RPKIState) Reset

func (m *RPKIState) Reset()

func (*RPKIState) String

func (m *RPKIState) String() string

type ReplaceDefinedSetRequest

type ReplaceDefinedSetRequest struct {
	Set *DefinedSet `protobuf:"bytes,1,opt,name=set" json:"set,omitempty"`
}

func (*ReplaceDefinedSetRequest) Descriptor

func (*ReplaceDefinedSetRequest) Descriptor() ([]byte, []int)

func (*ReplaceDefinedSetRequest) GetSet

func (m *ReplaceDefinedSetRequest) GetSet() *DefinedSet

func (*ReplaceDefinedSetRequest) ProtoMessage

func (*ReplaceDefinedSetRequest) ProtoMessage()

func (*ReplaceDefinedSetRequest) Reset

func (m *ReplaceDefinedSetRequest) Reset()

func (*ReplaceDefinedSetRequest) String

func (m *ReplaceDefinedSetRequest) String() string

type ReplaceDefinedSetResponse

type ReplaceDefinedSetResponse struct {
}

func (*ReplaceDefinedSetResponse) Descriptor

func (*ReplaceDefinedSetResponse) Descriptor() ([]byte, []int)

func (*ReplaceDefinedSetResponse) ProtoMessage

func (*ReplaceDefinedSetResponse) ProtoMessage()

func (*ReplaceDefinedSetResponse) Reset

func (m *ReplaceDefinedSetResponse) Reset()

func (*ReplaceDefinedSetResponse) String

func (m *ReplaceDefinedSetResponse) String() string

type ReplacePolicyAssignmentRequest

type ReplacePolicyAssignmentRequest struct {
	Assignment *PolicyAssignment `protobuf:"bytes,1,opt,name=assignment" json:"assignment,omitempty"`
}

func (*ReplacePolicyAssignmentRequest) Descriptor

func (*ReplacePolicyAssignmentRequest) Descriptor() ([]byte, []int)

func (*ReplacePolicyAssignmentRequest) GetAssignment

func (*ReplacePolicyAssignmentRequest) ProtoMessage

func (*ReplacePolicyAssignmentRequest) ProtoMessage()

func (*ReplacePolicyAssignmentRequest) Reset

func (m *ReplacePolicyAssignmentRequest) Reset()

func (*ReplacePolicyAssignmentRequest) String

type ReplacePolicyAssignmentResponse

type ReplacePolicyAssignmentResponse struct {
}

func (*ReplacePolicyAssignmentResponse) Descriptor

func (*ReplacePolicyAssignmentResponse) Descriptor() ([]byte, []int)

func (*ReplacePolicyAssignmentResponse) ProtoMessage

func (*ReplacePolicyAssignmentResponse) ProtoMessage()

func (*ReplacePolicyAssignmentResponse) Reset

func (*ReplacePolicyAssignmentResponse) String

type ReplacePolicyRequest

type ReplacePolicyRequest struct {
	Policy *Policy `protobuf:"bytes,1,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.
	ReferExistingStatements bool `` /* 126-byte string literal not displayed */
	// if this flag is set, gobgpd won't delete any statements
	// even if some statements get not used by any policy by this operation.
	PreserveStatements bool `protobuf:"varint,3,opt,name=preserve_statements,json=preserveStatements" json:"preserve_statements,omitempty"`
}

func (*ReplacePolicyRequest) Descriptor

func (*ReplacePolicyRequest) Descriptor() ([]byte, []int)

func (*ReplacePolicyRequest) GetPolicy

func (m *ReplacePolicyRequest) GetPolicy() *Policy

func (*ReplacePolicyRequest) ProtoMessage

func (*ReplacePolicyRequest) ProtoMessage()

func (*ReplacePolicyRequest) Reset

func (m *ReplacePolicyRequest) Reset()

func (*ReplacePolicyRequest) String

func (m *ReplacePolicyRequest) String() string

type ReplacePolicyResponse

type ReplacePolicyResponse struct {
}

func (*ReplacePolicyResponse) Descriptor

func (*ReplacePolicyResponse) Descriptor() ([]byte, []int)

func (*ReplacePolicyResponse) ProtoMessage

func (*ReplacePolicyResponse) ProtoMessage()

func (*ReplacePolicyResponse) Reset

func (m *ReplacePolicyResponse) Reset()

func (*ReplacePolicyResponse) String

func (m *ReplacePolicyResponse) String() string

type ReplaceStatementRequest

type ReplaceStatementRequest struct {
	Statement *Statement `protobuf:"bytes,1,opt,name=statement" json:"statement,omitempty"`
}

func (*ReplaceStatementRequest) Descriptor

func (*ReplaceStatementRequest) Descriptor() ([]byte, []int)

func (*ReplaceStatementRequest) GetStatement

func (m *ReplaceStatementRequest) GetStatement() *Statement

func (*ReplaceStatementRequest) ProtoMessage

func (*ReplaceStatementRequest) ProtoMessage()

func (*ReplaceStatementRequest) Reset

func (m *ReplaceStatementRequest) Reset()

func (*ReplaceStatementRequest) String

func (m *ReplaceStatementRequest) String() string

type ReplaceStatementResponse

type ReplaceStatementResponse struct {
}

func (*ReplaceStatementResponse) Descriptor

func (*ReplaceStatementResponse) Descriptor() ([]byte, []int)

func (*ReplaceStatementResponse) ProtoMessage

func (*ReplaceStatementResponse) ProtoMessage()

func (*ReplaceStatementResponse) Reset

func (m *ReplaceStatementResponse) Reset()

func (*ReplaceStatementResponse) String

func (m *ReplaceStatementResponse) String() string

type ResetNeighborRequest

type ResetNeighborRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*ResetNeighborRequest) Descriptor

func (*ResetNeighborRequest) Descriptor() ([]byte, []int)

func (*ResetNeighborRequest) ProtoMessage

func (*ResetNeighborRequest) ProtoMessage()

func (*ResetNeighborRequest) Reset

func (m *ResetNeighborRequest) Reset()

func (*ResetNeighborRequest) String

func (m *ResetNeighborRequest) String() string

type ResetNeighborResponse

type ResetNeighborResponse struct {
}

func (*ResetNeighborResponse) Descriptor

func (*ResetNeighborResponse) Descriptor() ([]byte, []int)

func (*ResetNeighborResponse) ProtoMessage

func (*ResetNeighborResponse) ProtoMessage()

func (*ResetNeighborResponse) Reset

func (m *ResetNeighborResponse) Reset()

func (*ResetNeighborResponse) String

func (m *ResetNeighborResponse) String() string

type ResetRpkiRequest

type ResetRpkiRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}

func (*ResetRpkiRequest) Descriptor

func (*ResetRpkiRequest) Descriptor() ([]byte, []int)

func (*ResetRpkiRequest) ProtoMessage

func (*ResetRpkiRequest) ProtoMessage()

func (*ResetRpkiRequest) Reset

func (m *ResetRpkiRequest) Reset()

func (*ResetRpkiRequest) String

func (m *ResetRpkiRequest) String() string

type ResetRpkiResponse

type ResetRpkiResponse struct {
}

func (*ResetRpkiResponse) Descriptor

func (*ResetRpkiResponse) Descriptor() ([]byte, []int)

func (*ResetRpkiResponse) ProtoMessage

func (*ResetRpkiResponse) ProtoMessage()

func (*ResetRpkiResponse) Reset

func (m *ResetRpkiResponse) Reset()

func (*ResetRpkiResponse) String

func (m *ResetRpkiResponse) String() string

type Resource

type Resource int32
const (
	Resource_GLOBAL  Resource = 0
	Resource_LOCAL   Resource = 1
	Resource_ADJ_IN  Resource = 2
	Resource_ADJ_OUT Resource = 3
	Resource_VRF     Resource = 4
)

func (Resource) EnumDescriptor

func (Resource) EnumDescriptor() ([]byte, []int)

func (Resource) String

func (x Resource) String() string

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) Descriptor() ([]byte, []int)

func (*Roa) GetConf

func (m *Roa) GetConf() *RPKIConf

func (*Roa) ProtoMessage

func (*Roa) ProtoMessage()

func (*Roa) Reset

func (m *Roa) Reset()

func (*Roa) String

func (m *Roa) String() string

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=routeReflectorClient" json:"route_reflector_client,omitempty"`
	RouteReflectorClusterId string `` /* 127-byte string literal not displayed */
}

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=routeServerClient" 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 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) Descriptor() ([]byte, []int)

func (*Rpki) GetConf

func (m *Rpki) GetConf() *RPKIConf

func (*Rpki) GetState

func (m *Rpki) GetState() *RPKIState

func (*Rpki) ProtoMessage

func (*Rpki) ProtoMessage()

func (*Rpki) Reset

func (m *Rpki) Reset()

func (*Rpki) String

func (m *Rpki) String() string

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewGrpcServer

func NewGrpcServer(b *server.BgpServer, hosts string) *Server

func NewServer

func NewServer(b *server.BgpServer, g *grpc.Server, hosts string) *Server

func (*Server) AddBmp

func (s *Server) AddBmp(ctx context.Context, arg *AddBmpRequest) (*AddBmpResponse, error)

func (*Server) AddDefinedSet

func (s *Server) AddDefinedSet(ctx context.Context, arg *AddDefinedSetRequest) (*AddDefinedSetResponse, error)

func (*Server) AddNeighbor

func (s *Server) AddNeighbor(ctx context.Context, arg *AddNeighborRequest) (*AddNeighborResponse, error)

func (*Server) AddPath

func (s *Server) AddPath(ctx context.Context, arg *AddPathRequest) (*AddPathResponse, error)

func (*Server) AddPolicy

func (s *Server) AddPolicy(ctx context.Context, arg *AddPolicyRequest) (*AddPolicyResponse, error)

func (*Server) AddPolicyAssignment

func (s *Server) AddPolicyAssignment(ctx context.Context, arg *AddPolicyAssignmentRequest) (*AddPolicyAssignmentResponse, error)

func (*Server) AddRpki

func (s *Server) AddRpki(ctx context.Context, arg *AddRpkiRequest) (*AddRpkiResponse, error)

func (*Server) AddStatement

func (s *Server) AddStatement(ctx context.Context, arg *AddStatementRequest) (*AddStatementResponse, error)

func (*Server) AddVrf

func (s *Server) AddVrf(ctx context.Context, arg *AddVrfRequest) (r *AddVrfResponse, err error)

func (*Server) DeleteBmp

func (s *Server) DeleteBmp(ctx context.Context, arg *DeleteBmpRequest) (*DeleteBmpResponse, error)

func (*Server) DeleteDefinedSet

func (s *Server) DeleteDefinedSet(ctx context.Context, arg *DeleteDefinedSetRequest) (*DeleteDefinedSetResponse, error)

func (*Server) DeleteNeighbor

func (s *Server) DeleteNeighbor(ctx context.Context, arg *DeleteNeighborRequest) (*DeleteNeighborResponse, error)

func (*Server) DeletePath

func (s *Server) DeletePath(ctx context.Context, arg *DeletePathRequest) (*DeletePathResponse, error)

func (*Server) DeletePolicy

func (s *Server) DeletePolicy(ctx context.Context, arg *DeletePolicyRequest) (*DeletePolicyResponse, error)

func (*Server) DeletePolicyAssignment

func (*Server) DeleteRpki

func (s *Server) DeleteRpki(ctx context.Context, arg *DeleteRpkiRequest) (*DeleteRpkiResponse, error)

func (*Server) DeleteStatement

func (s *Server) DeleteStatement(ctx context.Context, arg *DeleteStatementRequest) (*DeleteStatementResponse, error)

func (*Server) DeleteVrf

func (s *Server) DeleteVrf(ctx context.Context, arg *DeleteVrfRequest) (*DeleteVrfResponse, error)

func (*Server) DisableMrt

func (s *Server) DisableMrt(ctx context.Context, arg *DisableMrtRequest) (*DisableMrtResponse, error)

func (*Server) DisableNeighbor

func (s *Server) DisableNeighbor(ctx context.Context, arg *DisableNeighborRequest) (*DisableNeighborResponse, error)

func (*Server) DisableRpki

func (s *Server) DisableRpki(ctx context.Context, arg *DisableRpkiRequest) (*DisableRpkiResponse, error)

func (*Server) EnableMrt

func (s *Server) EnableMrt(ctx context.Context, arg *EnableMrtRequest) (*EnableMrtResponse, error)

func (*Server)