mpls

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MPLS_ClearLSP_FullMethodName         = "/gnoi.mpls.MPLS/ClearLSP"
	MPLS_ClearLSPCounters_FullMethodName = "/gnoi.mpls.MPLS/ClearLSPCounters"
	MPLS_MPLSPing_FullMethodName         = "/gnoi.mpls.MPLS/MPLSPing"
)

Variables

View Source
var (
	ClearLSPRequest_Mode_name = map[int32]string{
		0: "DEFAULT",

		1: "AGGRESSIVE",
		2: "RESET",
		3: "AUTOBW_AGGRESSIVE",
		4: "AUTOBW_NONAGGRESSIVE",
	}
	ClearLSPRequest_Mode_value = map[string]int32{
		"DEFAULT":              0,
		"NONAGGRESSIVE":        0,
		"AGGRESSIVE":           1,
		"RESET":                2,
		"AUTOBW_AGGRESSIVE":    3,
		"AUTOBW_NONAGGRESSIVE": 4,
	}
)

Enum value maps for ClearLSPRequest_Mode.

View Source
var (
	MPLSPingRequest_ReplyMode_name = map[int32]string{
		0: "IPV4",
		1: "ROUTER_ALERT",
	}
	MPLSPingRequest_ReplyMode_value = map[string]int32{
		"IPV4":         0,
		"ROUTER_ALERT": 1,
	}
)

Enum value maps for MPLSPingRequest_ReplyMode.

View Source
var (
	MPLSPingResponse_EchoResponseCode_name = map[int32]string{
		0: "SUCCESS",
		1: "NOT_SENT",
		2: "TIMEOUT",
	}
	MPLSPingResponse_EchoResponseCode_value = map[string]int32{
		"SUCCESS":  0,
		"NOT_SENT": 1,
		"TIMEOUT":  2,
	}
)

Enum value maps for MPLSPingResponse_EchoResponseCode.

View Source
var File_github_com_openconfig_gnoi_mpls_mpls_proto protoreflect.FileDescriptor
View Source
var MPLS_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gnoi.mpls.MPLS",
	HandlerType: (*MPLSServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ClearLSP",
			Handler:    _MPLS_ClearLSP_Handler,
		},
		{
			MethodName: "ClearLSPCounters",
			Handler:    _MPLS_ClearLSPCounters_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "MPLSPing",
			Handler:       _MPLS_MPLSPing_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "github.com/openconfig/gnoi/mpls/mpls.proto",
}

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

Functions

func RegisterMPLSServer

func RegisterMPLSServer(s grpc.ServiceRegistrar, srv MPLSServer)

Types

type ClearLSPCountersRequest

type ClearLSPCountersRequest struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearLSPCountersRequest) Descriptor deprecated

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

Deprecated: Use ClearLSPCountersRequest.ProtoReflect.Descriptor instead.

func (*ClearLSPCountersRequest) GetName

func (x *ClearLSPCountersRequest) GetName() string

func (*ClearLSPCountersRequest) ProtoMessage

func (*ClearLSPCountersRequest) ProtoMessage()

func (*ClearLSPCountersRequest) ProtoReflect

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

func (*ClearLSPCountersRequest) Reset

func (x *ClearLSPCountersRequest) Reset()

func (*ClearLSPCountersRequest) String

func (x *ClearLSPCountersRequest) String() string

type ClearLSPCountersResponse

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

func (*ClearLSPCountersResponse) Descriptor deprecated

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

Deprecated: Use ClearLSPCountersResponse.ProtoReflect.Descriptor instead.

func (*ClearLSPCountersResponse) ProtoMessage

func (*ClearLSPCountersResponse) ProtoMessage()

func (*ClearLSPCountersResponse) ProtoReflect

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

func (*ClearLSPCountersResponse) Reset

func (x *ClearLSPCountersResponse) Reset()

func (*ClearLSPCountersResponse) String

func (x *ClearLSPCountersResponse) String() string

type ClearLSPRequest

type ClearLSPRequest struct {
	Name string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearLSPRequest) Descriptor deprecated

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

Deprecated: Use ClearLSPRequest.ProtoReflect.Descriptor instead.

func (*ClearLSPRequest) GetMode

func (*ClearLSPRequest) GetName

func (x *ClearLSPRequest) GetName() string

func (*ClearLSPRequest) ProtoMessage

func (*ClearLSPRequest) ProtoMessage()

func (*ClearLSPRequest) ProtoReflect

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

func (*ClearLSPRequest) Reset

func (x *ClearLSPRequest) Reset()

func (*ClearLSPRequest) String

func (x *ClearLSPRequest) String() string

type ClearLSPRequest_Mode

type ClearLSPRequest_Mode int32
const (
	ClearLSPRequest_DEFAULT              ClearLSPRequest_Mode = 0
	ClearLSPRequest_NONAGGRESSIVE        ClearLSPRequest_Mode = 0
	ClearLSPRequest_AGGRESSIVE           ClearLSPRequest_Mode = 1
	ClearLSPRequest_RESET                ClearLSPRequest_Mode = 2
	ClearLSPRequest_AUTOBW_AGGRESSIVE    ClearLSPRequest_Mode = 3
	ClearLSPRequest_AUTOBW_NONAGGRESSIVE ClearLSPRequest_Mode = 4
)

func (ClearLSPRequest_Mode) Descriptor

func (ClearLSPRequest_Mode) Enum

func (ClearLSPRequest_Mode) EnumDescriptor deprecated

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

Deprecated: Use ClearLSPRequest_Mode.Descriptor instead.

func (ClearLSPRequest_Mode) Number

func (ClearLSPRequest_Mode) String

func (x ClearLSPRequest_Mode) String() string

func (ClearLSPRequest_Mode) Type

type ClearLSPResponse

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

func (*ClearLSPResponse) Descriptor deprecated

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

Deprecated: Use ClearLSPResponse.ProtoReflect.Descriptor instead.

func (*ClearLSPResponse) ProtoMessage

func (*ClearLSPResponse) ProtoMessage()

func (*ClearLSPResponse) ProtoReflect

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

func (*ClearLSPResponse) Reset

func (x *ClearLSPResponse) Reset()

func (*ClearLSPResponse) String

func (x *ClearLSPResponse) String() string

type MPLSClient

type MPLSClient interface {
	ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error)
	ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error)
	MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[MPLSPingResponse], error)
}

MPLSClient is the client API for MPLS 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.

func NewMPLSClient

func NewMPLSClient(cc grpc.ClientConnInterface) MPLSClient

type MPLSPingPWEDestination

type MPLSPingPWEDestination struct {
	Eler string `protobuf:"bytes,1,opt,name=eler,proto3" json:"eler,omitempty"`
	Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"`
	// contains filtered or unexported fields
}

func (*MPLSPingPWEDestination) Descriptor deprecated

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

Deprecated: Use MPLSPingPWEDestination.ProtoReflect.Descriptor instead.

func (*MPLSPingPWEDestination) GetEler

func (x *MPLSPingPWEDestination) GetEler() string

func (*MPLSPingPWEDestination) GetVcid

func (x *MPLSPingPWEDestination) GetVcid() uint32

func (*MPLSPingPWEDestination) ProtoMessage

func (*MPLSPingPWEDestination) ProtoMessage()

func (*MPLSPingPWEDestination) ProtoReflect

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

func (*MPLSPingPWEDestination) Reset

func (x *MPLSPingPWEDestination) Reset()

func (*MPLSPingPWEDestination) String

func (x *MPLSPingPWEDestination) String() string

type MPLSPingRSVPTEDestination

type MPLSPingRSVPTEDestination struct {
	Src              string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	Dst              string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"`
	ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MPLSPingRSVPTEDestination) Descriptor deprecated

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

Deprecated: Use MPLSPingRSVPTEDestination.ProtoReflect.Descriptor instead.

func (*MPLSPingRSVPTEDestination) GetDst

func (x *MPLSPingRSVPTEDestination) GetDst() string

func (*MPLSPingRSVPTEDestination) GetExtendedTunnelId

func (x *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32

func (*MPLSPingRSVPTEDestination) GetSrc

func (x *MPLSPingRSVPTEDestination) GetSrc() string

func (*MPLSPingRSVPTEDestination) ProtoMessage

func (*MPLSPingRSVPTEDestination) ProtoMessage()

func (*MPLSPingRSVPTEDestination) ProtoReflect

func (*MPLSPingRSVPTEDestination) Reset

func (x *MPLSPingRSVPTEDestination) Reset()

func (*MPLSPingRSVPTEDestination) String

func (x *MPLSPingRSVPTEDestination) String() string

type MPLSPingRequest

type MPLSPingRequest struct {

	// Types that are valid to be assigned to Destination:
	//
	//	*MPLSPingRequest_LdpFec
	//	*MPLSPingRequest_Fec129Pwe
	//	*MPLSPingRequest_RsvpteLspName
	//	*MPLSPingRequest_RsvpteLsp
	Destination   isMPLSPingRequest_Destination `protobuf_oneof:"destination"`
	ReplyMode     MPLSPingRequest_ReplyMode     `` /* 130-byte string literal not displayed */
	Count         uint32                        `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"`
	Size          uint32                        `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
	SourceAddress string                        `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	MplsTtl       uint32                        `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"`
	TrafficClass  uint32                        `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"`
	// contains filtered or unexported fields
}

func (*MPLSPingRequest) Descriptor deprecated

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

Deprecated: Use MPLSPingRequest.ProtoReflect.Descriptor instead.

func (*MPLSPingRequest) GetCount

func (x *MPLSPingRequest) GetCount() uint32

func (*MPLSPingRequest) GetDestination

func (x *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination

func (*MPLSPingRequest) GetFec129Pwe

func (x *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination

func (*MPLSPingRequest) GetLdpFec

func (x *MPLSPingRequest) GetLdpFec() string

func (*MPLSPingRequest) GetMplsTtl

func (x *MPLSPingRequest) GetMplsTtl() uint32

func (*MPLSPingRequest) GetReplyMode

func (x *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode

func (*MPLSPingRequest) GetRsvpteLsp

func (x *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination

func (*MPLSPingRequest) GetRsvpteLspName

func (x *MPLSPingRequest) GetRsvpteLspName() string

func (*MPLSPingRequest) GetSize

func (x *MPLSPingRequest) GetSize() uint32

func (*MPLSPingRequest) GetSourceAddress

func (x *MPLSPingRequest) GetSourceAddress() string

func (*MPLSPingRequest) GetTrafficClass

func (x *MPLSPingRequest) GetTrafficClass() uint32

func (*MPLSPingRequest) ProtoMessage

func (*MPLSPingRequest) ProtoMessage()

func (*MPLSPingRequest) ProtoReflect

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

func (*MPLSPingRequest) Reset

func (x *MPLSPingRequest) Reset()

func (*MPLSPingRequest) String

func (x *MPLSPingRequest) String() string

type MPLSPingRequest_Fec129Pwe

type MPLSPingRequest_Fec129Pwe struct {
	Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"`
}

type MPLSPingRequest_LdpFec

type MPLSPingRequest_LdpFec struct {
	LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"`
}

type MPLSPingRequest_ReplyMode

type MPLSPingRequest_ReplyMode int32
const (
	MPLSPingRequest_IPV4         MPLSPingRequest_ReplyMode = 0
	MPLSPingRequest_ROUTER_ALERT MPLSPingRequest_ReplyMode = 1
)

func (MPLSPingRequest_ReplyMode) Descriptor

func (MPLSPingRequest_ReplyMode) Enum

func (MPLSPingRequest_ReplyMode) EnumDescriptor deprecated

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

Deprecated: Use MPLSPingRequest_ReplyMode.Descriptor instead.

func (MPLSPingRequest_ReplyMode) Number

func (MPLSPingRequest_ReplyMode) String

func (x MPLSPingRequest_ReplyMode) String() string

func (MPLSPingRequest_ReplyMode) Type

type MPLSPingRequest_RsvpteLsp

type MPLSPingRequest_RsvpteLsp struct {
	RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"`
}

type MPLSPingRequest_RsvpteLspName

type MPLSPingRequest_RsvpteLspName struct {
	RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"`
}

type MPLSPingResponse

type MPLSPingResponse struct {
	Seq          uint32                            `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	Response     MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,proto3,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"`
	ResponseTime uint64                            `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"`
	// contains filtered or unexported fields
}

func (*MPLSPingResponse) Descriptor deprecated

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

Deprecated: Use MPLSPingResponse.ProtoReflect.Descriptor instead.

func (*MPLSPingResponse) GetResponse

func (*MPLSPingResponse) GetResponseTime

func (x *MPLSPingResponse) GetResponseTime() uint64

func (*MPLSPingResponse) GetSeq

func (x *MPLSPingResponse) GetSeq() uint32

func (*MPLSPingResponse) ProtoMessage

func (*MPLSPingResponse) ProtoMessage()

func (*MPLSPingResponse) ProtoReflect

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

func (*MPLSPingResponse) Reset

func (x *MPLSPingResponse) Reset()

func (*MPLSPingResponse) String

func (x *MPLSPingResponse) String() string

type MPLSPingResponse_EchoResponseCode

type MPLSPingResponse_EchoResponseCode int32
const (
	MPLSPingResponse_SUCCESS  MPLSPingResponse_EchoResponseCode = 0
	MPLSPingResponse_NOT_SENT MPLSPingResponse_EchoResponseCode = 1
	MPLSPingResponse_TIMEOUT  MPLSPingResponse_EchoResponseCode = 2
)

func (MPLSPingResponse_EchoResponseCode) Descriptor

func (MPLSPingResponse_EchoResponseCode) Enum

func (MPLSPingResponse_EchoResponseCode) EnumDescriptor deprecated

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

Deprecated: Use MPLSPingResponse_EchoResponseCode.Descriptor instead.

func (MPLSPingResponse_EchoResponseCode) Number

func (MPLSPingResponse_EchoResponseCode) String

func (MPLSPingResponse_EchoResponseCode) Type

type MPLSServer

MPLSServer is the server API for MPLS service. All implementations should embed UnimplementedMPLSServer for forward compatibility.

type MPLS_MPLSPingClient

type MPLS_MPLSPingClient = grpc.ServerStreamingClient[MPLSPingResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MPLS_MPLSPingServer

type MPLS_MPLSPingServer = grpc.ServerStreamingServer[MPLSPingResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type UnimplementedMPLSServer

type UnimplementedMPLSServer struct{}

UnimplementedMPLSServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMPLSServer) ClearLSP

type UnsafeMPLSServer

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

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

Jump to

Keyboard shortcuts

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