api

package
v0.0.3-pre7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ASPathSegment) Descriptor

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

func (*ASPathSegment) GetAsSequence

func (m *ASPathSegment) GetAsSequence() bool

func (*ASPathSegment) GetAsns

func (m *ASPathSegment) GetAsns() []uint32

func (*ASPathSegment) ProtoMessage

func (*ASPathSegment) ProtoMessage()

func (*ASPathSegment) Reset

func (m *ASPathSegment) Reset()

func (*ASPathSegment) String

func (m *ASPathSegment) String() string

func (*ASPathSegment) XXX_DiscardUnknown

func (m *ASPathSegment) XXX_DiscardUnknown()

func (*ASPathSegment) XXX_Marshal

func (m *ASPathSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ASPathSegment) XXX_Merge

func (m *ASPathSegment) XXX_Merge(src proto.Message)

func (*ASPathSegment) XXX_Size

func (m *ASPathSegment) XXX_Size() int

func (*ASPathSegment) XXX_Unmarshal

func (m *ASPathSegment) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*BGPPath) Descriptor

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

func (*BGPPath) GetAsPath

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

func (*BGPPath) GetBgpIdentifier

func (m *BGPPath) GetBgpIdentifier() uint32

func (*BGPPath) GetClusterList

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

func (*BGPPath) GetCommunities

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

func (*BGPPath) GetEbgp

func (m *BGPPath) GetEbgp() bool

func (*BGPPath) GetLargeCommunities

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

func (*BGPPath) GetLocalPref

func (m *BGPPath) GetLocalPref() uint32

func (*BGPPath) GetMed

func (m *BGPPath) GetMed() uint32

func (*BGPPath) GetNextHop

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

func (*BGPPath) GetOrigin

func (m *BGPPath) GetOrigin() uint32

func (*BGPPath) GetOriginatorId

func (m *BGPPath) GetOriginatorId() uint32

func (*BGPPath) GetPathIdentifier

func (m *BGPPath) GetPathIdentifier() uint32

func (*BGPPath) GetSource

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

func (*BGPPath) GetUnknownAttributes

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

func (*BGPPath) ProtoMessage

func (*BGPPath) ProtoMessage()

func (*BGPPath) Reset

func (m *BGPPath) Reset()

func (*BGPPath) String

func (m *BGPPath) String() string

func (*BGPPath) XXX_DiscardUnknown

func (m *BGPPath) XXX_DiscardUnknown()

func (*BGPPath) XXX_Marshal

func (m *BGPPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BGPPath) XXX_Merge

func (m *BGPPath) XXX_Merge(src proto.Message)

func (*BGPPath) XXX_Size

func (m *BGPPath) XXX_Size() int

func (*BGPPath) XXX_Unmarshal

func (m *BGPPath) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LargeCommunity) Descriptor

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

func (*LargeCommunity) GetDataPart1

func (m *LargeCommunity) GetDataPart1() uint32

func (*LargeCommunity) GetDataPart2

func (m *LargeCommunity) GetDataPart2() uint32

func (*LargeCommunity) GetGlobalAdministrator

func (m *LargeCommunity) GetGlobalAdministrator() uint32

func (*LargeCommunity) ProtoMessage

func (*LargeCommunity) ProtoMessage()

func (*LargeCommunity) Reset

func (m *LargeCommunity) Reset()

func (*LargeCommunity) String

func (m *LargeCommunity) String() string

func (*LargeCommunity) XXX_DiscardUnknown

func (m *LargeCommunity) XXX_DiscardUnknown()

func (*LargeCommunity) XXX_Marshal

func (m *LargeCommunity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LargeCommunity) XXX_Merge

func (m *LargeCommunity) XXX_Merge(src proto.Message)

func (*LargeCommunity) XXX_Size

func (m *LargeCommunity) XXX_Size() int

func (*LargeCommunity) XXX_Unmarshal

func (m *LargeCommunity) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Path) Descriptor

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

func (*Path) GetBgpPath

func (m *Path) GetBgpPath() *BGPPath

func (*Path) GetStaticPath

func (m *Path) GetStaticPath() *StaticPath

func (*Path) GetType

func (m *Path) GetType() Path_Type

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) Reset

func (m *Path) Reset()

func (*Path) String

func (m *Path) String() string

func (*Path) XXX_DiscardUnknown

func (m *Path) XXX_DiscardUnknown()

func (*Path) XXX_Marshal

func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Path) XXX_Merge

func (m *Path) XXX_Merge(src proto.Message)

func (*Path) XXX_Size

func (m *Path) XXX_Size() int

func (*Path) XXX_Unmarshal

func (m *Path) XXX_Unmarshal(b []byte) error

type Path_Type

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

func (Path_Type) EnumDescriptor

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

func (Path_Type) String

func (x Path_Type) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Route) Descriptor

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

func (*Route) GetPaths

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

func (*Route) GetPfx

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

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) XXX_DiscardUnknown

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal

func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Route) XXX_Merge

func (m *Route) XXX_Merge(src proto.Message)

func (*Route) XXX_Size

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal

func (m *Route) XXX_Unmarshal(b []byte) error

type StaticPath

type StaticPath struct {
	NextHop              *api.IP  `protobuf:"bytes,1,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StaticPath) Descriptor

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

func (*StaticPath) GetNextHop

func (m *StaticPath) GetNextHop() *api.IP

func (*StaticPath) ProtoMessage

func (*StaticPath) ProtoMessage()

func (*StaticPath) Reset

func (m *StaticPath) Reset()

func (*StaticPath) String

func (m *StaticPath) String() string

func (*StaticPath) XXX_DiscardUnknown

func (m *StaticPath) XXX_DiscardUnknown()

func (*StaticPath) XXX_Marshal

func (m *StaticPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StaticPath) XXX_Merge

func (m *StaticPath) XXX_Merge(src proto.Message)

func (*StaticPath) XXX_Size

func (m *StaticPath) XXX_Size() int

func (*StaticPath) XXX_Unmarshal

func (m *StaticPath) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnknownPathAttribute) Descriptor

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

func (*UnknownPathAttribute) GetOptional

func (m *UnknownPathAttribute) GetOptional() bool

func (*UnknownPathAttribute) GetPartial

func (m *UnknownPathAttribute) GetPartial() bool

func (*UnknownPathAttribute) GetTransitive

func (m *UnknownPathAttribute) GetTransitive() bool

func (*UnknownPathAttribute) GetTypeCode

func (m *UnknownPathAttribute) GetTypeCode() uint32

func (*UnknownPathAttribute) GetValue

func (m *UnknownPathAttribute) GetValue() []byte

func (*UnknownPathAttribute) ProtoMessage

func (*UnknownPathAttribute) ProtoMessage()

func (*UnknownPathAttribute) Reset

func (m *UnknownPathAttribute) Reset()

func (*UnknownPathAttribute) String

func (m *UnknownPathAttribute) String() string

func (*UnknownPathAttribute) XXX_DiscardUnknown

func (m *UnknownPathAttribute) XXX_DiscardUnknown()

func (*UnknownPathAttribute) XXX_Marshal

func (m *UnknownPathAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnknownPathAttribute) XXX_Merge

func (m *UnknownPathAttribute) XXX_Merge(src proto.Message)

func (*UnknownPathAttribute) XXX_Size

func (m *UnknownPathAttribute) XXX_Size() int

func (*UnknownPathAttribute) XXX_Unmarshal

func (m *UnknownPathAttribute) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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