_go

package
v0.0.0-...-bb755a5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 17

Documentation

Overview

Package _go is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	NetInterfaceService_GetNetInterface_FullMethodName    = "/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/GetNetInterface"
	NetInterfaceService_ListNetInterfaces_FullMethodName  = "/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/ListNetInterfaces"
	NetInterfaceService_UpdateNetInterface_FullMethodName = "/opi_api.network.opinetcommon.v1alpha1.NetInterfaceService/UpdateNetInterface"
)

Variables

View Source
var (
	SecurityRuleAction_name = map[int32]string{
		0: "SECURITY_RULE_ACTION_NONE",
		1: "SECURITY_RULE_ACTION_ALLOW",
		2: "SECURITY_RULE_ACTION_DENY",
	}
	SecurityRuleAction_value = map[string]int32{
		"SECURITY_RULE_ACTION_NONE":  0,
		"SECURITY_RULE_ACTION_ALLOW": 1,
		"SECURITY_RULE_ACTION_DENY":  2,
	}
)

Enum value maps for SecurityRuleAction.

View Source
var (
	IpAf_name = map[int32]string{
		0: "IP_AF_UNSPECIFIED",
		1: "IP_AF_INET",
		2: "IP_AF_INET6",
	}
	IpAf_value = map[string]int32{
		"IP_AF_UNSPECIFIED": 0,
		"IP_AF_INET":        1,
		"IP_AF_INET6":       2,
	}
)

Enum value maps for IpAf.

View Source
var (
	EncapType_name = map[int32]string{
		0: "ENCAP_TYPE_UNSPECIFIED",
		1: "ENCAP_TYPE_DOT1Q",
		2: "ENCAP_TYPE_MPLS_OVER_UDP",
		3: "ENCAP_TYPE_VXLAN",
		4: "ENCAP_TYPE_NVGRE",
	}
	EncapType_value = map[string]int32{
		"ENCAP_TYPE_UNSPECIFIED":   0,
		"ENCAP_TYPE_DOT1Q":         1,
		"ENCAP_TYPE_MPLS_OVER_UDP": 2,
		"ENCAP_TYPE_VXLAN":         3,
		"ENCAP_TYPE_NVGRE":         4,
	}
)

Enum value maps for EncapType.

View Source
var (
	RouteType_name = map[int32]string{
		0: "ROUTE_TYPE_UNSPECIFIED",
		1: "ROUTE_TYPE_OTHER",
		2: "ROUTE_TYPE_REJECT",
		3: "ROUTE_TYPE_LOCAL",
		4: "ROUTE_TYPE_REMOTE",
	}
	RouteType_value = map[string]int32{
		"ROUTE_TYPE_UNSPECIFIED": 0,
		"ROUTE_TYPE_OTHER":       1,
		"ROUTE_TYPE_REJECT":      2,
		"ROUTE_TYPE_LOCAL":       3,
		"ROUTE_TYPE_REMOTE":      4,
	}
)

Enum value maps for RouteType.

View Source
var (
	RouteProtocol_name = map[int32]string{
		0: "ROUTE_PROTOCOL_UNSPECIFIED",
		1: "ROUTE_PROTOCOL_LOCAL",
		2: "ROUTE_PROTOCOL_STATIC",
		3: "ROUTE_PROTOCOL_BGP",
	}
	RouteProtocol_value = map[string]int32{
		"ROUTE_PROTOCOL_UNSPECIFIED": 0,
		"ROUTE_PROTOCOL_LOCAL":       1,
		"ROUTE_PROTOCOL_STATIC":      2,
		"ROUTE_PROTOCOL_BGP":         3,
	}
)

Enum value maps for RouteProtocol.

View Source
var (
	AdminState_name = map[int32]string{
		0: "ADMIN_STATE_UNSPECIFIED",
		1: "ADMIN_STATE_ENABLE",
		2: "ADMIN_STATE_DISABLE",
		3: "ADMIN_STATE_TESTING",
	}
	AdminState_value = map[string]int32{
		"ADMIN_STATE_UNSPECIFIED": 0,
		"ADMIN_STATE_ENABLE":      1,
		"ADMIN_STATE_DISABLE":     2,
		"ADMIN_STATE_TESTING":     3,
	}
)

Enum value maps for AdminState.

View Source
var (
	PolicyDir_name = map[int32]string{
		0: "POLICY_DIR_UNSPECIFIED",
		1: "POLICY_DIR_INGRESS",
		2: "POLICY_DIR_EGRESS",
	}
	PolicyDir_value = map[string]int32{
		"POLICY_DIR_UNSPECIFIED": 0,
		"POLICY_DIR_INGRESS":     1,
		"POLICY_DIR_EGRESS":      2,
	}
)

Enum value maps for PolicyDir.

View Source
var (
	WildcardMatch_name = map[int32]string{
		0:   "WILDCARD_MATCH_NONE",
		256: "WILDCARD_MATCH_ANY",
	}
	WildcardMatch_value = map[string]int32{
		"WILDCARD_MATCH_NONE": 0,
		"WILDCARD_MATCH_ANY":  256,
	}
)

Enum value maps for WildcardMatch.

View Source
var (
	InterfaceType_name = map[int32]string{
		0: "INTERFACE_TYPE_UNSPECIFIED",
		1: "INTERFACE_TYPE_ETHERNET",
		2: "INTERFACE_TYPE_LOOPBACK",
	}
	InterfaceType_value = map[string]int32{
		"INTERFACE_TYPE_UNSPECIFIED": 0,
		"INTERFACE_TYPE_ETHERNET":    1,
		"INTERFACE_TYPE_LOOPBACK":    2,
	}
)

Enum value maps for InterfaceType.

View Source
var (
	OperState_name = map[int32]string{
		0: "OPER_STATE_UNSPECIFIED",
		2: "OPER_STATE_UP",
		3: "OPER_STATE_DOWN",
		4: "OPER_STATE_TESTING",
		5: "OPER_STATE_UNKNOWN",
		6: "OPER_STATE_DORMANT",
		7: "OPER_STATE_NOT_PRESENT",
		8: "OPER_STATE_LOWER_LAYER_DOWN",
	}
	OperState_value = map[string]int32{
		"OPER_STATE_UNSPECIFIED":      0,
		"OPER_STATE_UP":               2,
		"OPER_STATE_DOWN":             3,
		"OPER_STATE_TESTING":          4,
		"OPER_STATE_UNKNOWN":          5,
		"OPER_STATE_DORMANT":          6,
		"OPER_STATE_NOT_PRESENT":      7,
		"OPER_STATE_LOWER_LAYER_DOWN": 8,
	}
)

Enum value maps for OperState.

View Source
var File_networktypes_proto protoreflect.FileDescriptor
View Source
var File_openconfig_interfaces_proto protoreflect.FileDescriptor
View Source
var NetInterfaceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "opi_api.network.opinetcommon.v1alpha1.NetInterfaceService",
	HandlerType: (*NetInterfaceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNetInterface",
			Handler:    _NetInterfaceService_GetNetInterface_Handler,
		},
		{
			MethodName: "ListNetInterfaces",
			Handler:    _NetInterfaceService_ListNetInterfaces_Handler,
		},
		{
			MethodName: "UpdateNetInterface",
			Handler:    _NetInterfaceService_UpdateNetInterface_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "openconfig_interfaces.proto",
}

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

Functions

func RegisterNetInterfaceServiceHandler

func RegisterNetInterfaceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNetInterfaceServiceHandler registers the http handlers for service NetInterfaceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNetInterfaceServiceHandlerClient

func RegisterNetInterfaceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetInterfaceServiceClient) error

RegisterNetInterfaceServiceHandlerClient registers the http handlers for service NetInterfaceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NetInterfaceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NetInterfaceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NetInterfaceServiceClient" to call the correct interceptors.

func RegisterNetInterfaceServiceHandlerFromEndpoint

func RegisterNetInterfaceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNetInterfaceServiceHandlerFromEndpoint is same as RegisterNetInterfaceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNetInterfaceServiceHandlerServer

func RegisterNetInterfaceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetInterfaceServiceServer) error

RegisterNetInterfaceServiceHandlerServer registers the http handlers for service NetInterfaceService to "mux". UnaryRPC :call NetInterfaceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNetInterfaceServiceHandlerFromEndpoint instead.

func RegisterNetInterfaceServiceServer

func RegisterNetInterfaceServiceServer(s grpc.ServiceRegistrar, srv NetInterfaceServiceServer)

Types

type AddressRange

type AddressRange struct {

	// Types that are assignable to Range:
	//
	//	*AddressRange_Ipv4Range
	//	*AddressRange_Ipv6Range
	Range isAddressRange_Range `protobuf_oneof:"range"`
	// contains filtered or unexported fields
}

AddressRange represents an IPv4 or IPv6 address range

func (*AddressRange) Descriptor deprecated

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

Deprecated: Use AddressRange.ProtoReflect.Descriptor instead.

func (*AddressRange) GetIpv4Range

func (x *AddressRange) GetIpv4Range() *IPRange

func (*AddressRange) GetIpv6Range

func (x *AddressRange) GetIpv6Range() *IPRange

func (*AddressRange) GetRange

func (m *AddressRange) GetRange() isAddressRange_Range

func (*AddressRange) ProtoMessage

func (*AddressRange) ProtoMessage()

func (*AddressRange) ProtoReflect

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

func (*AddressRange) Reset

func (x *AddressRange) Reset()

func (*AddressRange) String

func (x *AddressRange) String() string

type AddressRange_Ipv4Range

type AddressRange_Ipv4Range struct {
	// IPv4 address range
	Ipv4Range *IPRange `protobuf:"bytes,1,opt,name=ipv4_range,json=ipv4Range,proto3,oneof"`
}

type AddressRange_Ipv6Range

type AddressRange_Ipv6Range struct {
	// IPv6 address range
	Ipv6Range *IPRange `protobuf:"bytes,2,opt,name=ipv6_range,json=ipv6Range,proto3,oneof"`
}

type AdminState

type AdminState int32

admin state of control plane objects

const (
	// unspecified
	AdminState_ADMIN_STATE_UNSPECIFIED AdminState = 0
	// enable
	AdminState_ADMIN_STATE_ENABLE AdminState = 1
	// disable
	AdminState_ADMIN_STATE_DISABLE AdminState = 2
	// testing
	AdminState_ADMIN_STATE_TESTING AdminState = 3
)

func (AdminState) Descriptor

func (AdminState) Descriptor() protoreflect.EnumDescriptor

func (AdminState) Enum

func (x AdminState) Enum() *AdminState

func (AdminState) EnumDescriptor deprecated

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

Deprecated: Use AdminState.Descriptor instead.

func (AdminState) Number

func (x AdminState) Number() protoreflect.EnumNumber

func (AdminState) String

func (x AdminState) String() string

func (AdminState) Type

type Config

type Config struct {

	// Name of the interface.  This is the opaque object
	// used for designating the created interface.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Type of interface - Ethernet and others
	Type InterfaceType `protobuf:"varint,2,opt,name=type,proto3,enum=opi_api.network.opinetcommon.v1alpha1.InterfaceType" json:"type,omitempty"`
	// MTU for the interface that can be configured
	Mtu uint32 `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
	// Setting the loopback mode of the interface
	LoopbackMode bool `protobuf:"varint,4,opt,name=loopback_mode,json=loopbackMode,proto3" json:"loopback_mode,omitempty"`
	// Description of the interface and usage
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Setting for enabling/disabling the interface
	Enabled bool `protobuf:"varint,6,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

Interface config (-- api-linter: core::0123::resource-annotation=disabled

aip.dev/not-precedent: the name field is an opaque object --)

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetDescription

func (x *Config) GetDescription() string

func (*Config) GetEnabled

func (x *Config) GetEnabled() bool

func (*Config) GetLoopbackMode

func (x *Config) GetLoopbackMode() bool

func (*Config) GetMtu

func (x *Config) GetMtu() uint32

func (*Config) GetName

func (x *Config) GetName() string

func (*Config) GetType

func (x *Config) GetType() InterfaceType

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Counters

type Counters struct {

	// Received Octet counter
	RxOctets uint64 `protobuf:"varint,1,opt,name=rx_octets,json=rxOctets,proto3" json:"rx_octets,omitempty"`
	// Received Packet counter
	RxPackets uint64 `protobuf:"varint,2,opt,name=rx_packets,json=rxPackets,proto3" json:"rx_packets,omitempty"`
	// Unicast packets received counter
	RxUnicastPkts uint64 `protobuf:"varint,3,opt,name=rx_unicast_pkts,json=rxUnicastPkts,proto3" json:"rx_unicast_pkts,omitempty"`
	// Broadcast packets received counter
	RxBroadcastPkts uint64 `protobuf:"varint,4,opt,name=rx_broadcast_pkts,json=rxBroadcastPkts,proto3" json:"rx_broadcast_pkts,omitempty"`
	// multicast packets received counter
	RxMulticastPkts uint64 `protobuf:"varint,5,opt,name=rx_multicast_pkts,json=rxMulticastPkts,proto3" json:"rx_multicast_pkts,omitempty"`
	// discarded received packets counter
	RxDiscards uint64 `protobuf:"varint,6,opt,name=rx_discards,json=rxDiscards,proto3" json:"rx_discards,omitempty"`
	// Receive error counter
	RxErrors uint64 `protobuf:"varint,7,opt,name=rx_errors,json=rxErrors,proto3" json:"rx_errors,omitempty"`
	// Unknown received protocol counter
	RxUnknownProtos uint64 `protobuf:"varint,8,opt,name=rx_unknown_protos,json=rxUnknownProtos,proto3" json:"rx_unknown_protos,omitempty"`
	// Received FCS error counter
	RxFcsErrors uint64 `protobuf:"varint,9,opt,name=rx_fcs_errors,json=rxFcsErrors,proto3" json:"rx_fcs_errors,omitempty"`
	// Transmit octet counter
	OutOctets uint64 `protobuf:"varint,10,opt,name=out_octets,json=outOctets,proto3" json:"out_octets,omitempty"`
	// Transmit packet counter
	OutPackets uint64 `protobuf:"varint,11,opt,name=out_packets,json=outPackets,proto3" json:"out_packets,omitempty"`
	// Unicast packet transmit counter
	OutUnicastPkts uint64 `protobuf:"varint,12,opt,name=out_unicast_pkts,json=outUnicastPkts,proto3" json:"out_unicast_pkts,omitempty"`
	// Broadcast packet transmit counter
	OutBroadcastPkts uint64 `protobuf:"varint,13,opt,name=out_broadcast_pkts,json=outBroadcastPkts,proto3" json:"out_broadcast_pkts,omitempty"`
	// Multicast packet transmit counter
	OutMulticastPkts uint64 `protobuf:"varint,14,opt,name=out_multicast_pkts,json=outMulticastPkts,proto3" json:"out_multicast_pkts,omitempty"`
	// Discarded transmit packet counter
	OutDiscards uint64 `protobuf:"varint,15,opt,name=out_discards,json=outDiscards,proto3" json:"out_discards,omitempty"`
	// Transmit error counter
	OutErrors uint64 `protobuf:"varint,16,opt,name=out_errors,json=outErrors,proto3" json:"out_errors,omitempty"`
	// Carrier transition count
	CarrierTransitions uint64 `protobuf:"varint,17,opt,name=carrier_transitions,json=carrierTransitions,proto3" json:"carrier_transitions,omitempty"`
	// Last Clear
	LastClear uint64 `protobuf:"varint,18,opt,name=last_clear,json=lastClear,proto3" json:"last_clear,omitempty"`
	// contains filtered or unexported fields
}

Statistics Counters for the interface - ro

func (*Counters) Descriptor deprecated

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

Deprecated: Use Counters.ProtoReflect.Descriptor instead.

func (*Counters) GetCarrierTransitions

func (x *Counters) GetCarrierTransitions() uint64

func (*Counters) GetLastClear

func (x *Counters) GetLastClear() uint64

func (*Counters) GetOutBroadcastPkts

func (x *Counters) GetOutBroadcastPkts() uint64

func (*Counters) GetOutDiscards

func (x *Counters) GetOutDiscards() uint64

func (*Counters) GetOutErrors

func (x *Counters) GetOutErrors() uint64

func (*Counters) GetOutMulticastPkts

func (x *Counters) GetOutMulticastPkts() uint64

func (*Counters) GetOutOctets

func (x *Counters) GetOutOctets() uint64

func (*Counters) GetOutPackets

func (x *Counters) GetOutPackets() uint64

func (*Counters) GetOutUnicastPkts

func (x *Counters) GetOutUnicastPkts() uint64

func (*Counters) GetRxBroadcastPkts

func (x *Counters) GetRxBroadcastPkts() uint64

func (*Counters) GetRxDiscards

func (x *Counters) GetRxDiscards() uint64

func (*Counters) GetRxErrors

func (x *Counters) GetRxErrors() uint64

func (*Counters) GetRxFcsErrors

func (x *Counters) GetRxFcsErrors() uint64

func (*Counters) GetRxMulticastPkts

func (x *Counters) GetRxMulticastPkts() uint64

func (*Counters) GetRxOctets

func (x *Counters) GetRxOctets() uint64

func (*Counters) GetRxPackets

func (x *Counters) GetRxPackets() uint64

func (*Counters) GetRxUnicastPkts

func (x *Counters) GetRxUnicastPkts() uint64

func (*Counters) GetRxUnknownProtos

func (x *Counters) GetRxUnknownProtos() uint64

func (*Counters) ProtoMessage

func (*Counters) ProtoMessage()

func (*Counters) ProtoReflect

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

func (*Counters) Reset

func (x *Counters) Reset()

func (*Counters) String

func (x *Counters) String() string

type Encap

type Encap struct {

	// encyp type
	Type EncapType `protobuf:"varint,1,opt,name=type,proto3,enum=opi_api.network.opinetcommon.v1alpha1.EncapType" json:"type,omitempty"`
	// encap value
	Value *EncapVal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

fabric encap

func (*Encap) Descriptor deprecated

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

Deprecated: Use Encap.ProtoReflect.Descriptor instead.

func (*Encap) GetType

func (x *Encap) GetType() EncapType

func (*Encap) GetValue

func (x *Encap) GetValue() *EncapVal

func (*Encap) ProtoMessage

func (*Encap) ProtoMessage()

func (*Encap) ProtoReflect

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

func (*Encap) Reset

func (x *Encap) Reset()

func (*Encap) String

func (x *Encap) String() string

type EncapType

type EncapType int32

encap types in the network

const (
	// no encap
	EncapType_ENCAP_TYPE_UNSPECIFIED EncapType = 0
	// 802.1q
	EncapType_ENCAP_TYPE_DOT1Q EncapType = 1
	// MPLS over UDP
	EncapType_ENCAP_TYPE_MPLS_OVER_UDP EncapType = 2
	// VXLAN
	EncapType_ENCAP_TYPE_VXLAN EncapType = 3
	// NVGRE
	EncapType_ENCAP_TYPE_NVGRE EncapType = 4
)

func (EncapType) Descriptor

func (EncapType) Descriptor() protoreflect.EnumDescriptor

func (EncapType) Enum

func (x EncapType) Enum() *EncapType

func (EncapType) EnumDescriptor deprecated

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

Deprecated: Use EncapType.Descriptor instead.

func (EncapType) Number

func (x EncapType) Number() protoreflect.EnumNumber

func (EncapType) String

func (x EncapType) String() string

func (EncapType) Type

type EncapVal

type EncapVal struct {

	// Types that are assignable to Val:
	//
	//	*EncapVal_VlanId
	//	*EncapVal_MplsTag
	//	*EncapVal_Vnid
	//	*EncapVal_Vsid
	Val isEncapVal_Val `protobuf_oneof:"val"`
	// contains filtered or unexported fields
}

tag values for various encap types

func (*EncapVal) Descriptor deprecated

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

Deprecated: Use EncapVal.ProtoReflect.Descriptor instead.

func (*EncapVal) GetMplsTag

func (x *EncapVal) GetMplsTag() int32

func (*EncapVal) GetVal

func (m *EncapVal) GetVal() isEncapVal_Val

func (*EncapVal) GetVlanId

func (x *EncapVal) GetVlanId() int32

func (*EncapVal) GetVnid

func (x *EncapVal) GetVnid() int32

func (*EncapVal) GetVsid

func (x *EncapVal) GetVsid() int32

func (*EncapVal) ProtoMessage

func (*EncapVal) ProtoMessage()

func (*EncapVal) ProtoReflect

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

func (*EncapVal) Reset

func (x *EncapVal) Reset()

func (*EncapVal) String

func (x *EncapVal) String() string

type EncapVal_MplsTag

type EncapVal_MplsTag struct {
	// MPLS tag/slot for MPLS over UDP
	MplsTag int32 `protobuf:"varint,2,opt,name=mpls_tag,json=mplsTag,proto3,oneof"`
}

type EncapVal_VlanId

type EncapVal_VlanId struct {
	// vlan id for DOT1Q
	VlanId int32 `protobuf:"varint,1,opt,name=vlan_id,json=vlanId,proto3,oneof"`
}

type EncapVal_Vnid

type EncapVal_Vnid struct {
	// VXLAN VNID (24bit value)
	Vnid int32 `protobuf:"varint,3,opt,name=vnid,proto3,oneof"`
}

type EncapVal_Vsid

type EncapVal_Vsid struct {
	// NVGRE VSID
	Vsid int32 `protobuf:"varint,5,opt,name=vsid,proto3,oneof"`
}

type GetNetInterfaceRequest

type GetNetInterfaceRequest struct {

	// Name of interface requested
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Get Interface Request

func (*GetNetInterfaceRequest) Descriptor deprecated

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

Deprecated: Use GetNetInterfaceRequest.ProtoReflect.Descriptor instead.

func (*GetNetInterfaceRequest) GetName

func (x *GetNetInterfaceRequest) GetName() string

func (*GetNetInterfaceRequest) ProtoMessage

func (*GetNetInterfaceRequest) ProtoMessage()

func (*GetNetInterfaceRequest) ProtoReflect

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

func (*GetNetInterfaceRequest) Reset

func (x *GetNetInterfaceRequest) Reset()

func (*GetNetInterfaceRequest) String

func (x *GetNetInterfaceRequest) String() string

type HwHandle

type HwHandle struct {

	// hardware handle
	// (-- api-linter: core::0141::forbidden-types=disabled
	//
	//	aip.dev/not-precedent: hw handle must be uint64. --)
	Idx uint64 `protobuf:"varint,1,opt,name=idx,proto3" json:"idx,omitempty"`
	// contains filtered or unexported fields
}

Opaque handle to identify the index in hardware

func (*HwHandle) Descriptor deprecated

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

Deprecated: Use HwHandle.ProtoReflect.Descriptor instead.

func (*HwHandle) GetIdx

func (x *HwHandle) GetIdx() uint64

func (*HwHandle) ProtoMessage

func (*HwHandle) ProtoMessage()

func (*HwHandle) ProtoReflect

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

func (*HwHandle) Reset

func (x *HwHandle) Reset()

func (*HwHandle) String

func (x *HwHandle) String() string

type ICMPMatch

type ICMPMatch struct {

	// ICMP type
	//
	// Types that are assignable to Typematch:
	//
	//	*ICMPMatch_Type
	//	*ICMPMatch_TypeWildcard
	Typematch isICMPMatch_Typematch `protobuf_oneof:"typematch"`
	// ICMP code
	//
	// Types that are assignable to Codematch:
	//
	//	*ICMPMatch_Code
	//	*ICMPMatch_CodeWildcard
	Codematch isICMPMatch_Codematch `protobuf_oneof:"codematch"`
	// contains filtered or unexported fields
}

ICMPv4/ICMPv6 rule match criteria

func (*ICMPMatch) Descriptor deprecated

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

Deprecated: Use ICMPMatch.ProtoReflect.Descriptor instead.

func (*ICMPMatch) GetCode

func (x *ICMPMatch) GetCode() int32

func (*ICMPMatch) GetCodeWildcard

func (x *ICMPMatch) GetCodeWildcard() WildcardMatch

func (*ICMPMatch) GetCodematch

func (m *ICMPMatch) GetCodematch() isICMPMatch_Codematch

func (*ICMPMatch) GetType

func (x *ICMPMatch) GetType() int32

func (*ICMPMatch) GetTypeWildcard

func (x *ICMPMatch) GetTypeWildcard() WildcardMatch

func (*ICMPMatch) GetTypematch

func (m *ICMPMatch) GetTypematch() isICMPMatch_Typematch

func (*ICMPMatch) ProtoMessage

func (*ICMPMatch) ProtoMessage()

func (*ICMPMatch) ProtoReflect

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

func (*ICMPMatch) Reset

func (x *ICMPMatch) Reset()

func (*ICMPMatch) String

func (x *ICMPMatch) String() string

type ICMPMatchList

type ICMPMatchList struct {

	// ICMP type/code list
	IcmpMatchList []*ICMPMatch `protobuf:"bytes,1,rep,name=icmp_match_list,json=icmpMatchList,proto3" json:"icmp_match_list,omitempty"`
	// contains filtered or unexported fields
}

ICMP type/code match condition list

func (*ICMPMatchList) Descriptor deprecated

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

Deprecated: Use ICMPMatchList.ProtoReflect.Descriptor instead.

func (*ICMPMatchList) GetIcmpMatchList

func (x *ICMPMatchList) GetIcmpMatchList() []*ICMPMatch

func (*ICMPMatchList) ProtoMessage

func (*ICMPMatchList) ProtoMessage()

func (*ICMPMatchList) ProtoReflect

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

func (*ICMPMatchList) Reset

func (x *ICMPMatchList) Reset()

func (*ICMPMatchList) String

func (x *ICMPMatchList) String() string

type ICMPMatch_Code

type ICMPMatch_Code struct {
	// match any ICMP code
	Code int32 `protobuf:"varint,3,opt,name=code,proto3,oneof"`
}

type ICMPMatch_CodeWildcard

type ICMPMatch_CodeWildcard struct {
	// match any ICMP code
	CodeWildcard WildcardMatch `` /* 130-byte string literal not displayed */
}

type ICMPMatch_Type

type ICMPMatch_Type struct {
	// match any ICMP type
	Type int32 `protobuf:"varint,1,opt,name=type,proto3,oneof"`
}

type ICMPMatch_TypeWildcard

type ICMPMatch_TypeWildcard struct {
	// match any ICMP type
	TypeWildcard WildcardMatch `` /* 130-byte string literal not displayed */
}

type IPAddress

type IPAddress struct {

	// IP Address family
	Af IpAf `protobuf:"varint,1,opt,name=af,proto3,enum=opi_api.network.opinetcommon.v1alpha1.IpAf" json:"af,omitempty"`
	// IP address family
	//
	// Types that are assignable to V4OrV6:
	//
	//	*IPAddress_V4Addr
	//	*IPAddress_V6Addr
	V4OrV6 isIPAddress_V4OrV6 `protobuf_oneof:"v4_or_v6"`
	// contains filtered or unexported fields
}

IP Address object

func (*IPAddress) Descriptor deprecated

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

Deprecated: Use IPAddress.ProtoReflect.Descriptor instead.

func (*IPAddress) GetAf

func (x *IPAddress) GetAf() IpAf

func (*IPAddress) GetV4Addr

func (x *IPAddress) GetV4Addr() uint32

func (*IPAddress) GetV4OrV6

func (m *IPAddress) GetV4OrV6() isIPAddress_V4OrV6

func (*IPAddress) GetV6Addr

func (x *IPAddress) GetV6Addr() []byte

func (*IPAddress) ProtoMessage

func (*IPAddress) ProtoMessage()

func (*IPAddress) ProtoReflect

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

func (*IPAddress) Reset

func (x *IPAddress) Reset()

func (*IPAddress) String

func (x *IPAddress) String() string

type IPAddress_V4Addr

type IPAddress_V4Addr struct {
	// IPv4 address
	// (-- api-linter: core::0141::forbidden-types=disabled
	//
	//	aip.dev/not-precedent: must use fixed32 --)
	V4Addr uint32 `protobuf:"fixed32,2,opt,name=v4_addr,json=v4Addr,proto3,oneof"`
}

type IPAddress_V6Addr

type IPAddress_V6Addr struct {
	// IPv6 address
	V6Addr []byte `protobuf:"bytes,3,opt,name=v6_addr,json=v6Addr,proto3,oneof"`
}

type IPEntry

type IPEntry struct {

	// Types that are assignable to IpEntry:
	//
	//	*IPEntry_Prefix
	//	*IPEntry_Range
	//	*IPEntry_Tag
	IpEntry isIPEntry_IpEntry `protobuf_oneof:"ip_entry"`
	// contains filtered or unexported fields
}

IPEntry represents any form of IP address/prefix/range/tag etc.

func (*IPEntry) Descriptor deprecated

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

Deprecated: Use IPEntry.ProtoReflect.Descriptor instead.

func (*IPEntry) GetIpEntry

func (m *IPEntry) GetIpEntry() isIPEntry_IpEntry

func (*IPEntry) GetPrefix

func (x *IPEntry) GetPrefix() *IPPrefix

func (*IPEntry) GetRange

func (x *IPEntry) GetRange() *AddressRange

func (*IPEntry) GetTag

func (x *IPEntry) GetTag() int32

func (*IPEntry) ProtoMessage

func (*IPEntry) ProtoMessage()

func (*IPEntry) ProtoReflect

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

func (*IPEntry) Reset

func (x *IPEntry) Reset()

func (*IPEntry) String

func (x *IPEntry) String() string

type IPEntry_Prefix

type IPEntry_Prefix struct {
	// IP prefix
	Prefix *IPPrefix `protobuf:"bytes,1,opt,name=prefix,proto3,oneof"`
}

type IPEntry_Range

type IPEntry_Range struct {
	// IP range
	Range *AddressRange `protobuf:"bytes,2,opt,name=range,proto3,oneof"`
}

type IPEntry_Tag

type IPEntry_Tag struct {
	// tag that represents IP addres/pfx/range, range:1-4294967294
	Tag int32 `protobuf:"varint,3,opt,name=tag,proto3,oneof"`
}

type IPList

type IPList struct {

	// list of ip entries (prefix, range)
	IpEntries []*IPEntry `protobuf:"bytes,1,rep,name=ip_entries,json=ipEntries,proto3" json:"ip_entries,omitempty"`
	// contains filtered or unexported fields
}

IPList is a list of IPEntry objects

func (*IPList) Descriptor deprecated

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

Deprecated: Use IPList.ProtoReflect.Descriptor instead.

func (*IPList) GetIpEntries

func (x *IPList) GetIpEntries() []*IPEntry

func (*IPList) ProtoMessage

func (*IPList) ProtoMessage()

func (*IPList) ProtoReflect

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

func (*IPList) Reset

func (x *IPList) Reset()

func (*IPList) String

func (x *IPList) String() string

type IPPrefix

type IPPrefix struct {

	// IP prefix address
	Addr *IPAddress `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// IP Prefix length (range:0-128)
	Len int32 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"`
	// contains filtered or unexported fields
}

IP Prefix object

func (*IPPrefix) Descriptor deprecated

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

Deprecated: Use IPPrefix.ProtoReflect.Descriptor instead.

func (*IPPrefix) GetAddr

func (x *IPPrefix) GetAddr() *IPAddress

func (*IPPrefix) GetLen

func (x *IPPrefix) GetLen() int32

func (*IPPrefix) ProtoMessage

func (*IPPrefix) ProtoMessage()

func (*IPPrefix) ProtoReflect

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

func (*IPPrefix) Reset

func (x *IPPrefix) Reset()

func (*IPPrefix) String

func (x *IPPrefix) String() string

type IPRange

type IPRange struct {

	// starting IP address
	Low *IPAddress `protobuf:"bytes,1,opt,name=low,proto3" json:"low,omitempty"`
	// ending IP address
	High *IPAddress `protobuf:"bytes,2,opt,name=high,proto3" json:"high,omitempty"`
	// contains filtered or unexported fields
}

IP Range

func (*IPRange) Descriptor deprecated

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

Deprecated: Use IPRange.ProtoReflect.Descriptor instead.

func (*IPRange) GetHigh

func (x *IPRange) GetHigh() *IPAddress

func (*IPRange) GetLow

func (x *IPRange) GetLow() *IPAddress

func (*IPRange) ProtoMessage

func (*IPRange) ProtoMessage()

func (*IPRange) ProtoReflect

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

func (*IPRange) Reset

func (x *IPRange) Reset()

func (*IPRange) String

func (x *IPRange) String() string

type IPv4Prefix

type IPv4Prefix struct {

	// IPv4 address portion
	// (-- api-linter: core::0141::forbidden-types=disabled
	//
	//	aip.dev/not-precedent: must use fixed32 --)
	Addr uint32 `protobuf:"fixed32,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// prefix length; range:0-32
	Len int32 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"`
	// contains filtered or unexported fields
}

IPv4 Prefix

func (*IPv4Prefix) Descriptor deprecated

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

Deprecated: Use IPv4Prefix.ProtoReflect.Descriptor instead.

func (*IPv4Prefix) GetAddr

func (x *IPv4Prefix) GetAddr() uint32

func (*IPv4Prefix) GetLen

func (x *IPv4Prefix) GetLen() int32

func (*IPv4Prefix) ProtoMessage

func (*IPv4Prefix) ProtoMessage()

func (*IPv4Prefix) ProtoReflect

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

func (*IPv4Prefix) Reset

func (x *IPv4Prefix) Reset()

func (*IPv4Prefix) String

func (x *IPv4Prefix) String() string

type IPv6Prefix

type IPv6Prefix struct {

	// IPv6 address bytes
	Addr []byte `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// prefix length: range:0-128
	Len int32 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"`
	// contains filtered or unexported fields
}

IPv6 Prefix

func (*IPv6Prefix) Descriptor deprecated

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

Deprecated: Use IPv6Prefix.ProtoReflect.Descriptor instead.

func (*IPv6Prefix) GetAddr

func (x *IPv6Prefix) GetAddr() []byte

func (*IPv6Prefix) GetLen

func (x *IPv6Prefix) GetLen() int32

func (*IPv6Prefix) ProtoMessage

func (*IPv6Prefix) ProtoMessage()

func (*IPv6Prefix) ProtoReflect

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

func (*IPv6Prefix) Reset

func (x *IPv6Prefix) Reset()

func (*IPv6Prefix) String

func (x *IPv6Prefix) String() string

type InterfaceType

type InterfaceType int32

Interface Types Enumeration

const (
	// Interface Unspecified
	InterfaceType_INTERFACE_TYPE_UNSPECIFIED InterfaceType = 0
	// Ethernet Interface
	InterfaceType_INTERFACE_TYPE_ETHERNET InterfaceType = 1
	// Loopback Interface
	InterfaceType_INTERFACE_TYPE_LOOPBACK InterfaceType = 2
)

func (InterfaceType) Descriptor

func (InterfaceType) Enum

func (x InterfaceType) Enum() *InterfaceType

func (InterfaceType) EnumDescriptor deprecated

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

Deprecated: Use InterfaceType.Descriptor instead.

func (InterfaceType) Number

func (InterfaceType) String

func (x InterfaceType) String() string

func (InterfaceType) Type

type IpAf

type IpAf int32

IP address families

const (
	// unspecified
	IpAf_IP_AF_UNSPECIFIED IpAf = 0
	// ipv4
	IpAf_IP_AF_INET IpAf = 1
	// ipv6
	IpAf_IP_AF_INET6 IpAf = 2
)

func (IpAf) Descriptor

func (IpAf) Descriptor() protoreflect.EnumDescriptor

func (IpAf) Enum

func (x IpAf) Enum() *IpAf

func (IpAf) EnumDescriptor deprecated

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

Deprecated: Use IpAf.Descriptor instead.

func (IpAf) Number

func (x IpAf) Number() protoreflect.EnumNumber

func (IpAf) String

func (x IpAf) String() string

func (IpAf) Type

func (IpAf) Type() protoreflect.EnumType

type ListNetInterfacesRequest

type ListNetInterfacesRequest struct {

	// parent
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// page size
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// page token
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

List Interfaces Request

func (*ListNetInterfacesRequest) Descriptor deprecated

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

Deprecated: Use ListNetInterfacesRequest.ProtoReflect.Descriptor instead.

func (*ListNetInterfacesRequest) GetPageSize

func (x *ListNetInterfacesRequest) GetPageSize() int32

func (*ListNetInterfacesRequest) GetPageToken

func (x *ListNetInterfacesRequest) GetPageToken() string

func (*ListNetInterfacesRequest) GetParent

func (x *ListNetInterfacesRequest) GetParent() string

func (*ListNetInterfacesRequest) ProtoMessage

func (*ListNetInterfacesRequest) ProtoMessage()

func (*ListNetInterfacesRequest) ProtoReflect

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

func (*ListNetInterfacesRequest) Reset

func (x *ListNetInterfacesRequest) Reset()

func (*ListNetInterfacesRequest) String

func (x *ListNetInterfacesRequest) String() string

type ListNetInterfacesResponse

type ListNetInterfacesResponse struct {

	// List of interfaces
	NetInterfaces []*NetInterface `protobuf:"bytes,1,rep,name=net_interfaces,json=netInterfaces,proto3" json:"net_interfaces,omitempty"`
	// next page token
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

List of Interfaces Response

func (*ListNetInterfacesResponse) Descriptor deprecated

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

Deprecated: Use ListNetInterfacesResponse.ProtoReflect.Descriptor instead.

func (*ListNetInterfacesResponse) GetNetInterfaces

func (x *ListNetInterfacesResponse) GetNetInterfaces() []*NetInterface

func (*ListNetInterfacesResponse) GetNextPageToken

func (x *ListNetInterfacesResponse) GetNextPageToken() string

func (*ListNetInterfacesResponse) ProtoMessage

func (*ListNetInterfacesResponse) ProtoMessage()

func (*ListNetInterfacesResponse) ProtoReflect

func (*ListNetInterfacesResponse) Reset

func (x *ListNetInterfacesResponse) Reset()

func (*ListNetInterfacesResponse) String

func (x *ListNetInterfacesResponse) String() string

type NetInterface

type NetInterface struct {

	// Name of the interface.  This is an opaque object that is not
	// user settable.  It is returned by the created object
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Configuration settings - rw
	Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// Interface State and Statistics - ro
	State *State `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// Hold Time Settings
	Holdtime *NetInterface_HoldTime `protobuf:"bytes,4,opt,name=holdtime,proto3" json:"holdtime,omitempty"`
	// Subinterfaces assigned to the interface
	Subinterfaces *NetInterface_Subinterfaces `protobuf:"bytes,5,opt,name=subinterfaces,proto3" json:"subinterfaces,omitempty"`
	// contains filtered or unexported fields
}

Interface - physical or virtual interface reported

func (*NetInterface) Descriptor deprecated

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

Deprecated: Use NetInterface.ProtoReflect.Descriptor instead.

func (*NetInterface) GetConfig

func (x *NetInterface) GetConfig() *Config

func (*NetInterface) GetHoldtime

func (x *NetInterface) GetHoldtime() *NetInterface_HoldTime

func (*NetInterface) GetName

func (x *NetInterface) GetName() string

func (*NetInterface) GetState

func (x *NetInterface) GetState() *State

func (*NetInterface) GetSubinterfaces

func (x *NetInterface) GetSubinterfaces() *NetInterface_Subinterfaces

func (*NetInterface) ProtoMessage

func (*NetInterface) ProtoMessage()

func (*NetInterface) ProtoReflect

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

func (*NetInterface) Reset

func (x *NetInterface) Reset()

func (*NetInterface) String

func (x *NetInterface) String() string

type NetInterfaceServiceClient

type NetInterfaceServiceClient interface {
	// Retrieves the interface information for a given interface
	GetNetInterface(ctx context.Context, in *GetNetInterfaceRequest, opts ...grpc.CallOption) (*NetInterface, error)
	// Retrieves the set of interfaces on the device
	ListNetInterfaces(ctx context.Context, in *ListNetInterfacesRequest, opts ...grpc.CallOption) (*ListNetInterfacesResponse, error)
	// A method for setting or changing configuration of an interface
	UpdateNetInterface(ctx context.Context, in *UpdateNetInterfaceRequest, opts ...grpc.CallOption) (*NetInterface, error)
}

NetInterfaceServiceClient is the client API for NetInterfaceService 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 NetInterfaceServiceServer

type NetInterfaceServiceServer interface {
	// Retrieves the interface information for a given interface
	GetNetInterface(context.Context, *GetNetInterfaceRequest) (*NetInterface, error)
	// Retrieves the set of interfaces on the device
	ListNetInterfaces(context.Context, *ListNetInterfacesRequest) (*ListNetInterfacesResponse, error)
	// A method for setting or changing configuration of an interface
	UpdateNetInterface(context.Context, *UpdateNetInterfaceRequest) (*NetInterface, error)
	// contains filtered or unexported methods
}

NetInterfaceServiceServer is the server API for NetInterfaceService service. All implementations must embed UnimplementedNetInterfaceServiceServer for forward compatibility

type NetInterface_HoldTime

type NetInterface_HoldTime struct {

	// Hold Time Config
	HoldConfig *NetInterface_HoldTime_HoldConfig `protobuf:"bytes,1,opt,name=hold_config,json=holdConfig,proto3" json:"hold_config,omitempty"`
	// Hold State Settings
	HoldState *NetInterface_HoldTime_HoldState `protobuf:"bytes,2,opt,name=hold_state,json=holdState,proto3" json:"hold_state,omitempty"`
	// contains filtered or unexported fields
}

Hold Time Settings

func (*NetInterface_HoldTime) Descriptor deprecated

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

Deprecated: Use NetInterface_HoldTime.ProtoReflect.Descriptor instead.

func (*NetInterface_HoldTime) GetHoldConfig

func (*NetInterface_HoldTime) GetHoldState

func (*NetInterface_HoldTime) ProtoMessage

func (*NetInterface_HoldTime) ProtoMessage()

func (*NetInterface_HoldTime) ProtoReflect

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

func (*NetInterface_HoldTime) Reset

func (x *NetInterface_HoldTime) Reset()

func (*NetInterface_HoldTime) String

func (x *NetInterface_HoldTime) String() string

type NetInterface_HoldTime_HoldConfig

type NetInterface_HoldTime_HoldConfig struct {

	// Hold time up
	Up uint32 `protobuf:"varint,1,opt,name=up,proto3" json:"up,omitempty"`
	// Hold time down
	Down uint32 `protobuf:"varint,2,opt,name=down,proto3" json:"down,omitempty"`
	// contains filtered or unexported fields
}

Hold Time Config - rw

func (*NetInterface_HoldTime_HoldConfig) Descriptor deprecated

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

Deprecated: Use NetInterface_HoldTime_HoldConfig.ProtoReflect.Descriptor instead.

func (*NetInterface_HoldTime_HoldConfig) GetDown

func (*NetInterface_HoldTime_HoldConfig) GetUp

func (*NetInterface_HoldTime_HoldConfig) ProtoMessage

func (*NetInterface_HoldTime_HoldConfig) ProtoMessage()

func (*NetInterface_HoldTime_HoldConfig) ProtoReflect

func (*NetInterface_HoldTime_HoldConfig) Reset

func (*NetInterface_HoldTime_HoldConfig) String

type NetInterface_HoldTime_HoldState

type NetInterface_HoldTime_HoldState struct {

	// Hold state up
	Up uint32 `protobuf:"varint,1,opt,name=up,proto3" json:"up,omitempty"`
	// Hold state down
	Down uint32 `protobuf:"varint,2,opt,name=down,proto3" json:"down,omitempty"`
	// contains filtered or unexported fields
}

Hold State Settings - ro

func (*NetInterface_HoldTime_HoldState) Descriptor deprecated

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

Deprecated: Use NetInterface_HoldTime_HoldState.ProtoReflect.Descriptor instead.

func (*NetInterface_HoldTime_HoldState) GetDown

func (*NetInterface_HoldTime_HoldState) GetUp

func (*NetInterface_HoldTime_HoldState) ProtoMessage

func (*NetInterface_HoldTime_HoldState) ProtoMessage()

func (*NetInterface_HoldTime_HoldState) ProtoReflect

func (*NetInterface_HoldTime_HoldState) Reset

func (*NetInterface_HoldTime_HoldState) String

type NetInterface_Subinterfaces

type NetInterface_Subinterfaces struct {

	// Subinterface Settings
	Subinterface []*NetInterface_Subinterfaces_Subinterface `protobuf:"bytes,2,rep,name=subinterface,proto3" json:"subinterface,omitempty"`
	// contains filtered or unexported fields
}

Subinterfaces settings - VLAN, etc.

func (*NetInterface_Subinterfaces) Descriptor deprecated

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

Deprecated: Use NetInterface_Subinterfaces.ProtoReflect.Descriptor instead.

func (*NetInterface_Subinterfaces) GetSubinterface

func (*NetInterface_Subinterfaces) ProtoMessage

func (*NetInterface_Subinterfaces) ProtoMessage()

func (*NetInterface_Subinterfaces) ProtoReflect

func (*NetInterface_Subinterfaces) Reset

func (x *NetInterface_Subinterfaces) Reset()

func (*NetInterface_Subinterfaces) String

func (x *NetInterface_Subinterfaces) String() string

type NetInterface_Subinterfaces_Subinterface

type NetInterface_Subinterfaces_Subinterface struct {

	// Subinterface index
	Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Subinterface Configuration
	SubifConfig *NetInterface_Subinterfaces_Subinterface_SubifConfig `protobuf:"bytes,2,opt,name=subif_config,json=subifConfig,proto3" json:"subif_config,omitempty"`
	// Subinterface State and Statistics
	State *State `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

Subinterface settings

func (*NetInterface_Subinterfaces_Subinterface) Descriptor deprecated

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

Deprecated: Use NetInterface_Subinterfaces_Subinterface.ProtoReflect.Descriptor instead.

func (*NetInterface_Subinterfaces_Subinterface) GetIndex

func (*NetInterface_Subinterfaces_Subinterface) GetState

func (*NetInterface_Subinterfaces_Subinterface) GetSubifConfig

func (*NetInterface_Subinterfaces_Subinterface) ProtoMessage

func (*NetInterface_Subinterfaces_Subinterface) ProtoReflect

func (*NetInterface_Subinterfaces_Subinterface) Reset

func (*NetInterface_Subinterfaces_Subinterface) String

type NetInterface_Subinterfaces_Subinterface_SubifConfig

type NetInterface_Subinterfaces_Subinterface_SubifConfig struct {

	// Subinterface Index
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Subinterface description
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Subinterface enabled
	Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

Subinterface configuration

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) Descriptor deprecated

Deprecated: Use NetInterface_Subinterfaces_Subinterface_SubifConfig.ProtoReflect.Descriptor instead.

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) GetDescription

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) GetEnabled

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) GetIndex

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) ProtoMessage

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) ProtoReflect

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) Reset

func (*NetInterface_Subinterfaces_Subinterface_SubifConfig) String

type OperState

type OperState int32

Operational State Enumeration

const (
	// Unspecified
	OperState_OPER_STATE_UNSPECIFIED OperState = 0
	// Operational Up
	OperState_OPER_STATE_UP OperState = 2
	// Operational Down
	OperState_OPER_STATE_DOWN OperState = 3
	// Operational Testing
	OperState_OPER_STATE_TESTING OperState = 4
	// Unknown
	OperState_OPER_STATE_UNKNOWN OperState = 5
	// Dormant
	OperState_OPER_STATE_DORMANT OperState = 6
	// Not Present
	OperState_OPER_STATE_NOT_PRESENT OperState = 7
	// Lower Layer Down
	OperState_OPER_STATE_LOWER_LAYER_DOWN OperState = 8
)

func (OperState) Descriptor

func (OperState) Descriptor() protoreflect.EnumDescriptor

func (OperState) Enum

func (x OperState) Enum() *OperState

func (OperState) EnumDescriptor deprecated

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

Deprecated: Use OperState.Descriptor instead.

func (OperState) Number

func (x OperState) Number() protoreflect.EnumNumber

func (OperState) String

func (x OperState) String() string

func (OperState) Type

type PolicyDir

type PolicyDir int32

direction in which policy is enforced INGRESS/EGRESS is w.r.t vnic (i.e., traffic leaving vnic is marked as EGRESS and traffic going to vnic is marked as INGRESS

const (
	// unspecified
	PolicyDir_POLICY_DIR_UNSPECIFIED PolicyDir = 0
	// ingress (towards vnic from network)
	PolicyDir_POLICY_DIR_INGRESS PolicyDir = 1
	// egress (from vnic to network)
	PolicyDir_POLICY_DIR_EGRESS PolicyDir = 2
)

func (PolicyDir) Descriptor

func (PolicyDir) Descriptor() protoreflect.EnumDescriptor

func (PolicyDir) Enum

func (x PolicyDir) Enum() *PolicyDir

func (PolicyDir) EnumDescriptor deprecated

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

Deprecated: Use PolicyDir.Descriptor instead.

func (PolicyDir) Number

func (x PolicyDir) Number() protoreflect.EnumNumber

func (PolicyDir) String

func (x PolicyDir) String() string

func (PolicyDir) Type

type PortListMatch

type PortListMatch struct {

	// list of source ports or port ranges
	SrcPortRange []*PortRange `protobuf:"bytes,1,rep,name=src_port_range,json=srcPortRange,proto3" json:"src_port_range,omitempty"`
	// list of destination ports or port ranges
	DstPortRange []*PortRange `protobuf:"bytes,2,rep,name=dst_port_range,json=dstPortRange,proto3" json:"dst_port_range,omitempty"`
	// contains filtered or unexported fields
}

TCP/UDP source and destination port list

func (*PortListMatch) Descriptor deprecated

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

Deprecated: Use PortListMatch.ProtoReflect.Descriptor instead.

func (*PortListMatch) GetDstPortRange

func (x *PortListMatch) GetDstPortRange() []*PortRange

func (*PortListMatch) GetSrcPortRange

func (x *PortListMatch) GetSrcPortRange() []*PortRange

func (*PortListMatch) ProtoMessage

func (*PortListMatch) ProtoMessage()

func (*PortListMatch) ProtoReflect

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

func (*PortListMatch) Reset

func (x *PortListMatch) Reset()

func (*PortListMatch) String

func (x *PortListMatch) String() string

type PortMatch

type PortMatch struct {

	// source port range
	SrcPortRange *PortRange `protobuf:"bytes,1,opt,name=src_port_range,json=srcPortRange,proto3" json:"src_port_range,omitempty"`
	// destination port range
	DstPortRange *PortRange `protobuf:"bytes,2,opt,name=dst_port_range,json=dstPortRange,proto3" json:"dst_port_range,omitempty"`
	// contains filtered or unexported fields
}

TCP/UDP rule match criteria

func (*PortMatch) Descriptor deprecated

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

Deprecated: Use PortMatch.ProtoReflect.Descriptor instead.

func (*PortMatch) GetDstPortRange

func (x *PortMatch) GetDstPortRange() *PortRange

func (*PortMatch) GetSrcPortRange

func (x *PortMatch) GetSrcPortRange() *PortRange

func (*PortMatch) ProtoMessage

func (*PortMatch) ProtoMessage()

func (*PortMatch) ProtoReflect

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

func (*PortMatch) Reset

func (x *PortMatch) Reset()

func (*PortMatch) String

func (x *PortMatch) String() string

type PortRange

type PortRange struct {

	// range:0-65535
	PortLow int32 `protobuf:"varint,1,opt,name=port_low,json=portLow,proto3" json:"port_low,omitempty"`
	// range:0-65535
	PortHigh int32 `protobuf:"varint,2,opt,name=port_high,json=portHigh,proto3" json:"port_high,omitempty"`
	// contains filtered or unexported fields
}

PortRange object has low and high end of the port ranges

func (*PortRange) Descriptor deprecated

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

Deprecated: Use PortRange.ProtoReflect.Descriptor instead.

func (*PortRange) GetPortHigh

func (x *PortRange) GetPortHigh() int32

func (*PortRange) GetPortLow

func (x *PortRange) GetPortLow() int32

func (*PortRange) ProtoMessage

func (*PortRange) ProtoMessage()

func (*PortRange) ProtoReflect

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

func (*PortRange) Reset

func (x *PortRange) Reset()

func (*PortRange) String

func (x *PortRange) String() string

type RouteProtocol

type RouteProtocol int32

route protocols

const (
	// unspecified
	RouteProtocol_ROUTE_PROTOCOL_UNSPECIFIED RouteProtocol = 0
	// local
	RouteProtocol_ROUTE_PROTOCOL_LOCAL RouteProtocol = 1
	// static
	RouteProtocol_ROUTE_PROTOCOL_STATIC RouteProtocol = 2
	// bgp (dynamic)
	RouteProtocol_ROUTE_PROTOCOL_BGP RouteProtocol = 3
)

func (RouteProtocol) Descriptor

func (RouteProtocol) Enum

func (x RouteProtocol) Enum() *RouteProtocol

func (RouteProtocol) EnumDescriptor deprecated

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

Deprecated: Use RouteProtocol.Descriptor instead.

func (RouteProtocol) Number

func (RouteProtocol) String

func (x RouteProtocol) String() string

func (RouteProtocol) Type

type RouteType

type RouteType int32

route type

const (
	// unspecified
	RouteType_ROUTE_TYPE_UNSPECIFIED RouteType = 0
	// other
	RouteType_ROUTE_TYPE_OTHER RouteType = 1
	// reject
	RouteType_ROUTE_TYPE_REJECT RouteType = 2
	// local
	RouteType_ROUTE_TYPE_LOCAL RouteType = 3
	// remote
	RouteType_ROUTE_TYPE_REMOTE RouteType = 4
)

func (RouteType) Descriptor

func (RouteType) Descriptor() protoreflect.EnumDescriptor

func (RouteType) Enum

func (x RouteType) Enum() *RouteType

func (RouteType) EnumDescriptor deprecated

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

Deprecated: Use RouteType.Descriptor instead.

func (RouteType) Number

func (x RouteType) Number() protoreflect.EnumNumber

func (RouteType) String

func (x RouteType) String() string

func (RouteType) Type

type RuleL3Match

type RuleL3Match struct {

	// IP protocol match MUST be specified even if it is wildcard
	//
	// Types that are assignable to Protomatch:
	//
	//	*RuleL3Match_ProtoNum
	//	*RuleL3Match_ProtoWildCard
	Protomatch isRuleL3Match_Protomatch `protobuf_oneof:"protomatch"`
	// Types that are assignable to Srcmatch:
	//
	//	*RuleL3Match_SrcPrefix
	//	*RuleL3Match_SrcRange
	//	*RuleL3Match_SrcTag
	//	*RuleL3Match_SrcIpList
	Srcmatch isRuleL3Match_Srcmatch `protobuf_oneof:"srcmatch"`
	// Types that are assignable to Dstmatch:
	//
	//	*RuleL3Match_DstPrefix
	//	*RuleL3Match_DstRange
	//	*RuleL3Match_DstTag
	//	*RuleL3Match_DstIpList
	Dstmatch isRuleL3Match_Dstmatch `protobuf_oneof:"dstmatch"`
	// contains filtered or unexported fields
}

L3 rule match criteria

func (*RuleL3Match) Descriptor deprecated

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

Deprecated: Use RuleL3Match.ProtoReflect.Descriptor instead.

func (*RuleL3Match) GetDstIpList

func (x *RuleL3Match) GetDstIpList() *IPList

func (*RuleL3Match) GetDstPrefix

func (x *RuleL3Match) GetDstPrefix() *IPPrefix

func (*RuleL3Match) GetDstRange

func (x *RuleL3Match) GetDstRange() *AddressRange

func (*RuleL3Match) GetDstTag

func (x *RuleL3Match) GetDstTag() int32

func (*RuleL3Match) GetDstmatch

func (m *RuleL3Match) GetDstmatch() isRuleL3Match_Dstmatch

func (*RuleL3Match) GetProtoNum

func (x *RuleL3Match) GetProtoNum() int32

func (*RuleL3Match) GetProtoWildCard

func (x *RuleL3Match) GetProtoWildCard() WildcardMatch

func (*RuleL3Match) GetProtomatch

func (m *RuleL3Match) GetProtomatch() isRuleL3Match_Protomatch

func (*RuleL3Match) GetSrcIpList

func (x *RuleL3Match) GetSrcIpList() *IPList

func (*RuleL3Match) GetSrcPrefix

func (x *RuleL3Match) GetSrcPrefix() *IPPrefix

func (*RuleL3Match) GetSrcRange

func (x *RuleL3Match) GetSrcRange() *AddressRange

func (*RuleL3Match) GetSrcTag

func (x *RuleL3Match) GetSrcTag() int32

func (*RuleL3Match) GetSrcmatch

func (m *RuleL3Match) GetSrcmatch() isRuleL3Match_Srcmatch

func (*RuleL3Match) ProtoMessage

func (*RuleL3Match) ProtoMessage()

func (*RuleL3Match) ProtoReflect

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

func (*RuleL3Match) Reset

func (x *RuleL3Match) Reset()

func (*RuleL3Match) String

func (x *RuleL3Match) String() string

type RuleL3Match_DstIpList

type RuleL3Match_DstIpList struct {
	// ip list
	DstIpList *IPList `protobuf:"bytes,10,opt,name=dst_ip_list,json=dstIpList,proto3,oneof"`
}

type RuleL3Match_DstPrefix

type RuleL3Match_DstPrefix struct {
	// ip prefix
	DstPrefix *IPPrefix `protobuf:"bytes,7,opt,name=dst_prefix,json=dstPrefix,proto3,oneof"`
}

type RuleL3Match_DstRange

type RuleL3Match_DstRange struct {
	// destination ip range
	DstRange *AddressRange `protobuf:"bytes,8,opt,name=dst_range,json=dstRange,proto3,oneof"`
}

type RuleL3Match_DstTag

type RuleL3Match_DstTag struct {
	// destination tag (range:1-429496729)
	DstTag int32 `protobuf:"varint,9,opt,name=dst_tag,json=dstTag,proto3,oneof"`
}

type RuleL3Match_ProtoNum

type RuleL3Match_ProtoNum struct {
	// protocol number
	ProtoNum int32 `protobuf:"varint,1,opt,name=proto_num,json=protoNum,proto3,oneof"`
}

type RuleL3Match_ProtoWildCard

type RuleL3Match_ProtoWildCard struct {
	// match ANY protocol
	ProtoWildCard WildcardMatch `` /* 133-byte string literal not displayed */
}

type RuleL3Match_SrcIpList

type RuleL3Match_SrcIpList struct {
	// ip list
	SrcIpList *IPList `protobuf:"bytes,6,opt,name=src_ip_list,json=srcIpList,proto3,oneof"`
}

type RuleL3Match_SrcPrefix

type RuleL3Match_SrcPrefix struct {
	// ip prefix
	SrcPrefix *IPPrefix `protobuf:"bytes,3,opt,name=src_prefix,json=srcPrefix,proto3,oneof"`
}

type RuleL3Match_SrcRange

type RuleL3Match_SrcRange struct {
	// source ip address range
	SrcRange *AddressRange `protobuf:"bytes,4,opt,name=src_range,json=srcRange,proto3,oneof"`
}

type RuleL3Match_SrcTag

type RuleL3Match_SrcTag struct {
	// source tag for the range (range:1-429496729)
	SrcTag int32 `protobuf:"varint,5,opt,name=src_tag,json=srcTag,proto3,oneof"`
}

type RuleL4Match

type RuleL4Match struct {

	// Types that are assignable to L4Info:
	//
	//	*RuleL4Match_Ports
	//	*RuleL4Match_TypeCode
	//	*RuleL4Match_PortList
	//	*RuleL4Match_IcmpMatchList
	L4Info isRuleL4Match_L4Info `protobuf_oneof:"l4info"`
	// contains filtered or unexported fields
}

L4 rule match criteria

func (*RuleL4Match) Descriptor deprecated

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

Deprecated: Use RuleL4Match.ProtoReflect.Descriptor instead.

func (*RuleL4Match) GetIcmpMatchList

func (x *RuleL4Match) GetIcmpMatchList() *ICMPMatchList

func (*RuleL4Match) GetL4Info

func (m *RuleL4Match) GetL4Info() isRuleL4Match_L4Info

func (*RuleL4Match) GetPortList

func (x *RuleL4Match) GetPortList() *PortListMatch

func (*RuleL4Match) GetPorts

func (x *RuleL4Match) GetPorts() *PortMatch

func (*RuleL4Match) GetTypeCode

func (x *RuleL4Match) GetTypeCode() *ICMPMatch

func (*RuleL4Match) ProtoMessage

func (*RuleL4Match) ProtoMessage()

func (*RuleL4Match) ProtoReflect

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

func (*RuleL4Match) Reset

func (x *RuleL4Match) Reset()

func (*RuleL4Match) String

func (x *RuleL4Match) String() string

type RuleL4Match_IcmpMatchList

type RuleL4Match_IcmpMatchList struct {
	// list ICMP type/code match criteria
	IcmpMatchList *ICMPMatchList `protobuf:"bytes,4,opt,name=icmp_match_list,json=icmpMatchList,proto3,oneof"`
}

type RuleL4Match_PortList

type RuleL4Match_PortList struct {
	// list of source and/or destination ports/ranges
	PortList *PortListMatch `protobuf:"bytes,3,opt,name=port_list,json=portList,proto3,oneof"`
}

type RuleL4Match_Ports

type RuleL4Match_Ports struct {
	// source and/or destination ports/ranges
	Ports *PortMatch `protobuf:"bytes,1,opt,name=ports,proto3,oneof"`
}

type RuleL4Match_TypeCode

type RuleL4Match_TypeCode struct {
	// ICMP type/code match criteria
	TypeCode *ICMPMatch `protobuf:"bytes,2,opt,name=type_code,json=typeCode,proto3,oneof"`
}

type RuleMatch

type RuleMatch struct {

	// Layer 3 match criteria
	L3Match *RuleL3Match `protobuf:"bytes,1,opt,name=l3_match,json=l3Match,proto3" json:"l3_match,omitempty"`
	// Layer 4 match criteria
	L4Match *RuleL4Match `protobuf:"bytes,2,opt,name=l4_match,json=l4Match,proto3" json:"l4_match,omitempty"`
	// contains filtered or unexported fields
}

rule match criteria

func (*RuleMatch) Descriptor deprecated

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

Deprecated: Use RuleMatch.ProtoReflect.Descriptor instead.

func (*RuleMatch) GetL3Match

func (x *RuleMatch) GetL3Match() *RuleL3Match

func (*RuleMatch) GetL4Match

func (x *RuleMatch) GetL4Match() *RuleL4Match

func (*RuleMatch) ProtoMessage

func (*RuleMatch) ProtoMessage()

func (*RuleMatch) ProtoReflect

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

func (*RuleMatch) Reset

func (x *RuleMatch) Reset()

func (*RuleMatch) String

func (x *RuleMatch) String() string

type SecurityRuleAction

type SecurityRuleAction int32

security rule action is one of the below

const (
	// no action
	// (-- api-linter: core::0126::unspecified=disabled
	//
	//	aip.dev/not-precedent: NONE means no action. --)
	SecurityRuleAction_SECURITY_RULE_ACTION_NONE SecurityRuleAction = 0
	// allow
	SecurityRuleAction_SECURITY_RULE_ACTION_ALLOW SecurityRuleAction = 1
	// deny
	SecurityRuleAction_SECURITY_RULE_ACTION_DENY SecurityRuleAction = 2
)

func (SecurityRuleAction) Descriptor

func (SecurityRuleAction) Enum

func (SecurityRuleAction) EnumDescriptor deprecated

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

Deprecated: Use SecurityRuleAction.Descriptor instead.

func (SecurityRuleAction) Number

func (SecurityRuleAction) String

func (x SecurityRuleAction) String() string

func (SecurityRuleAction) Type

type State

type State struct {

	// Name of the interface.  This is the opaque object
	// used for designating the created interface.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Interface type indicator
	Type InterfaceType `protobuf:"varint,2,opt,name=type,proto3,enum=opi_api.network.opinetcommon.v1alpha1.InterfaceType" json:"type,omitempty"`
	// Configured MTU size
	Mtu uint32 `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
	// Configured Loopback mode
	LoopbackMode bool `protobuf:"varint,4,opt,name=loopback_mode,json=loopbackMode,proto3" json:"loopback_mode,omitempty"`
	// Interface description
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Interface enabled indicator
	Enabled bool `protobuf:"varint,6,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Interface Index
	Ifindex uint32 `protobuf:"varint,7,opt,name=ifindex,proto3" json:"ifindex,omitempty"`
	// Admin State
	AdminState AdminState `` /* 146-byte string literal not displayed */
	// Operational State
	OperState OperState `` /* 142-byte string literal not displayed */
	// Last Change
	LastChange uint64 `protobuf:"varint,10,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
	// Logical interface
	Logical bool `protobuf:"varint,11,opt,name=logical,proto3" json:"logical,omitempty"`
	// Management interface indicator
	Management bool `protobuf:"varint,12,opt,name=management,proto3" json:"management,omitempty"`
	// CPU
	Cpu bool `protobuf:"varint,13,opt,name=cpu,proto3" json:"cpu,omitempty"`
	// Interface Statistics Counters
	Counters *Counters `protobuf:"bytes,14,opt,name=counters,proto3" json:"counters,omitempty"`
	// contains filtered or unexported fields
}

Interface State information - ro (-- api-linter: core::0123::resource-annotation=disabled

aip.dev/not-precedent: the name field is an opaque object --)

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetAdminState

func (x *State) GetAdminState() AdminState

func (*State) GetCounters

func (x *State) GetCounters() *Counters

func (*State) GetCpu

func (x *State) GetCpu() bool

func (*State) GetDescription

func (x *State) GetDescription() string

func (*State) GetEnabled

func (x *State) GetEnabled() bool

func (*State) GetIfindex

func (x *State) GetIfindex() uint32

func (*State) GetLastChange

func (x *State) GetLastChange() uint64

func (*State) GetLogical

func (x *State) GetLogical() bool

func (*State) GetLoopbackMode

func (x *State) GetLoopbackMode() bool

func (*State) GetManagement

func (x *State) GetManagement() bool

func (*State) GetMtu

func (x *State) GetMtu() uint32

func (*State) GetName

func (x *State) GetName() string

func (*State) GetOperState

func (x *State) GetOperState() OperState

func (*State) GetType

func (x *State) GetType() InterfaceType

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

type UnimplementedNetInterfaceServiceServer

type UnimplementedNetInterfaceServiceServer struct {
}

UnimplementedNetInterfaceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNetInterfaceServiceServer) GetNetInterface

func (UnimplementedNetInterfaceServiceServer) ListNetInterfaces

func (UnimplementedNetInterfaceServiceServer) UpdateNetInterface

type UnsafeNetInterfaceServiceServer

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

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

type UpdateNetInterfaceRequest

type UpdateNetInterfaceRequest struct {

	// Interface update settings
	NetInterface *NetInterface `protobuf:"bytes,1,opt,name=net_interface,json=netInterface,proto3" json:"net_interface,omitempty"`
	// The list of fields to update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// If set to true, and the object is not found, a new object will be created.
	// In this situation, `update_mask` is ignored.
	AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
	// contains filtered or unexported fields
}

Update Interface Request

func (*UpdateNetInterfaceRequest) Descriptor deprecated

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

Deprecated: Use UpdateNetInterfaceRequest.ProtoReflect.Descriptor instead.

func (*UpdateNetInterfaceRequest) GetAllowMissing

func (x *UpdateNetInterfaceRequest) GetAllowMissing() bool

func (*UpdateNetInterfaceRequest) GetNetInterface

func (x *UpdateNetInterfaceRequest) GetNetInterface() *NetInterface

func (*UpdateNetInterfaceRequest) GetUpdateMask

func (x *UpdateNetInterfaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateNetInterfaceRequest) ProtoMessage

func (*UpdateNetInterfaceRequest) ProtoMessage()

func (*UpdateNetInterfaceRequest) ProtoReflect

func (*UpdateNetInterfaceRequest) Reset

func (x *UpdateNetInterfaceRequest) Reset()

func (*UpdateNetInterfaceRequest) String

func (x *UpdateNetInterfaceRequest) String() string

type WildcardMatch

type WildcardMatch int32

WildcardMatch options

const (
	// wouldn't match anything
	// (-- api-linter: core::0126::unspecified=disabled
	//
	//	aip.dev/not-precedent: NONE means don't match anything. --)
	WildcardMatch_WILDCARD_MATCH_NONE WildcardMatch = 0
	// match everything
	WildcardMatch_WILDCARD_MATCH_ANY WildcardMatch = 256
)

func (WildcardMatch) Descriptor

func (WildcardMatch) Enum

func (x WildcardMatch) Enum() *WildcardMatch

func (WildcardMatch) EnumDescriptor deprecated

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

Deprecated: Use WildcardMatch.Descriptor instead.

func (WildcardMatch) Number

func (WildcardMatch) String

func (x WildcardMatch) String() string

func (WildcardMatch) Type

Jump to

Keyboard shortcuts

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