api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Adjacency_State_name = map[int32]string{
		0: "Down",
		1: "Init",
		2: "Up",
	}
	Adjacency_State_value = map[string]int32{
		"Down": 0,
		"Init": 1,
		"Up":   2,
	}
)

Enum value maps for Adjacency_State.

View Source
var (
	LSPDU_Protocol_name = map[int32]string{
		0: "IPv4",
		1: "IPv6",
	}
	LSPDU_Protocol_value = map[string]int32{
		"IPv4": 0,
		"IPv6": 1,
	}
)

Enum value maps for LSPDU_Protocol.

View Source
var File_protocols_isis_api_isis_proto protoreflect.FileDescriptor
View Source
var IsisService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bio.isis.IsisService",
	HandlerType: (*IsisServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAdjacencies",
			Handler:    _IsisService_ListAdjacencies_Handler,
		},
		{
			MethodName: "GetLSDB",
			Handler:    _IsisService_GetLSDB_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protocols/isis/api/isis.proto",
}

IsisService_ServiceDesc is the grpc.ServiceDesc for IsisService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIsisServiceServer

func RegisterIsisServiceServer(s grpc.ServiceRegistrar, srv IsisServiceServer)

Types

type Adjacency

type Adjacency struct {
	Name               string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SystemId           []byte          `protobuf:"bytes,2,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	Address            []byte          `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	InterfaceName      string          `protobuf:"bytes,4,opt,name=interfaceName,proto3" json:"interfaceName,omitempty"`
	Level              uint32          `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"`
	Priority           uint32          `protobuf:"varint,6,opt,name=priority,proto3" json:"priority,omitempty"`
	IpAddresses        []*api.IP       `protobuf:"bytes,7,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"`
	LastTransitionUnix int64           `protobuf:"varint,8,opt,name=last_transition_unix,json=lastTransitionUnix,proto3" json:"last_transition_unix,omitempty"`
	ExpiresInSeconds   uint32          `protobuf:"varint,9,opt,name=expires_in_seconds,json=expiresInSeconds,proto3" json:"expires_in_seconds,omitempty"`
	Status             Adjacency_State `protobuf:"varint,10,opt,name=status,proto3,enum=bio.isis.Adjacency_State" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Adjacency) Descriptor deprecated

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

Deprecated: Use Adjacency.ProtoReflect.Descriptor instead.

func (*Adjacency) GetAddress

func (x *Adjacency) GetAddress() []byte

func (*Adjacency) GetExpiresInSeconds

func (x *Adjacency) GetExpiresInSeconds() uint32

func (*Adjacency) GetInterfaceName

func (x *Adjacency) GetInterfaceName() string

func (*Adjacency) GetIpAddresses

func (x *Adjacency) GetIpAddresses() []*api.IP

func (*Adjacency) GetLastTransitionUnix

func (x *Adjacency) GetLastTransitionUnix() int64

func (*Adjacency) GetLevel

func (x *Adjacency) GetLevel() uint32

func (*Adjacency) GetName

func (x *Adjacency) GetName() string

func (*Adjacency) GetPriority

func (x *Adjacency) GetPriority() uint32

func (*Adjacency) GetStatus

func (x *Adjacency) GetStatus() Adjacency_State

func (*Adjacency) GetSystemId

func (x *Adjacency) GetSystemId() []byte

func (*Adjacency) ProtoMessage

func (*Adjacency) ProtoMessage()

func (*Adjacency) ProtoReflect

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

func (*Adjacency) Reset

func (x *Adjacency) Reset()

func (*Adjacency) String

func (x *Adjacency) String() string

type Adjacency_State

type Adjacency_State int32
const (
	Adjacency_Down Adjacency_State = 0
	Adjacency_Init Adjacency_State = 1
	Adjacency_Up   Adjacency_State = 2
)

func (Adjacency_State) Descriptor

func (Adjacency_State) Enum

func (x Adjacency_State) Enum() *Adjacency_State

func (Adjacency_State) EnumDescriptor deprecated

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

Deprecated: Use Adjacency_State.Descriptor instead.

func (Adjacency_State) Number

func (Adjacency_State) String

func (x Adjacency_State) String() string

func (Adjacency_State) Type

type ExtendedIPReachability

type ExtendedIPReachability struct {
	Metric       uint32 `protobuf:"varint,1,opt,name=metric,proto3" json:"metric,omitempty"`
	PrefixLength uint32 `protobuf:"varint,2,opt,name=prefix_length,json=prefixLength,proto3" json:"prefix_length,omitempty"`
	IpAddress    uint32 `protobuf:"varint,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` // To be extended with sub-TLVs
	// contains filtered or unexported fields
}

func (*ExtendedIPReachability) Descriptor deprecated

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

Deprecated: Use ExtendedIPReachability.ProtoReflect.Descriptor instead.

func (*ExtendedIPReachability) GetIpAddress

func (x *ExtendedIPReachability) GetIpAddress() uint32

func (*ExtendedIPReachability) GetMetric

func (x *ExtendedIPReachability) GetMetric() uint32

func (*ExtendedIPReachability) GetPrefixLength

func (x *ExtendedIPReachability) GetPrefixLength() uint32

func (*ExtendedIPReachability) ProtoMessage

func (*ExtendedIPReachability) ProtoMessage()

func (*ExtendedIPReachability) ProtoReflect

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

func (*ExtendedIPReachability) Reset

func (x *ExtendedIPReachability) Reset()

func (*ExtendedIPReachability) String

func (x *ExtendedIPReachability) String() string

type ExtendedISReachability

type ExtendedISReachability struct {
	DefaultMetric uint32 `protobuf:"varint,1,opt,name=default_metric,json=defaultMetric,proto3" json:"default_metric,omitempty"`
	NeighborId    []byte `protobuf:"bytes,2,opt,name=neighbor_id,json=neighborId,proto3" json:"neighbor_id,omitempty"` // To be extended with sub-TLVs
	// contains filtered or unexported fields
}

func (*ExtendedISReachability) Descriptor deprecated

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

Deprecated: Use ExtendedISReachability.ProtoReflect.Descriptor instead.

func (*ExtendedISReachability) GetDefaultMetric

func (x *ExtendedISReachability) GetDefaultMetric() uint32

func (*ExtendedISReachability) GetNeighborId

func (x *ExtendedISReachability) GetNeighborId() []byte

func (*ExtendedISReachability) ProtoMessage

func (*ExtendedISReachability) ProtoMessage()

func (*ExtendedISReachability) ProtoReflect

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

func (*ExtendedISReachability) Reset

func (x *ExtendedISReachability) Reset()

func (*ExtendedISReachability) String

func (x *ExtendedISReachability) String() string

type GetLSDBRequest

type GetLSDBRequest struct {
	Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLSDBRequest) Descriptor deprecated

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

Deprecated: Use GetLSDBRequest.ProtoReflect.Descriptor instead.

func (*GetLSDBRequest) GetLevel

func (x *GetLSDBRequest) GetLevel() uint32

func (*GetLSDBRequest) ProtoMessage

func (*GetLSDBRequest) ProtoMessage()

func (*GetLSDBRequest) ProtoReflect

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

func (*GetLSDBRequest) Reset

func (x *GetLSDBRequest) Reset()

func (*GetLSDBRequest) String

func (x *GetLSDBRequest) String() string

type GetLSDBResponse

type GetLSDBResponse struct {
	LsdbEntries []*LSDBEntry `protobuf:"bytes,1,rep,name=lsdb_entries,json=lsdbEntries,proto3" json:"lsdb_entries,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLSDBResponse) Descriptor deprecated

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

Deprecated: Use GetLSDBResponse.ProtoReflect.Descriptor instead.

func (*GetLSDBResponse) GetLsdbEntries

func (x *GetLSDBResponse) GetLsdbEntries() []*LSDBEntry

func (*GetLSDBResponse) ProtoMessage

func (*GetLSDBResponse) ProtoMessage()

func (*GetLSDBResponse) ProtoReflect

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

func (*GetLSDBResponse) Reset

func (x *GetLSDBResponse) Reset()

func (*GetLSDBResponse) String

func (x *GetLSDBResponse) String() string

type IPv4NLRI

type IPv4NLRI struct {
	IpAddress  uint32 `protobuf:"varint,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Subnetmask uint32 `protobuf:"varint,2,opt,name=subnetmask,proto3" json:"subnetmask,omitempty"`
	// contains filtered or unexported fields
}

func (*IPv4NLRI) Descriptor deprecated

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

Deprecated: Use IPv4NLRI.ProtoReflect.Descriptor instead.

func (*IPv4NLRI) GetIpAddress

func (x *IPv4NLRI) GetIpAddress() uint32

func (*IPv4NLRI) GetSubnetmask

func (x *IPv4NLRI) GetSubnetmask() uint32

func (*IPv4NLRI) ProtoMessage

func (*IPv4NLRI) ProtoMessage()

func (*IPv4NLRI) ProtoReflect

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

func (*IPv4NLRI) Reset

func (x *IPv4NLRI) Reset()

func (*IPv4NLRI) String

func (x *IPv4NLRI) String() string

type IsisServiceClient

type IsisServiceClient interface {
	ListAdjacencies(ctx context.Context, in *ListAdjacenciesRequest, opts ...grpc.CallOption) (*ListAdjacenciesResponse, error)
	GetLSDB(ctx context.Context, in *GetLSDBRequest, opts ...grpc.CallOption) (*GetLSDBResponse, error)
}

IsisServiceClient is the client API for IsisService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type IsisServiceServer

type IsisServiceServer interface {
	ListAdjacencies(context.Context, *ListAdjacenciesRequest) (*ListAdjacenciesResponse, error)
	GetLSDB(context.Context, *GetLSDBRequest) (*GetLSDBResponse, error)
	// contains filtered or unexported methods
}

IsisServiceServer is the server API for IsisService service. All implementations must embed UnimplementedIsisServiceServer for forward compatibility

type LSDBEntry

type LSDBEntry struct {
	Lsp                   *LSPDU   `protobuf:"bytes,1,opt,name=lsp,proto3" json:"lsp,omitempty"`
	InterfacesWithSsnFlag []string `` /* 128-byte string literal not displayed */
	InterfacesWithSrmFlag []string `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LSDBEntry) Descriptor deprecated

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

Deprecated: Use LSDBEntry.ProtoReflect.Descriptor instead.

func (*LSDBEntry) GetInterfacesWithSrmFlag

func (x *LSDBEntry) GetInterfacesWithSrmFlag() []string

func (*LSDBEntry) GetInterfacesWithSsnFlag

func (x *LSDBEntry) GetInterfacesWithSsnFlag() []string

func (*LSDBEntry) GetLsp

func (x *LSDBEntry) GetLsp() *LSPDU

func (*LSDBEntry) ProtoMessage

func (*LSDBEntry) ProtoMessage()

func (*LSDBEntry) ProtoReflect

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

func (*LSDBEntry) Reset

func (x *LSDBEntry) Reset()

func (*LSDBEntry) String

func (x *LSDBEntry) String() string

type LSPDU

type LSPDU struct {
	LspId             *LSPID `protobuf:"bytes,1,opt,name=lsp_id,json=lspId,proto3" json:"lsp_id,omitempty"`
	Length            uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
	RemainingLifetime uint32 `protobuf:"varint,3,opt,name=remaining_lifetime,json=remainingLifetime,proto3" json:"remaining_lifetime,omitempty"`
	SequenceNumber    uint32 `protobuf:"varint,4,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	Checksum          uint32 `protobuf:"varint,5,opt,name=checksum,proto3" json:"checksum,omitempty"`
	TypeBlock         uint32 `protobuf:"varint,6,opt,name=type_block,json=typeBlock,proto3" json:"type_block,omitempty"`
	// TLV representations:
	AreaIds                  [][]byte                  `protobuf:"bytes,7,rep,name=area_ids,json=areaIds,proto3" json:"area_ids,omitempty"`
	LspBufferSize            uint32                    `protobuf:"varint,8,opt,name=lsp_buffer_size,json=lspBufferSize,proto3" json:"lsp_buffer_size,omitempty"`
	ProtocolsSupported       []LSPDU_Protocol          `` /* 152-byte string literal not displayed */
	IpInterfacesAddresses    []uint32                  `` /* 135-byte string literal not displayed */
	ExtendedIsReachabilities []*ExtendedISReachability `` /* 136-byte string literal not displayed */
	ExtendedIpReachabilities []*ExtendedIPReachability `` /* 136-byte string literal not displayed */
	Ipv4TeRouterId           uint32                    `protobuf:"varint,13,opt,name=ipv4_te_router_id,json=ipv4TeRouterId,proto3" json:"ipv4_te_router_id,omitempty"`
	Hostname                 string                    `protobuf:"bytes,14,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

func (*LSPDU) Descriptor deprecated

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

Deprecated: Use LSPDU.ProtoReflect.Descriptor instead.

func (*LSPDU) GetAreaIds

func (x *LSPDU) GetAreaIds() [][]byte

func (*LSPDU) GetChecksum

func (x *LSPDU) GetChecksum() uint32

func (*LSPDU) GetExtendedIpReachabilities

func (x *LSPDU) GetExtendedIpReachabilities() []*ExtendedIPReachability

func (*LSPDU) GetExtendedIsReachabilities

func (x *LSPDU) GetExtendedIsReachabilities() []*ExtendedISReachability

func (*LSPDU) GetHostname

func (x *LSPDU) GetHostname() string

func (*LSPDU) GetIpInterfacesAddresses

func (x *LSPDU) GetIpInterfacesAddresses() []uint32

func (*LSPDU) GetIpv4TeRouterId

func (x *LSPDU) GetIpv4TeRouterId() uint32

func (*LSPDU) GetLength

func (x *LSPDU) GetLength() uint32

func (*LSPDU) GetLspBufferSize

func (x *LSPDU) GetLspBufferSize() uint32

func (*LSPDU) GetLspId

func (x *LSPDU) GetLspId() *LSPID

func (*LSPDU) GetProtocolsSupported

func (x *LSPDU) GetProtocolsSupported() []LSPDU_Protocol

func (*LSPDU) GetRemainingLifetime

func (x *LSPDU) GetRemainingLifetime() uint32

func (*LSPDU) GetSequenceNumber

func (x *LSPDU) GetSequenceNumber() uint32

func (*LSPDU) GetTypeBlock

func (x *LSPDU) GetTypeBlock() uint32

func (*LSPDU) ProtoMessage

func (*LSPDU) ProtoMessage()

func (*LSPDU) ProtoReflect

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

func (*LSPDU) Reset

func (x *LSPDU) Reset()

func (*LSPDU) String

func (x *LSPDU) String() string

type LSPDU_Protocol

type LSPDU_Protocol int32
const (
	LSPDU_IPv4 LSPDU_Protocol = 0
	LSPDU_IPv6 LSPDU_Protocol = 1
)

func (LSPDU_Protocol) Descriptor

func (LSPDU_Protocol) Enum

func (x LSPDU_Protocol) Enum() *LSPDU_Protocol

func (LSPDU_Protocol) EnumDescriptor deprecated

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

Deprecated: Use LSPDU_Protocol.Descriptor instead.

func (LSPDU_Protocol) Number

func (LSPDU_Protocol) String

func (x LSPDU_Protocol) String() string

func (LSPDU_Protocol) Type

type LSPID

type LSPID struct {
	SystemId     []byte `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	PseudonodeId uint32 `protobuf:"varint,2,opt,name=pseudonode_id,json=pseudonodeId,proto3" json:"pseudonode_id,omitempty"`
	LspNumber    uint32 `protobuf:"varint,3,opt,name=lsp_number,json=lspNumber,proto3" json:"lsp_number,omitempty"`
	// contains filtered or unexported fields
}

func (*LSPID) Descriptor deprecated

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

Deprecated: Use LSPID.ProtoReflect.Descriptor instead.

func (*LSPID) GetLspNumber

func (x *LSPID) GetLspNumber() uint32

func (*LSPID) GetPseudonodeId

func (x *LSPID) GetPseudonodeId() uint32

func (*LSPID) GetSystemId

func (x *LSPID) GetSystemId() []byte

func (*LSPID) ProtoMessage

func (*LSPID) ProtoMessage()

func (*LSPID) ProtoReflect

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

func (*LSPID) Reset

func (x *LSPID) Reset()

func (*LSPID) String

func (x *LSPID) String() string

type ListAdjacenciesRequest

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

func (*ListAdjacenciesRequest) Descriptor deprecated

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

Deprecated: Use ListAdjacenciesRequest.ProtoReflect.Descriptor instead.

func (*ListAdjacenciesRequest) ProtoMessage

func (*ListAdjacenciesRequest) ProtoMessage()

func (*ListAdjacenciesRequest) ProtoReflect

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

func (*ListAdjacenciesRequest) Reset

func (x *ListAdjacenciesRequest) Reset()

func (*ListAdjacenciesRequest) String

func (x *ListAdjacenciesRequest) String() string

type ListAdjacenciesResponse

type ListAdjacenciesResponse struct {
	Adjacencies []*Adjacency `protobuf:"bytes,1,rep,name=adjacencies,proto3" json:"adjacencies,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAdjacenciesResponse) Descriptor deprecated

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

Deprecated: Use ListAdjacenciesResponse.ProtoReflect.Descriptor instead.

func (*ListAdjacenciesResponse) GetAdjacencies

func (x *ListAdjacenciesResponse) GetAdjacencies() []*Adjacency

func (*ListAdjacenciesResponse) ProtoMessage

func (*ListAdjacenciesResponse) ProtoMessage()

func (*ListAdjacenciesResponse) ProtoReflect

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

func (*ListAdjacenciesResponse) Reset

func (x *ListAdjacenciesResponse) Reset()

func (*ListAdjacenciesResponse) String

func (x *ListAdjacenciesResponse) String() string

type UnimplementedIsisServiceServer

type UnimplementedIsisServiceServer struct {
}

UnimplementedIsisServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedIsisServiceServer) GetLSDB

func (UnimplementedIsisServiceServer) ListAdjacencies

type UnsafeIsisServiceServer

type UnsafeIsisServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIsisServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IsisServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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