Documentation ¶
Index ¶
- Variables
- type ASPathSegment
- func (*ASPathSegment) Descriptor() ([]byte, []int)deprecated
- func (x *ASPathSegment) GetAsSequence() bool
- func (x *ASPathSegment) GetAsns() []uint32
- func (*ASPathSegment) ProtoMessage()
- func (x *ASPathSegment) ProtoReflect() protoreflect.Message
- func (x *ASPathSegment) Reset()
- func (x *ASPathSegment) String() string
- type BGPPath
- func (*BGPPath) Descriptor() ([]byte, []int)deprecated
- func (x *BGPPath) GetAsPath() []*ASPathSegment
- func (x *BGPPath) GetBgpIdentifier() uint32
- func (x *BGPPath) GetBmpPostPolicy() bool
- func (x *BGPPath) GetClusterList() []uint32
- func (x *BGPPath) GetCommunities() []uint32
- func (x *BGPPath) GetEbgp() bool
- func (x *BGPPath) GetLargeCommunities() []*LargeCommunity
- func (x *BGPPath) GetLocalPref() uint32
- func (x *BGPPath) GetMed() uint32
- func (x *BGPPath) GetNextHop() *api.IP
- func (x *BGPPath) GetOrigin() uint32
- func (x *BGPPath) GetOriginatorId() uint32
- func (x *BGPPath) GetPathIdentifier() uint32
- func (x *BGPPath) GetSource() *api.IP
- func (x *BGPPath) GetUnknownAttributes() []*UnknownPathAttribute
- func (*BGPPath) ProtoMessage()
- func (x *BGPPath) ProtoReflect() protoreflect.Message
- func (x *BGPPath) Reset()
- func (x *BGPPath) String() string
- type LargeCommunity
- func (*LargeCommunity) Descriptor() ([]byte, []int)deprecated
- func (x *LargeCommunity) GetDataPart1() uint32
- func (x *LargeCommunity) GetDataPart2() uint32
- func (x *LargeCommunity) GetGlobalAdministrator() uint32
- func (*LargeCommunity) ProtoMessage()
- func (x *LargeCommunity) ProtoReflect() protoreflect.Message
- func (x *LargeCommunity) Reset()
- func (x *LargeCommunity) String() string
- type Path
- func (*Path) Descriptor() ([]byte, []int)deprecated
- func (x *Path) GetBgpPath() *BGPPath
- func (x *Path) GetHiddenReason() Path_HiddenReason
- func (x *Path) GetStaticPath() *StaticPath
- func (x *Path) GetTimeLearned() uint32
- func (x *Path) GetType() Path_Type
- func (*Path) ProtoMessage()
- func (x *Path) ProtoReflect() protoreflect.Message
- func (x *Path) Reset()
- func (x *Path) String() string
- type Path_HiddenReason
- func (Path_HiddenReason) Descriptor() protoreflect.EnumDescriptor
- func (x Path_HiddenReason) Enum() *Path_HiddenReason
- func (Path_HiddenReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x Path_HiddenReason) Number() protoreflect.EnumNumber
- func (x Path_HiddenReason) String() string
- func (Path_HiddenReason) Type() protoreflect.EnumType
- type Path_Type
- type Route
- type StaticPath
- type UnknownPathAttribute
- func (*UnknownPathAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *UnknownPathAttribute) GetOptional() bool
- func (x *UnknownPathAttribute) GetPartial() bool
- func (x *UnknownPathAttribute) GetTransitive() bool
- func (x *UnknownPathAttribute) GetTypeCode() uint32
- func (x *UnknownPathAttribute) GetValue() []byte
- func (*UnknownPathAttribute) ProtoMessage()
- func (x *UnknownPathAttribute) ProtoReflect() protoreflect.Message
- func (x *UnknownPathAttribute) Reset()
- func (x *UnknownPathAttribute) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Path_Type_name = map[int32]string{ 0: "Static", 1: "BGP", } Path_Type_value = map[string]int32{ "Static": 0, "BGP": 1, } )
Enum value maps for Path_Type.
View Source
var ( Path_HiddenReason_name = map[int32]string{ 0: "HiddenReasonNone", 1: "HiddenReasonNextHopUnreachable", 2: "HiddenReasonFilteredByPolicy", 3: "HiddenReasonASLoop", 4: "HiddenReasonOurOriginatorID", 5: "HiddenReasonClusterLoop", 6: "HiddenReasonOTCMismatch", } Path_HiddenReason_value = map[string]int32{ "HiddenReasonNone": 0, "HiddenReasonNextHopUnreachable": 1, "HiddenReasonFilteredByPolicy": 2, "HiddenReasonASLoop": 3, "HiddenReasonOurOriginatorID": 4, "HiddenReasonClusterLoop": 5, "HiddenReasonOTCMismatch": 6, } )
Enum value maps for Path_HiddenReason.
View Source
var File_route_api_route_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ASPathSegment ¶
type ASPathSegment struct { AsSequence bool `protobuf:"varint,1,opt,name=as_sequence,json=asSequence,proto3" json:"as_sequence,omitempty"` Asns []uint32 `protobuf:"varint,2,rep,packed,name=asns,proto3" json:"asns,omitempty"` // contains filtered or unexported fields }
func (*ASPathSegment) Descriptor
deprecated
func (*ASPathSegment) Descriptor() ([]byte, []int)
Deprecated: Use ASPathSegment.ProtoReflect.Descriptor instead.
func (*ASPathSegment) GetAsSequence ¶
func (x *ASPathSegment) GetAsSequence() bool
func (*ASPathSegment) GetAsns ¶
func (x *ASPathSegment) GetAsns() []uint32
func (*ASPathSegment) ProtoMessage ¶
func (*ASPathSegment) ProtoMessage()
func (*ASPathSegment) ProtoReflect ¶
func (x *ASPathSegment) ProtoReflect() protoreflect.Message
func (*ASPathSegment) Reset ¶
func (x *ASPathSegment) Reset()
func (*ASPathSegment) String ¶
func (x *ASPathSegment) String() string
type BGPPath ¶
type BGPPath struct { PathIdentifier uint32 `protobuf:"varint,1,opt,name=path_identifier,json=pathIdentifier,proto3" json:"path_identifier,omitempty"` NextHop *api.IP `protobuf:"bytes,2,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` LocalPref uint32 `protobuf:"varint,3,opt,name=local_pref,json=localPref,proto3" json:"local_pref,omitempty"` AsPath []*ASPathSegment `protobuf:"bytes,4,rep,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` Origin uint32 `protobuf:"varint,5,opt,name=origin,proto3" json:"origin,omitempty"` Med uint32 `protobuf:"varint,6,opt,name=med,proto3" json:"med,omitempty"` Ebgp bool `protobuf:"varint,7,opt,name=ebgp,proto3" json:"ebgp,omitempty"` BgpIdentifier uint32 `protobuf:"varint,8,opt,name=bgp_identifier,json=bgpIdentifier,proto3" json:"bgp_identifier,omitempty"` Source *api.IP `protobuf:"bytes,9,opt,name=source,proto3" json:"source,omitempty"` Communities []uint32 `protobuf:"varint,10,rep,packed,name=communities,proto3" json:"communities,omitempty"` LargeCommunities []*LargeCommunity `protobuf:"bytes,11,rep,name=large_communities,json=largeCommunities,proto3" json:"large_communities,omitempty"` OriginatorId uint32 `protobuf:"varint,12,opt,name=originator_id,json=originatorId,proto3" json:"originator_id,omitempty"` ClusterList []uint32 `protobuf:"varint,13,rep,packed,name=cluster_list,json=clusterList,proto3" json:"cluster_list,omitempty"` UnknownAttributes []*UnknownPathAttribute `protobuf:"bytes,14,rep,name=unknown_attributes,json=unknownAttributes,proto3" json:"unknown_attributes,omitempty"` BmpPostPolicy bool `protobuf:"varint,15,opt,name=bmp_post_policy,json=bmpPostPolicy,proto3" json:"bmp_post_policy,omitempty"` // contains filtered or unexported fields }
func (*BGPPath) Descriptor
deprecated
func (*BGPPath) GetAsPath ¶
func (x *BGPPath) GetAsPath() []*ASPathSegment
func (*BGPPath) GetBgpIdentifier ¶
func (*BGPPath) GetBmpPostPolicy ¶
func (*BGPPath) GetClusterList ¶
func (*BGPPath) GetCommunities ¶
func (*BGPPath) GetLargeCommunities ¶
func (x *BGPPath) GetLargeCommunities() []*LargeCommunity
func (*BGPPath) GetLocalPref ¶
func (*BGPPath) GetNextHop ¶
func (*BGPPath) GetOriginatorId ¶
func (*BGPPath) GetPathIdentifier ¶
func (*BGPPath) GetUnknownAttributes ¶
func (x *BGPPath) GetUnknownAttributes() []*UnknownPathAttribute
func (*BGPPath) ProtoMessage ¶
func (*BGPPath) ProtoMessage()
func (*BGPPath) ProtoReflect ¶
func (x *BGPPath) ProtoReflect() protoreflect.Message
type LargeCommunity ¶
type LargeCommunity struct { GlobalAdministrator uint32 `protobuf:"varint,1,opt,name=global_administrator,json=globalAdministrator,proto3" json:"global_administrator,omitempty"` DataPart1 uint32 `protobuf:"varint,2,opt,name=data_part1,json=dataPart1,proto3" json:"data_part1,omitempty"` DataPart2 uint32 `protobuf:"varint,3,opt,name=data_part2,json=dataPart2,proto3" json:"data_part2,omitempty"` // contains filtered or unexported fields }
func (*LargeCommunity) Descriptor
deprecated
func (*LargeCommunity) Descriptor() ([]byte, []int)
Deprecated: Use LargeCommunity.ProtoReflect.Descriptor instead.
func (*LargeCommunity) GetDataPart1 ¶
func (x *LargeCommunity) GetDataPart1() uint32
func (*LargeCommunity) GetDataPart2 ¶
func (x *LargeCommunity) GetDataPart2() uint32
func (*LargeCommunity) GetGlobalAdministrator ¶
func (x *LargeCommunity) GetGlobalAdministrator() uint32
func (*LargeCommunity) ProtoMessage ¶
func (*LargeCommunity) ProtoMessage()
func (*LargeCommunity) ProtoReflect ¶
func (x *LargeCommunity) ProtoReflect() protoreflect.Message
func (*LargeCommunity) Reset ¶
func (x *LargeCommunity) Reset()
func (*LargeCommunity) String ¶
func (x *LargeCommunity) String() string
type Path ¶
type Path struct { Type Path_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bio.route.Path_Type" json:"type,omitempty"` StaticPath *StaticPath `protobuf:"bytes,2,opt,name=static_path,json=staticPath,proto3" json:"static_path,omitempty"` BgpPath *BGPPath `protobuf:"bytes,3,opt,name=bgp_path,json=bgpPath,proto3" json:"bgp_path,omitempty"` HiddenReason Path_HiddenReason `` /* 131-byte string literal not displayed */ TimeLearned uint32 `protobuf:"varint,5,opt,name=time_learned,json=timeLearned,proto3" json:"time_learned,omitempty"` // contains filtered or unexported fields }
func (*Path) Descriptor
deprecated
func (*Path) GetBgpPath ¶
func (*Path) GetHiddenReason ¶
func (x *Path) GetHiddenReason() Path_HiddenReason
func (*Path) GetStaticPath ¶
func (x *Path) GetStaticPath() *StaticPath
func (*Path) GetTimeLearned ¶
func (*Path) ProtoMessage ¶
func (*Path) ProtoMessage()
func (*Path) ProtoReflect ¶
func (x *Path) ProtoReflect() protoreflect.Message
type Path_HiddenReason ¶
type Path_HiddenReason int32
const ( Path_HiddenReasonNone Path_HiddenReason = 0 Path_HiddenReasonNextHopUnreachable Path_HiddenReason = 1 Path_HiddenReasonFilteredByPolicy Path_HiddenReason = 2 Path_HiddenReasonASLoop Path_HiddenReason = 3 Path_HiddenReasonOurOriginatorID Path_HiddenReason = 4 Path_HiddenReasonClusterLoop Path_HiddenReason = 5 Path_HiddenReasonOTCMismatch Path_HiddenReason = 6 )
func (Path_HiddenReason) Descriptor ¶
func (Path_HiddenReason) Descriptor() protoreflect.EnumDescriptor
func (Path_HiddenReason) Enum ¶
func (x Path_HiddenReason) Enum() *Path_HiddenReason
func (Path_HiddenReason) EnumDescriptor
deprecated
func (Path_HiddenReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use Path_HiddenReason.Descriptor instead.
func (Path_HiddenReason) Number ¶
func (x Path_HiddenReason) Number() protoreflect.EnumNumber
func (Path_HiddenReason) String ¶
func (x Path_HiddenReason) String() string
func (Path_HiddenReason) Type ¶
func (Path_HiddenReason) Type() protoreflect.EnumType
type Path_Type ¶
type Path_Type int32
func (Path_Type) Descriptor ¶
func (Path_Type) Descriptor() protoreflect.EnumDescriptor
func (Path_Type) EnumDescriptor
deprecated
func (Path_Type) Number ¶
func (x Path_Type) Number() protoreflect.EnumNumber
func (Path_Type) Type ¶
func (Path_Type) Type() protoreflect.EnumType
type Route ¶
type Route struct { Pfx *api.Prefix `protobuf:"bytes,1,opt,name=pfx,proto3" json:"pfx,omitempty"` Paths []*Path `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` // contains filtered or unexported fields }
func (*Route) Descriptor
deprecated
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type StaticPath ¶
type StaticPath struct { NextHop *api.IP `protobuf:"bytes,1,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"` // contains filtered or unexported fields }
func (*StaticPath) Descriptor
deprecated
func (*StaticPath) Descriptor() ([]byte, []int)
Deprecated: Use StaticPath.ProtoReflect.Descriptor instead.
func (*StaticPath) GetNextHop ¶
func (x *StaticPath) GetNextHop() *api.IP
func (*StaticPath) ProtoMessage ¶
func (*StaticPath) ProtoMessage()
func (*StaticPath) ProtoReflect ¶
func (x *StaticPath) ProtoReflect() protoreflect.Message
func (*StaticPath) Reset ¶
func (x *StaticPath) Reset()
func (*StaticPath) String ¶
func (x *StaticPath) String() string
type UnknownPathAttribute ¶
type UnknownPathAttribute struct { Optional bool `protobuf:"varint,1,opt,name=optional,proto3" json:"optional,omitempty"` Transitive bool `protobuf:"varint,2,opt,name=transitive,proto3" json:"transitive,omitempty"` Partial bool `protobuf:"varint,3,opt,name=partial,proto3" json:"partial,omitempty"` TypeCode uint32 `protobuf:"varint,4,opt,name=type_code,json=typeCode,proto3" json:"type_code,omitempty"` Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*UnknownPathAttribute) Descriptor
deprecated
func (*UnknownPathAttribute) Descriptor() ([]byte, []int)
Deprecated: Use UnknownPathAttribute.ProtoReflect.Descriptor instead.
func (*UnknownPathAttribute) GetOptional ¶
func (x *UnknownPathAttribute) GetOptional() bool
func (*UnknownPathAttribute) GetPartial ¶
func (x *UnknownPathAttribute) GetPartial() bool
func (*UnknownPathAttribute) GetTransitive ¶
func (x *UnknownPathAttribute) GetTransitive() bool
func (*UnknownPathAttribute) GetTypeCode ¶
func (x *UnknownPathAttribute) GetTypeCode() uint32
func (*UnknownPathAttribute) GetValue ¶
func (x *UnknownPathAttribute) GetValue() []byte
func (*UnknownPathAttribute) ProtoMessage ¶
func (*UnknownPathAttribute) ProtoMessage()
func (*UnknownPathAttribute) ProtoReflect ¶
func (x *UnknownPathAttribute) ProtoReflect() protoreflect.Message
func (*UnknownPathAttribute) Reset ¶
func (x *UnknownPathAttribute) Reset()
func (*UnknownPathAttribute) String ¶
func (x *UnknownPathAttribute) String() string
Click to show internal directories.
Click to hide internal directories.