_go

package
v0.0.0-...-1699976 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InterfaceType_name = map[int32]string{
		0: "ETHERNET",
		1: "LOOPBACK",
	}
	InterfaceType_value = map[string]int32{
		"ETHERNET": 0,
		"LOOPBACK": 1,
	}
)

Enum value maps for InterfaceType.

View Source
var (
	InterfaceState_name = map[int32]string{
		0: "DOWN",
		1: "UP",
	}
	InterfaceState_value = map[string]int32{
		"DOWN": 0,
		"UP":   1,
	}
)

Enum value maps for InterfaceState.

View Source
var File_openconfig_interfaces_proto protoreflect.FileDescriptor

Functions

func RegisterNetInterfaceServer

func RegisterNetInterfaceServer(s *grpc.Server, srv NetInterfaceServer)

Types

type Interface

type Interface struct {
	Name          string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Config        *Interface_Config        `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	State         *Interface_State         `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	Holdtime      *Interface_HoldTime      `protobuf:"bytes,4,opt,name=holdtime,proto3" json:"holdtime,omitempty"`
	Subinterfaces *Interface_Subinterfaces `protobuf:"bytes,5,opt,name=subinterfaces,proto3" json:"subinterfaces,omitempty"`
	// contains filtered or unexported fields
}

Main Data Structure

func (*Interface) Descriptor deprecated

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

Deprecated: Use Interface.ProtoReflect.Descriptor instead.

func (*Interface) GetConfig

func (x *Interface) GetConfig() *Interface_Config

func (*Interface) GetHoldtime

func (x *Interface) GetHoldtime() *Interface_HoldTime

func (*Interface) GetName

func (x *Interface) GetName() string

func (*Interface) GetState

func (x *Interface) GetState() *Interface_State

func (*Interface) GetSubinterfaces

func (x *Interface) GetSubinterfaces() *Interface_Subinterfaces

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) ProtoReflect

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

func (*Interface) Reset

func (x *Interface) Reset()

func (*Interface) String

func (x *Interface) String() string

type InterfaceState

type InterfaceState int32
const (
	InterfaceState_DOWN InterfaceState = 0
	InterfaceState_UP   InterfaceState = 1
)

func (InterfaceState) Descriptor

func (InterfaceState) Enum

func (x InterfaceState) Enum() *InterfaceState

func (InterfaceState) EnumDescriptor deprecated

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

Deprecated: Use InterfaceState.Descriptor instead.

func (InterfaceState) Number

func (InterfaceState) String

func (x InterfaceState) String() string

func (InterfaceState) Type

type InterfaceType

type InterfaceType int32

Data Types

const (
	InterfaceType_ETHERNET InterfaceType = 0
	InterfaceType_LOOPBACK InterfaceType = 1
)

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 Interface_Config

type Interface_Config struct {
	Name         string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type         InterfaceType `protobuf:"varint,2,opt,name=type,proto3,enum=opi_api.network.v1.InterfaceType" json:"type,omitempty"`
	Mtu          uint32        `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
	LoopbackMode bool          `protobuf:"varint,4,opt,name=loopback_mode,json=loopbackMode,proto3" json:"loopback_mode,omitempty"`
	Description  string        `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Enabled      bool          `protobuf:"varint,6,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_Config) Descriptor deprecated

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

Deprecated: Use Interface_Config.ProtoReflect.Descriptor instead.

func (*Interface_Config) GetDescription

func (x *Interface_Config) GetDescription() string

func (*Interface_Config) GetEnabled

func (x *Interface_Config) GetEnabled() bool

func (*Interface_Config) GetLoopbackMode

func (x *Interface_Config) GetLoopbackMode() bool

func (*Interface_Config) GetMtu

func (x *Interface_Config) GetMtu() uint32

func (*Interface_Config) GetName

func (x *Interface_Config) GetName() string

func (*Interface_Config) GetType

func (x *Interface_Config) GetType() InterfaceType

func (*Interface_Config) ProtoMessage

func (*Interface_Config) ProtoMessage()

func (*Interface_Config) ProtoReflect

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

func (*Interface_Config) Reset

func (x *Interface_Config) Reset()

func (*Interface_Config) String

func (x *Interface_Config) String() string

type Interface_HoldTime

type Interface_HoldTime struct {
	Config *Interface_HoldTime_Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	State  *Interface_HoldTime_State  `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_HoldTime) Descriptor deprecated

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

Deprecated: Use Interface_HoldTime.ProtoReflect.Descriptor instead.

func (*Interface_HoldTime) GetConfig

func (*Interface_HoldTime) GetState

func (*Interface_HoldTime) ProtoMessage

func (*Interface_HoldTime) ProtoMessage()

func (*Interface_HoldTime) ProtoReflect

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

func (*Interface_HoldTime) Reset

func (x *Interface_HoldTime) Reset()

func (*Interface_HoldTime) String

func (x *Interface_HoldTime) String() string

type Interface_HoldTime_Config

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

func (*Interface_HoldTime_Config) Descriptor deprecated

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

Deprecated: Use Interface_HoldTime_Config.ProtoReflect.Descriptor instead.

func (*Interface_HoldTime_Config) GetDown

func (x *Interface_HoldTime_Config) GetDown() uint32

func (*Interface_HoldTime_Config) GetUp

func (x *Interface_HoldTime_Config) GetUp() uint32

func (*Interface_HoldTime_Config) ProtoMessage

func (*Interface_HoldTime_Config) ProtoMessage()

func (*Interface_HoldTime_Config) ProtoReflect

func (*Interface_HoldTime_Config) Reset

func (x *Interface_HoldTime_Config) Reset()

func (*Interface_HoldTime_Config) String

func (x *Interface_HoldTime_Config) String() string

type Interface_HoldTime_State

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

func (*Interface_HoldTime_State) Descriptor deprecated

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

Deprecated: Use Interface_HoldTime_State.ProtoReflect.Descriptor instead.

func (*Interface_HoldTime_State) GetDown

func (x *Interface_HoldTime_State) GetDown() uint32

func (*Interface_HoldTime_State) GetUp

func (x *Interface_HoldTime_State) GetUp() uint32

func (*Interface_HoldTime_State) ProtoMessage

func (*Interface_HoldTime_State) ProtoMessage()

func (*Interface_HoldTime_State) ProtoReflect

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

func (*Interface_HoldTime_State) Reset

func (x *Interface_HoldTime_State) Reset()

func (*Interface_HoldTime_State) String

func (x *Interface_HoldTime_State) String() string

type Interface_State

type Interface_State struct {
	Name         string                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type         InterfaceType             `protobuf:"varint,2,opt,name=type,proto3,enum=opi_api.network.v1.InterfaceType" json:"type,omitempty"`
	Mtu          uint32                    `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
	LoopbackMode bool                      `protobuf:"varint,4,opt,name=loopback_mode,json=loopbackMode,proto3" json:"loopback_mode,omitempty"`
	Description  string                    `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Enabled      bool                      `protobuf:"varint,6,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Ifindex      uint32                    `protobuf:"varint,7,opt,name=ifindex,proto3" json:"ifindex,omitempty"`
	AdminStatus  InterfaceState            `` /* 134-byte string literal not displayed */
	OperStatus   InterfaceState            `` /* 131-byte string literal not displayed */
	LastChange   uint64                    `protobuf:"varint,10,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
	Logical      bool                      `protobuf:"varint,11,opt,name=logical,proto3" json:"logical,omitempty"`
	Management   bool                      `protobuf:"varint,12,opt,name=management,proto3" json:"management,omitempty"`
	Cpu          bool                      `protobuf:"varint,13,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Counters     *Interface_State_Counters `protobuf:"bytes,14,opt,name=counters,proto3" json:"counters,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_State) Descriptor deprecated

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

Deprecated: Use Interface_State.ProtoReflect.Descriptor instead.

func (*Interface_State) GetAdminStatus

func (x *Interface_State) GetAdminStatus() InterfaceState

func (*Interface_State) GetCounters

func (x *Interface_State) GetCounters() *Interface_State_Counters

func (*Interface_State) GetCpu

func (x *Interface_State) GetCpu() bool

func (*Interface_State) GetDescription

func (x *Interface_State) GetDescription() string

func (*Interface_State) GetEnabled

func (x *Interface_State) GetEnabled() bool

func (*Interface_State) GetIfindex

func (x *Interface_State) GetIfindex() uint32

func (*Interface_State) GetLastChange

func (x *Interface_State) GetLastChange() uint64

func (*Interface_State) GetLogical

func (x *Interface_State) GetLogical() bool

func (*Interface_State) GetLoopbackMode

func (x *Interface_State) GetLoopbackMode() bool

func (*Interface_State) GetManagement

func (x *Interface_State) GetManagement() bool

func (*Interface_State) GetMtu

func (x *Interface_State) GetMtu() uint32

func (*Interface_State) GetName

func (x *Interface_State) GetName() string

func (*Interface_State) GetOperStatus

func (x *Interface_State) GetOperStatus() InterfaceState

func (*Interface_State) GetType

func (x *Interface_State) GetType() InterfaceType

func (*Interface_State) ProtoMessage

func (*Interface_State) ProtoMessage()

func (*Interface_State) ProtoReflect

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

func (*Interface_State) Reset

func (x *Interface_State) Reset()

func (*Interface_State) String

func (x *Interface_State) String() string

type Interface_State_Counters

type Interface_State_Counters struct {
	InOctets           uint64 `protobuf:"varint,1,opt,name=in_octets,json=inOctets,proto3" json:"in_octets,omitempty"`
	InPackets          uint64 `protobuf:"varint,2,opt,name=in_packets,json=inPackets,proto3" json:"in_packets,omitempty"`
	InUnicastPkts      uint64 `protobuf:"varint,3,opt,name=in_unicast_pkts,json=inUnicastPkts,proto3" json:"in_unicast_pkts,omitempty"`
	InBroadcastPkts    uint64 `protobuf:"varint,4,opt,name=in_broadcast_pkts,json=inBroadcastPkts,proto3" json:"in_broadcast_pkts,omitempty"`
	InMulticastPkts    uint64 `protobuf:"varint,5,opt,name=in_multicast_pkts,json=inMulticastPkts,proto3" json:"in_multicast_pkts,omitempty"`
	InDiscards         uint64 `protobuf:"varint,6,opt,name=in_discards,json=inDiscards,proto3" json:"in_discards,omitempty"`
	InErrors           uint64 `protobuf:"varint,7,opt,name=in_errors,json=inErrors,proto3" json:"in_errors,omitempty"`
	InUnknownProtos    uint64 `protobuf:"varint,8,opt,name=in_unknown_protos,json=inUnknownProtos,proto3" json:"in_unknown_protos,omitempty"`
	InFcsErrors        uint64 `protobuf:"varint,9,opt,name=in_fcs_errors,json=inFcsErrors,proto3" json:"in_fcs_errors,omitempty"`
	OutOctets          uint64 `protobuf:"varint,10,opt,name=out_octets,json=outOctets,proto3" json:"out_octets,omitempty"`
	OutPackets         uint64 `protobuf:"varint,11,opt,name=out_packets,json=outPackets,proto3" json:"out_packets,omitempty"`
	OutUnicastPkts     uint64 `protobuf:"varint,12,opt,name=out_unicast_pkts,json=outUnicastPkts,proto3" json:"out_unicast_pkts,omitempty"`
	OutBroadcastPkts   uint64 `protobuf:"varint,13,opt,name=out_broadcast_pkts,json=outBroadcastPkts,proto3" json:"out_broadcast_pkts,omitempty"`
	OutMulticastPkts   uint64 `protobuf:"varint,14,opt,name=out_multicast_pkts,json=outMulticastPkts,proto3" json:"out_multicast_pkts,omitempty"`
	OutDiscards        uint64 `protobuf:"varint,15,opt,name=out_discards,json=outDiscards,proto3" json:"out_discards,omitempty"`
	OutErrors          uint64 `protobuf:"varint,16,opt,name=out_errors,json=outErrors,proto3" json:"out_errors,omitempty"`
	CarrierTransitions uint64 `protobuf:"varint,17,opt,name=carrier_transitions,json=carrierTransitions,proto3" json:"carrier_transitions,omitempty"`
	LastClear          uint64 `protobuf:"varint,18,opt,name=last_clear,json=lastClear,proto3" json:"last_clear,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_State_Counters) Descriptor deprecated

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

Deprecated: Use Interface_State_Counters.ProtoReflect.Descriptor instead.

func (*Interface_State_Counters) GetCarrierTransitions

func (x *Interface_State_Counters) GetCarrierTransitions() uint64

func (*Interface_State_Counters) GetInBroadcastPkts

func (x *Interface_State_Counters) GetInBroadcastPkts() uint64

func (*Interface_State_Counters) GetInDiscards

func (x *Interface_State_Counters) GetInDiscards() uint64

func (*Interface_State_Counters) GetInErrors

func (x *Interface_State_Counters) GetInErrors() uint64

func (*Interface_State_Counters) GetInFcsErrors

func (x *Interface_State_Counters) GetInFcsErrors() uint64

func (*Interface_State_Counters) GetInMulticastPkts

func (x *Interface_State_Counters) GetInMulticastPkts() uint64

func (*Interface_State_Counters) GetInOctets

func (x *Interface_State_Counters) GetInOctets() uint64

func (*Interface_State_Counters) GetInPackets

func (x *Interface_State_Counters) GetInPackets() uint64

func (*Interface_State_Counters) GetInUnicastPkts

func (x *Interface_State_Counters) GetInUnicastPkts() uint64

func (*Interface_State_Counters) GetInUnknownProtos

func (x *Interface_State_Counters) GetInUnknownProtos() uint64

func (*Interface_State_Counters) GetLastClear

func (x *Interface_State_Counters) GetLastClear() uint64

func (*Interface_State_Counters) GetOutBroadcastPkts

func (x *Interface_State_Counters) GetOutBroadcastPkts() uint64

func (*Interface_State_Counters) GetOutDiscards

func (x *Interface_State_Counters) GetOutDiscards() uint64

func (*Interface_State_Counters) GetOutErrors

func (x *Interface_State_Counters) GetOutErrors() uint64

func (*Interface_State_Counters) GetOutMulticastPkts

func (x *Interface_State_Counters) GetOutMulticastPkts() uint64

func (*Interface_State_Counters) GetOutOctets

func (x *Interface_State_Counters) GetOutOctets() uint64

func (*Interface_State_Counters) GetOutPackets

func (x *Interface_State_Counters) GetOutPackets() uint64

func (*Interface_State_Counters) GetOutUnicastPkts

func (x *Interface_State_Counters) GetOutUnicastPkts() uint64

func (*Interface_State_Counters) ProtoMessage

func (*Interface_State_Counters) ProtoMessage()

func (*Interface_State_Counters) ProtoReflect

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

func (*Interface_State_Counters) Reset

func (x *Interface_State_Counters) Reset()

func (*Interface_State_Counters) String

func (x *Interface_State_Counters) String() string

type Interface_Subinterfaces

type Interface_Subinterfaces struct {
	Subinterface []*Interface_Subinterfaces_Subinterface `protobuf:"bytes,2,rep,name=subinterface,proto3" json:"subinterface,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_Subinterfaces) Descriptor deprecated

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

Deprecated: Use Interface_Subinterfaces.ProtoReflect.Descriptor instead.

func (*Interface_Subinterfaces) GetSubinterface

func (*Interface_Subinterfaces) ProtoMessage

func (*Interface_Subinterfaces) ProtoMessage()

func (*Interface_Subinterfaces) ProtoReflect

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

func (*Interface_Subinterfaces) Reset

func (x *Interface_Subinterfaces) Reset()

func (*Interface_Subinterfaces) String

func (x *Interface_Subinterfaces) String() string

type Interface_Subinterfaces_Subinterface

type Interface_Subinterfaces_Subinterface struct {
	Index  uint64                                       `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Config *Interface_Subinterfaces_Subinterface_Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	State  *Interface_Subinterfaces_Subinterface_State  `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_Subinterfaces_Subinterface) Descriptor deprecated

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

Deprecated: Use Interface_Subinterfaces_Subinterface.ProtoReflect.Descriptor instead.

func (*Interface_Subinterfaces_Subinterface) GetConfig

func (*Interface_Subinterfaces_Subinterface) GetIndex

func (*Interface_Subinterfaces_Subinterface) GetState

func (*Interface_Subinterfaces_Subinterface) ProtoMessage

func (*Interface_Subinterfaces_Subinterface) ProtoMessage()

func (*Interface_Subinterfaces_Subinterface) ProtoReflect

func (*Interface_Subinterfaces_Subinterface) Reset

func (*Interface_Subinterfaces_Subinterface) String

type Interface_Subinterfaces_Subinterface_Config

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

func (*Interface_Subinterfaces_Subinterface_Config) Descriptor deprecated

Deprecated: Use Interface_Subinterfaces_Subinterface_Config.ProtoReflect.Descriptor instead.

func (*Interface_Subinterfaces_Subinterface_Config) GetDescription

func (*Interface_Subinterfaces_Subinterface_Config) GetEnabled

func (*Interface_Subinterfaces_Subinterface_Config) GetIndex

func (*Interface_Subinterfaces_Subinterface_Config) ProtoMessage

func (*Interface_Subinterfaces_Subinterface_Config) ProtoReflect

func (*Interface_Subinterfaces_Subinterface_Config) Reset

func (*Interface_Subinterfaces_Subinterface_Config) String

type Interface_Subinterfaces_Subinterface_State

type Interface_Subinterfaces_Subinterface_State struct {
	Index       uint32                                               `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Description string                                               `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Enabled     bool                                                 `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Name        string                                               `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Ifindex     uint32                                               `protobuf:"varint,5,opt,name=ifindex,proto3" json:"ifindex,omitempty"`
	AdminStatus InterfaceState                                       `` /* 134-byte string literal not displayed */
	OperStatus  InterfaceState                                       `` /* 131-byte string literal not displayed */
	LastChange  uint64                                               `protobuf:"varint,10,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
	Logical     bool                                                 `protobuf:"varint,11,opt,name=logical,proto3" json:"logical,omitempty"`
	Management  bool                                                 `protobuf:"varint,12,opt,name=management,proto3" json:"management,omitempty"`
	Cpu         bool                                                 `protobuf:"varint,13,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Counters    *Interface_Subinterfaces_Subinterface_State_Counters `protobuf:"bytes,14,opt,name=counters,proto3" json:"counters,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_Subinterfaces_Subinterface_State) Descriptor deprecated

Deprecated: Use Interface_Subinterfaces_Subinterface_State.ProtoReflect.Descriptor instead.

func (*Interface_Subinterfaces_Subinterface_State) GetAdminStatus

func (*Interface_Subinterfaces_Subinterface_State) GetCounters

func (*Interface_Subinterfaces_Subinterface_State) GetCpu

func (*Interface_Subinterfaces_Subinterface_State) GetDescription

func (*Interface_Subinterfaces_Subinterface_State) GetEnabled

func (*Interface_Subinterfaces_Subinterface_State) GetIfindex

func (*Interface_Subinterfaces_Subinterface_State) GetIndex

func (*Interface_Subinterfaces_Subinterface_State) GetLastChange

func (*Interface_Subinterfaces_Subinterface_State) GetLogical

func (*Interface_Subinterfaces_Subinterface_State) GetManagement

func (*Interface_Subinterfaces_Subinterface_State) GetName

func (*Interface_Subinterfaces_Subinterface_State) GetOperStatus

func (*Interface_Subinterfaces_Subinterface_State) ProtoMessage

func (*Interface_Subinterfaces_Subinterface_State) ProtoReflect

func (*Interface_Subinterfaces_Subinterface_State) Reset

func (*Interface_Subinterfaces_Subinterface_State) String

type Interface_Subinterfaces_Subinterface_State_Counters

type Interface_Subinterfaces_Subinterface_State_Counters struct {
	InOctets           uint64 `protobuf:"varint,1,opt,name=in_octets,json=inOctets,proto3" json:"in_octets,omitempty"`
	InPackets          uint64 `protobuf:"varint,2,opt,name=in_packets,json=inPackets,proto3" json:"in_packets,omitempty"`
	InUnicastPkts      uint64 `protobuf:"varint,3,opt,name=in_unicast_pkts,json=inUnicastPkts,proto3" json:"in_unicast_pkts,omitempty"`
	InBroadcastPkts    uint64 `protobuf:"varint,4,opt,name=in_broadcast_pkts,json=inBroadcastPkts,proto3" json:"in_broadcast_pkts,omitempty"`
	InMulticastPkts    uint64 `protobuf:"varint,5,opt,name=in_multicast_pkts,json=inMulticastPkts,proto3" json:"in_multicast_pkts,omitempty"`
	InDiscards         uint64 `protobuf:"varint,6,opt,name=in_discards,json=inDiscards,proto3" json:"in_discards,omitempty"`
	InErrors           uint64 `protobuf:"varint,7,opt,name=in_errors,json=inErrors,proto3" json:"in_errors,omitempty"`
	InUnknownProtos    uint64 `protobuf:"varint,8,opt,name=in_unknown_protos,json=inUnknownProtos,proto3" json:"in_unknown_protos,omitempty"`
	InFcsErrors        uint64 `protobuf:"varint,9,opt,name=in_fcs_errors,json=inFcsErrors,proto3" json:"in_fcs_errors,omitempty"`
	OutOctets          uint64 `protobuf:"varint,10,opt,name=out_octets,json=outOctets,proto3" json:"out_octets,omitempty"`
	OutPackets         uint64 `protobuf:"varint,11,opt,name=out_packets,json=outPackets,proto3" json:"out_packets,omitempty"`
	OutUnicastPkts     uint64 `protobuf:"varint,12,opt,name=out_unicast_pkts,json=outUnicastPkts,proto3" json:"out_unicast_pkts,omitempty"`
	OutBroadcastPkts   uint64 `protobuf:"varint,13,opt,name=out_broadcast_pkts,json=outBroadcastPkts,proto3" json:"out_broadcast_pkts,omitempty"`
	OutMulticastPkts   uint64 `protobuf:"varint,14,opt,name=out_multicast_pkts,json=outMulticastPkts,proto3" json:"out_multicast_pkts,omitempty"`
	OutDiscards        uint64 `protobuf:"varint,15,opt,name=out_discards,json=outDiscards,proto3" json:"out_discards,omitempty"`
	OutErrors          uint64 `protobuf:"varint,16,opt,name=out_errors,json=outErrors,proto3" json:"out_errors,omitempty"`
	CarrierTransitions uint64 `protobuf:"varint,17,opt,name=carrier_transitions,json=carrierTransitions,proto3" json:"carrier_transitions,omitempty"`
	LastClear          uint64 `protobuf:"varint,18,opt,name=last_clear,json=lastClear,proto3" json:"last_clear,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_Subinterfaces_Subinterface_State_Counters) Descriptor deprecated

Deprecated: Use Interface_Subinterfaces_Subinterface_State_Counters.ProtoReflect.Descriptor instead.

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetCarrierTransitions

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInBroadcastPkts

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInDiscards

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInErrors

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInFcsErrors

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInMulticastPkts

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInOctets

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInPackets

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInUnicastPkts

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetInUnknownProtos

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetLastClear

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetOutBroadcastPkts

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetOutDiscards

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetOutErrors

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetOutMulticastPkts

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetOutOctets

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetOutPackets

func (*Interface_Subinterfaces_Subinterface_State_Counters) GetOutUnicastPkts

func (*Interface_Subinterfaces_Subinterface_State_Counters) ProtoMessage

func (*Interface_Subinterfaces_Subinterface_State_Counters) ProtoReflect

func (*Interface_Subinterfaces_Subinterface_State_Counters) Reset

func (*Interface_Subinterfaces_Subinterface_State_Counters) String

type Interfaces

type Interfaces struct {
	Interface []*Interface `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"`
	// contains filtered or unexported fields
}

func (*Interfaces) Descriptor deprecated

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

Deprecated: Use Interfaces.ProtoReflect.Descriptor instead.

func (*Interfaces) GetInterface

func (x *Interfaces) GetInterface() []*Interface

func (*Interfaces) ProtoMessage

func (*Interfaces) ProtoMessage()

func (*Interfaces) ProtoReflect

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

func (*Interfaces) Reset

func (x *Interfaces) Reset()

func (*Interfaces) String

func (x *Interfaces) String() string

type NetInterfaceClient

type NetInterfaceClient interface {
	// Retrieves the interface information for a given interface
	NetInterfaceGet(ctx context.Context, in *NetInterfaceGetRequest, opts ...grpc.CallOption) (*NetInterfaceGetResponse, error)
	// Retrieves the set of interfaces on the device
	NetInterfaceList(ctx context.Context, in *NetInterfaceListRequest, opts ...grpc.CallOption) (*NetInterfaceListResponse, error)
	// A method for setting or changing configuration of an interface
	NetInterfaceUpdate(ctx context.Context, in *NetInterfaceUpdateRequest, opts ...grpc.CallOption) (*NetInterfaceUpdateResponse, error)
}

NetInterfaceClient is the client API for NetInterface service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type NetInterfaceGetRequest

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

func (*NetInterfaceGetRequest) Descriptor deprecated

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

Deprecated: Use NetInterfaceGetRequest.ProtoReflect.Descriptor instead.

func (*NetInterfaceGetRequest) GetName

func (x *NetInterfaceGetRequest) GetName() string

func (*NetInterfaceGetRequest) ProtoMessage

func (*NetInterfaceGetRequest) ProtoMessage()

func (*NetInterfaceGetRequest) ProtoReflect

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

func (*NetInterfaceGetRequest) Reset

func (x *NetInterfaceGetRequest) Reset()

func (*NetInterfaceGetRequest) String

func (x *NetInterfaceGetRequest) String() string

type NetInterfaceGetResponse

type NetInterfaceGetResponse struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
	// contains filtered or unexported fields
}

func (*NetInterfaceGetResponse) Descriptor deprecated

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

Deprecated: Use NetInterfaceGetResponse.ProtoReflect.Descriptor instead.

func (*NetInterfaceGetResponse) GetInterface

func (x *NetInterfaceGetResponse) GetInterface() *Interface

func (*NetInterfaceGetResponse) ProtoMessage

func (*NetInterfaceGetResponse) ProtoMessage()

func (*NetInterfaceGetResponse) ProtoReflect

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

func (*NetInterfaceGetResponse) Reset

func (x *NetInterfaceGetResponse) Reset()

func (*NetInterfaceGetResponse) String

func (x *NetInterfaceGetResponse) String() string

type NetInterfaceListRequest

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

func (*NetInterfaceListRequest) Descriptor deprecated

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

Deprecated: Use NetInterfaceListRequest.ProtoReflect.Descriptor instead.

func (*NetInterfaceListRequest) ProtoMessage

func (*NetInterfaceListRequest) ProtoMessage()

func (*NetInterfaceListRequest) ProtoReflect

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

func (*NetInterfaceListRequest) Reset

func (x *NetInterfaceListRequest) Reset()

func (*NetInterfaceListRequest) String

func (x *NetInterfaceListRequest) String() string

type NetInterfaceListResponse

type NetInterfaceListResponse struct {
	Interface []*Interface `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"`
	// contains filtered or unexported fields
}

func (*NetInterfaceListResponse) Descriptor deprecated

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

Deprecated: Use NetInterfaceListResponse.ProtoReflect.Descriptor instead.

func (*NetInterfaceListResponse) GetInterface

func (x *NetInterfaceListResponse) GetInterface() []*Interface

func (*NetInterfaceListResponse) ProtoMessage

func (*NetInterfaceListResponse) ProtoMessage()

func (*NetInterfaceListResponse) ProtoReflect

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

func (*NetInterfaceListResponse) Reset

func (x *NetInterfaceListResponse) Reset()

func (*NetInterfaceListResponse) String

func (x *NetInterfaceListResponse) String() string

type NetInterfaceServer

type NetInterfaceServer interface {
	// Retrieves the interface information for a given interface
	NetInterfaceGet(context.Context, *NetInterfaceGetRequest) (*NetInterfaceGetResponse, error)
	// Retrieves the set of interfaces on the device
	NetInterfaceList(context.Context, *NetInterfaceListRequest) (*NetInterfaceListResponse, error)
	// A method for setting or changing configuration of an interface
	NetInterfaceUpdate(context.Context, *NetInterfaceUpdateRequest) (*NetInterfaceUpdateResponse, error)
}

NetInterfaceServer is the server API for NetInterface service.

type NetInterfaceUpdateRequest

type NetInterfaceUpdateRequest struct {
	Interface *Interface `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
	// contains filtered or unexported fields
}

func (*NetInterfaceUpdateRequest) Descriptor deprecated

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

Deprecated: Use NetInterfaceUpdateRequest.ProtoReflect.Descriptor instead.

func (*NetInterfaceUpdateRequest) GetInterface

func (x *NetInterfaceUpdateRequest) GetInterface() *Interface

func (*NetInterfaceUpdateRequest) ProtoMessage

func (*NetInterfaceUpdateRequest) ProtoMessage()

func (*NetInterfaceUpdateRequest) ProtoReflect

func (*NetInterfaceUpdateRequest) Reset

func (x *NetInterfaceUpdateRequest) Reset()

func (*NetInterfaceUpdateRequest) String

func (x *NetInterfaceUpdateRequest) String() string

type NetInterfaceUpdateResponse

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

func (*NetInterfaceUpdateResponse) Descriptor deprecated

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

Deprecated: Use NetInterfaceUpdateResponse.ProtoReflect.Descriptor instead.

func (*NetInterfaceUpdateResponse) GetResult

func (x *NetInterfaceUpdateResponse) GetResult() uint32

func (*NetInterfaceUpdateResponse) ProtoMessage

func (*NetInterfaceUpdateResponse) ProtoMessage()

func (*NetInterfaceUpdateResponse) ProtoReflect

func (*NetInterfaceUpdateResponse) Reset

func (x *NetInterfaceUpdateResponse) Reset()

func (*NetInterfaceUpdateResponse) String

func (x *NetInterfaceUpdateResponse) String() string

type UnimplementedNetInterfaceServer

type UnimplementedNetInterfaceServer struct {
}

UnimplementedNetInterfaceServer can be embedded to have forward compatible implementations.

func (*UnimplementedNetInterfaceServer) NetInterfaceGet

func (*UnimplementedNetInterfaceServer) NetInterfaceList

func (*UnimplementedNetInterfaceServer) NetInterfaceUpdate

Jump to

Keyboard shortcuts

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