api

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path_Type_name = map[int32]string{
		0: "Static",
		1: "BGP",
		2: "GRP",
	}
	Path_Type_value = map[string]int32{
		"Static": 0,
		"BGP":    1,
		"GRP":    2,
	}
)

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"`
	OnlyToCustomer    uint32                  `protobuf:"varint,16,opt,name=only_to_customer,json=onlyToCustomer,proto3" json:"only_to_customer,omitempty"`
	// contains filtered or unexported fields
}

func (*BGPPath) Descriptor deprecated

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

Deprecated: Use BGPPath.ProtoReflect.Descriptor instead.

func (*BGPPath) GetAsPath

func (x *BGPPath) GetAsPath() []*ASPathSegment

func (*BGPPath) GetBgpIdentifier

func (x *BGPPath) GetBgpIdentifier() uint32

func (*BGPPath) GetBmpPostPolicy

func (x *BGPPath) GetBmpPostPolicy() bool

func (*BGPPath) GetClusterList

func (x *BGPPath) GetClusterList() []uint32

func (*BGPPath) GetCommunities

func (x *BGPPath) GetCommunities() []uint32

func (*BGPPath) GetEbgp

func (x *BGPPath) GetEbgp() bool

func (*BGPPath) GetLargeCommunities

func (x *BGPPath) GetLargeCommunities() []*LargeCommunity

func (*BGPPath) GetLocalPref

func (x *BGPPath) GetLocalPref() uint32

func (*BGPPath) GetMed

func (x *BGPPath) GetMed() uint32

func (*BGPPath) GetNextHop

func (x *BGPPath) GetNextHop() *api.IP

func (*BGPPath) GetOnlyToCustomer

func (x *BGPPath) GetOnlyToCustomer() uint32

func (*BGPPath) GetOrigin

func (x *BGPPath) GetOrigin() uint32

func (*BGPPath) GetOriginatorId

func (x *BGPPath) GetOriginatorId() uint32

func (*BGPPath) GetPathIdentifier

func (x *BGPPath) GetPathIdentifier() uint32

func (*BGPPath) GetSource

func (x *BGPPath) GetSource() *api.IP

func (*BGPPath) GetUnknownAttributes

func (x *BGPPath) GetUnknownAttributes() []*UnknownPathAttribute

func (*BGPPath) ProtoMessage

func (*BGPPath) ProtoMessage()

func (*BGPPath) ProtoReflect

func (x *BGPPath) ProtoReflect() protoreflect.Message

func (*BGPPath) Reset

func (x *BGPPath) Reset()

func (*BGPPath) String

func (x *BGPPath) String() string

type GRPPath added in v0.1.8

type GRPPath struct {
	NextHop  *api.IP           `protobuf:"bytes,1,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"`
	MetaData map[string]string `` /* 173-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GRPPath) Descriptor deprecated added in v0.1.8

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

Deprecated: Use GRPPath.ProtoReflect.Descriptor instead.

func (*GRPPath) GetMetaData added in v0.1.8

func (x *GRPPath) GetMetaData() map[string]string

func (*GRPPath) GetNextHop added in v0.1.8

func (x *GRPPath) GetNextHop() *api.IP

func (*GRPPath) ProtoMessage added in v0.1.8

func (*GRPPath) ProtoMessage()

func (*GRPPath) ProtoReflect added in v0.1.8

func (x *GRPPath) ProtoReflect() protoreflect.Message

func (*GRPPath) Reset added in v0.1.8

func (x *GRPPath) Reset()

func (*GRPPath) String added in v0.1.8

func (x *GRPPath) String() string

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"`
	GrpPath      *GRPPath          `protobuf:"bytes,6,opt,name=grp_path,json=grpPath,proto3" json:"grp_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Path) Descriptor deprecated

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

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetBgpPath

func (x *Path) GetBgpPath() *BGPPath

func (*Path) GetGrpPath added in v0.1.8

func (x *Path) GetGrpPath() *GRPPath

func (*Path) GetHiddenReason

func (x *Path) GetHiddenReason() Path_HiddenReason

func (*Path) GetStaticPath

func (x *Path) GetStaticPath() *StaticPath

func (*Path) GetTimeLearned

func (x *Path) GetTimeLearned() uint32

func (*Path) GetType

func (x *Path) GetType() Path_Type

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) ProtoReflect

func (x *Path) ProtoReflect() protoreflect.Message

func (*Path) Reset

func (x *Path) Reset()

func (*Path) String

func (x *Path) String() string

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

func (Path_HiddenReason) EnumDescriptor deprecated

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

Deprecated: Use Path_HiddenReason.Descriptor instead.

func (Path_HiddenReason) Number

func (Path_HiddenReason) String

func (x Path_HiddenReason) String() string

func (Path_HiddenReason) Type

type Path_Type

type Path_Type int32
const (
	Path_Static Path_Type = 0
	Path_BGP    Path_Type = 1
	Path_GRP    Path_Type = 2
)

func (Path_Type) Descriptor

func (Path_Type) Descriptor() protoreflect.EnumDescriptor

func (Path_Type) Enum

func (x Path_Type) Enum() *Path_Type

func (Path_Type) EnumDescriptor deprecated

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

Deprecated: Use Path_Type.Descriptor instead.

func (Path_Type) Number

func (x Path_Type) Number() protoreflect.EnumNumber

func (Path_Type) String

func (x Path_Type) String() string

func (Path_Type) Type

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetPaths

func (x *Route) GetPaths() []*Path

func (*Route) GetPfx

func (x *Route) GetPfx() *api.Prefix

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL