interfaces

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package interfaces is a generated protocol buffer package.

It is generated from these files:

interfaces.proto

It has these top-level messages:

Interfaces
InterfacesState
InterfaceNotification
InterfaceErrors

Index

Constants

View Source
const (
	// InterfacePrefix vpp/config/v1/interface/
	InterfacePrefix = "vpp/config/v1/interface/"
	// IfStatePrefix vpp/status/v1/interface/
	IfStatePrefix = "vpp/status/v1/interface/"
	// IfErrorPrefix vpp/status/v1/interface/error
	IfErrorPrefix = "vpp/status/v1/interface/error/"
)

Variables

View Source
var InterfaceNotification_NotifType_name = map[int32]string{
	0: "UNKNOWN",
	1: "UPDOWN",
	2: "COUNTERS",
}
View Source
var InterfaceNotification_NotifType_value = map[string]int32{
	"UNKNOWN":  0,
	"UPDOWN":   1,
	"COUNTERS": 2,
}
View Source
var InterfaceType_name = map[int32]string{
	0: "SOFTWARE_LOOPBACK",
	1: "ETHERNET_CSMACD",
	2: "MEMORY_INTERFACE",
	3: "TAP_INTERFACE",
	4: "AF_PACKET_INTERFACE",
	5: "VXLAN_TUNNEL",
}
View Source
var InterfaceType_value = map[string]int32{
	"SOFTWARE_LOOPBACK":   0,
	"ETHERNET_CSMACD":     1,
	"MEMORY_INTERFACE":    2,
	"TAP_INTERFACE":       3,
	"AF_PACKET_INTERFACE": 4,
	"VXLAN_TUNNEL":        5,
}
View Source
var InterfacesState_Interface_Duplex_name = map[int32]string{
	0: "UNKNOWN_DUPLEX",
	1: "HALF",
	2: "FULL",
}
View Source
var InterfacesState_Interface_Duplex_value = map[string]int32{
	"UNKNOWN_DUPLEX": 0,
	"HALF":           1,
	"FULL":           2,
}
View Source
var InterfacesState_Interface_Status_name = map[int32]string{
	0: "UNKNOWN_STATUS",
	1: "UP",
	2: "DOWN",
	3: "DELETED",
}
View Source
var InterfacesState_Interface_Status_value = map[string]int32{
	"UNKNOWN_STATUS": 0,
	"UP":             1,
	"DOWN":           2,
	"DELETED":        3,
}
View Source
var Interfaces_Interface_Memif_MemifMode_name = map[int32]string{
	0: "ETHERNET",
	1: "IP",
	2: "PUNT_INJECT",
}
View Source
var Interfaces_Interface_Memif_MemifMode_value = map[string]int32{
	"ETHERNET":    0,
	"IP":          1,
	"PUNT_INJECT": 2,
}
View Source
var RxModeType_name = map[int32]string{
	0: "UNKNOWN",
	1: "POLLING",
	2: "INTERRUPT",
	3: "ADAPTIVE",
	4: "DEFAULT",
}
View Source
var RxModeType_value = map[string]int32{
	"UNKNOWN":   0,
	"POLLING":   1,
	"INTERRUPT": 2,
	"ADAPTIVE":  3,
	"DEFAULT":   4,
}

Functions

func InterfaceErrorKey

func InterfaceErrorKey(ifaceLabel string) string

InterfaceErrorKey returns the key used in ETCD to store the interface errors.

func InterfaceErrorPrefix

func InterfaceErrorPrefix() string

InterfaceErrorPrefix returns the prefix used in ETCD to store the interface errors.

func InterfaceKey

func InterfaceKey(ifaceLabel string) string

InterfaceKey returns the prefix used in ETCD to store the vpp interface config of a particular interface in selected vpp instance.

func InterfaceKeyPrefix

func InterfaceKeyPrefix() string

InterfaceKeyPrefix returns the prefix used in ETCD to store vpp interfaces config.

func InterfaceStateKey

func InterfaceStateKey(ifaceLabel string) string

InterfaceStateKey returns the prefix used in ETCD to store the vpp interface state data of particular interface in selected vpp instance.

func InterfaceStateKeyPrefix

func InterfaceStateKeyPrefix() string

InterfaceStateKeyPrefix returns the prefix used in ETCD to store the vpp interfaces state data.

func ParseNameFromKey

func ParseNameFromKey(key string) (name string, err error)

ParseNameFromKey returns suffix of the key.

Types

type InterfaceErrors

type InterfaceErrors struct {
	Interfaces []*InterfaceErrors_Interface `protobuf:"bytes,1,rep,name=interfaces" json:"interfaces,omitempty"`
}

func (*InterfaceErrors) Descriptor

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

func (*InterfaceErrors) GetInterfaces

func (m *InterfaceErrors) GetInterfaces() []*InterfaceErrors_Interface

func (*InterfaceErrors) ProtoMessage

func (*InterfaceErrors) ProtoMessage()

func (*InterfaceErrors) Reset

func (m *InterfaceErrors) Reset()

func (*InterfaceErrors) String

func (m *InterfaceErrors) String() string

type InterfaceErrors_Interface

type InterfaceErrors_Interface struct {
	InterfaceName string                                 `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
	ErrorData     []*InterfaceErrors_Interface_ErrorData `protobuf:"bytes,2,rep,name=error_data,json=errorData" json:"error_data,omitempty"`
}

func (*InterfaceErrors_Interface) Descriptor

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

func (*InterfaceErrors_Interface) GetErrorData

func (*InterfaceErrors_Interface) GetInterfaceName

func (m *InterfaceErrors_Interface) GetInterfaceName() string

func (*InterfaceErrors_Interface) ProtoMessage

func (*InterfaceErrors_Interface) ProtoMessage()

func (*InterfaceErrors_Interface) Reset

func (m *InterfaceErrors_Interface) Reset()

func (*InterfaceErrors_Interface) String

func (m *InterfaceErrors_Interface) String() string

type InterfaceErrors_Interface_ErrorData

type InterfaceErrors_Interface_ErrorData struct {
	ChangeType   string `protobuf:"bytes,1,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	LastChange   int64  `protobuf:"varint,3,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
}

func (*InterfaceErrors_Interface_ErrorData) Descriptor

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

func (*InterfaceErrors_Interface_ErrorData) GetChangeType

func (m *InterfaceErrors_Interface_ErrorData) GetChangeType() string

func (*InterfaceErrors_Interface_ErrorData) GetErrorMessage

func (m *InterfaceErrors_Interface_ErrorData) GetErrorMessage() string

func (*InterfaceErrors_Interface_ErrorData) GetLastChange

func (m *InterfaceErrors_Interface_ErrorData) GetLastChange() int64

func (*InterfaceErrors_Interface_ErrorData) ProtoMessage

func (*InterfaceErrors_Interface_ErrorData) ProtoMessage()

func (*InterfaceErrors_Interface_ErrorData) Reset

func (*InterfaceErrors_Interface_ErrorData) String

type InterfaceNotification

type InterfaceNotification struct {
	Type  InterfaceNotification_NotifType `protobuf:"varint,1,opt,name=Type,json=type,proto3,enum=interfaces.InterfaceNotification_NotifType" json:"Type,omitempty"`
	State *InterfacesState_Interface      `protobuf:"bytes,2,opt,name=state" json:"state,omitempty"`
}

func (*InterfaceNotification) Descriptor

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

func (*InterfaceNotification) GetState

func (*InterfaceNotification) GetType

func (*InterfaceNotification) ProtoMessage

func (*InterfaceNotification) ProtoMessage()

func (*InterfaceNotification) Reset

func (m *InterfaceNotification) Reset()

func (*InterfaceNotification) String

func (m *InterfaceNotification) String() string

type InterfaceNotification_NotifType

type InterfaceNotification_NotifType int32
const (
	InterfaceNotification_UNKNOWN  InterfaceNotification_NotifType = 0
	InterfaceNotification_UPDOWN   InterfaceNotification_NotifType = 1
	InterfaceNotification_COUNTERS InterfaceNotification_NotifType = 2
)

func (InterfaceNotification_NotifType) EnumDescriptor

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

func (InterfaceNotification_NotifType) String

type InterfaceType

type InterfaceType int32
const (
	InterfaceType_SOFTWARE_LOOPBACK   InterfaceType = 0
	InterfaceType_ETHERNET_CSMACD     InterfaceType = 1
	InterfaceType_MEMORY_INTERFACE    InterfaceType = 2
	InterfaceType_TAP_INTERFACE       InterfaceType = 3
	InterfaceType_AF_PACKET_INTERFACE InterfaceType = 4
	InterfaceType_VXLAN_TUNNEL        InterfaceType = 5
)

func (InterfaceType) EnumDescriptor

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

func (InterfaceType) String

func (x InterfaceType) String() string

type Interfaces

type Interfaces struct {
	Interfaces []*Interfaces_Interface `protobuf:"bytes,1,rep,name=interfaces" json:"interfaces,omitempty"`
}

func (*Interfaces) Descriptor

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

func (*Interfaces) GetInterfaces

func (m *Interfaces) GetInterfaces() []*Interfaces_Interface

func (*Interfaces) ProtoMessage

func (*Interfaces) ProtoMessage()

func (*Interfaces) Reset

func (m *Interfaces) Reset()

func (*Interfaces) String

func (m *Interfaces) String() string

type InterfacesState

type InterfacesState struct {
	Interfaces []*InterfacesState_Interface `protobuf:"bytes,1,rep,name=interfaces" json:"interfaces,omitempty"`
}

func (*InterfacesState) Descriptor

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

func (*InterfacesState) GetInterfaces

func (m *InterfacesState) GetInterfaces() []*InterfacesState_Interface

func (*InterfacesState) ProtoMessage

func (*InterfacesState) ProtoMessage()

func (*InterfacesState) Reset

func (m *InterfacesState) Reset()

func (*InterfacesState) String

func (m *InterfacesState) String() string

type InterfacesState_Interface

type InterfacesState_Interface struct {
	Name         string                                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	InternalName string                                `protobuf:"bytes,2,opt,name=internal_name,json=internalName,proto3" json:"internal_name,omitempty"`
	Type         InterfaceType                         `protobuf:"varint,3,opt,name=type,proto3,enum=interfaces.InterfaceType" json:"type,omitempty"`
	IfIndex      uint32                                `protobuf:"varint,4,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"`
	AdminStatus  InterfacesState_Interface_Status      `` /* 144-byte string literal not displayed */
	OperStatus   InterfacesState_Interface_Status      `` /* 141-byte string literal not displayed */
	LastChange   int64                                 `protobuf:"varint,7,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
	PhysAddress  string                                `protobuf:"bytes,8,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
	Speed        uint64                                `protobuf:"varint,9,opt,name=speed,proto3" json:"speed,omitempty"`
	Mtu          uint32                                `protobuf:"varint,10,opt,name=mtu,proto3" json:"mtu,omitempty"`
	Duplex       InterfacesState_Interface_Duplex      `protobuf:"varint,11,opt,name=duplex,proto3,enum=interfaces.InterfacesState_Interface_Duplex" json:"duplex,omitempty"`
	Statistics   *InterfacesState_Interface_Statistics `protobuf:"bytes,100,opt,name=statistics" json:"statistics,omitempty"`
}

func (*InterfacesState_Interface) Descriptor

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

func (*InterfacesState_Interface) GetAdminStatus

func (*InterfacesState_Interface) GetDuplex

func (*InterfacesState_Interface) GetIfIndex

func (m *InterfacesState_Interface) GetIfIndex() uint32

func (*InterfacesState_Interface) GetInternalName

func (m *InterfacesState_Interface) GetInternalName() string

func (*InterfacesState_Interface) GetLastChange

func (m *InterfacesState_Interface) GetLastChange() int64

func (*InterfacesState_Interface) GetMtu

func (m *InterfacesState_Interface) GetMtu() uint32

func (*InterfacesState_Interface) GetName

func (m *InterfacesState_Interface) GetName() string

func (*InterfacesState_Interface) GetOperStatus

func (*InterfacesState_Interface) GetPhysAddress

func (m *InterfacesState_Interface) GetPhysAddress() string

func (*InterfacesState_Interface) GetSpeed

func (m *InterfacesState_Interface) GetSpeed() uint64

func (*InterfacesState_Interface) GetStatistics

func (*InterfacesState_Interface) GetType

func (*InterfacesState_Interface) ProtoMessage

func (*InterfacesState_Interface) ProtoMessage()

func (*InterfacesState_Interface) Reset

func (m *InterfacesState_Interface) Reset()

func (*InterfacesState_Interface) String

func (m *InterfacesState_Interface) String() string

type InterfacesState_Interface_Duplex

type InterfacesState_Interface_Duplex int32
const (
	InterfacesState_Interface_UNKNOWN_DUPLEX InterfacesState_Interface_Duplex = 0
	InterfacesState_Interface_HALF           InterfacesState_Interface_Duplex = 1
	InterfacesState_Interface_FULL           InterfacesState_Interface_Duplex = 2
)

func (InterfacesState_Interface_Duplex) EnumDescriptor

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

func (InterfacesState_Interface_Duplex) String

type InterfacesState_Interface_Statistics

type InterfacesState_Interface_Statistics struct {
	InPackets       uint64 `protobuf:"varint,1,opt,name=in_packets,json=inPackets,proto3" json:"in_packets,omitempty"`
	InBytes         uint64 `protobuf:"varint,2,opt,name=in_bytes,json=inBytes,proto3" json:"in_bytes,omitempty"`
	OutPackets      uint64 `protobuf:"varint,3,opt,name=out_packets,json=outPackets,proto3" json:"out_packets,omitempty"`
	OutBytes        uint64 `protobuf:"varint,4,opt,name=out_bytes,json=outBytes,proto3" json:"out_bytes,omitempty"`
	DropPackets     uint64 `protobuf:"varint,5,opt,name=drop_packets,json=dropPackets,proto3" json:"drop_packets,omitempty"`
	PuntPackets     uint64 `protobuf:"varint,6,opt,name=punt_packets,json=puntPackets,proto3" json:"punt_packets,omitempty"`
	Ipv4Packets     uint64 `protobuf:"varint,7,opt,name=ipv4_packets,json=ipv4Packets,proto3" json:"ipv4_packets,omitempty"`
	Ipv6Packets     uint64 `protobuf:"varint,8,opt,name=ipv6_packets,json=ipv6Packets,proto3" json:"ipv6_packets,omitempty"`
	InNobufPackets  uint64 `protobuf:"varint,9,opt,name=in_nobuf_packets,json=inNobufPackets,proto3" json:"in_nobuf_packets,omitempty"`
	InMissPackets   uint64 `protobuf:"varint,10,opt,name=in_miss_packets,json=inMissPackets,proto3" json:"in_miss_packets,omitempty"`
	InErrorPackets  uint64 `protobuf:"varint,11,opt,name=in_error_packets,json=inErrorPackets,proto3" json:"in_error_packets,omitempty"`
	OutErrorPackets uint64 `protobuf:"varint,12,opt,name=out_error_packets,json=outErrorPackets,proto3" json:"out_error_packets,omitempty"`
}

func (*InterfacesState_Interface_Statistics) Descriptor

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

func (*InterfacesState_Interface_Statistics) GetDropPackets

func (m *InterfacesState_Interface_Statistics) GetDropPackets() uint64

func (*InterfacesState_Interface_Statistics) GetInBytes

func (*InterfacesState_Interface_Statistics) GetInErrorPackets

func (m *InterfacesState_Interface_Statistics) GetInErrorPackets() uint64

func (*InterfacesState_Interface_Statistics) GetInMissPackets

func (m *InterfacesState_Interface_Statistics) GetInMissPackets() uint64

func (*InterfacesState_Interface_Statistics) GetInNobufPackets

func (m *InterfacesState_Interface_Statistics) GetInNobufPackets() uint64

func (*InterfacesState_Interface_Statistics) GetInPackets

func (m *InterfacesState_Interface_Statistics) GetInPackets() uint64

func (*InterfacesState_Interface_Statistics) GetIpv4Packets

func (m *InterfacesState_Interface_Statistics) GetIpv4Packets() uint64

func (*InterfacesState_Interface_Statistics) GetIpv6Packets

func (m *InterfacesState_Interface_Statistics) GetIpv6Packets() uint64

func (*InterfacesState_Interface_Statistics) GetOutBytes

func (*InterfacesState_Interface_Statistics) GetOutErrorPackets

func (m *InterfacesState_Interface_Statistics) GetOutErrorPackets() uint64

func (*InterfacesState_Interface_Statistics) GetOutPackets

func (m *InterfacesState_Interface_Statistics) GetOutPackets() uint64

func (*InterfacesState_Interface_Statistics) GetPuntPackets

func (m *InterfacesState_Interface_Statistics) GetPuntPackets() uint64

func (*InterfacesState_Interface_Statistics) ProtoMessage

func (*InterfacesState_Interface_Statistics) ProtoMessage()

func (*InterfacesState_Interface_Statistics) Reset

func (*InterfacesState_Interface_Statistics) String

type InterfacesState_Interface_Status

type InterfacesState_Interface_Status int32
const (
	InterfacesState_Interface_UNKNOWN_STATUS InterfacesState_Interface_Status = 0
	InterfacesState_Interface_UP             InterfacesState_Interface_Status = 1
	InterfacesState_Interface_DOWN           InterfacesState_Interface_Status = 2
	InterfacesState_Interface_DELETED        InterfacesState_Interface_Status = 3
)

func (InterfacesState_Interface_Status) EnumDescriptor

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

func (InterfacesState_Interface_Status) String

type Interfaces_Interface

type Interfaces_Interface struct {
	Name               string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description        string        `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Type               InterfaceType `protobuf:"varint,3,opt,name=type,proto3,enum=interfaces.InterfaceType" json:"type,omitempty"`
	Enabled            bool          `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	PhysAddress        string        `protobuf:"bytes,5,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
	Mtu                uint32        `protobuf:"varint,6,opt,name=mtu,proto3" json:"mtu,omitempty"`
	Vrf                uint32        `protobuf:"varint,7,opt,name=vrf,proto3" json:"vrf,omitempty"`
	ContainerIpAddress string        `protobuf:"bytes,8,opt,name=container_ip_address,json=containerIpAddress,proto3" json:"container_ip_address,omitempty"`
	SetDhcpClient      bool          `protobuf:"varint,9,opt,name=set_dhcp_client,json=setDhcpClient,proto3" json:"set_dhcp_client,omitempty"`
	// Required format is "ipAddress/ipPrefix"
	IpAddresses         []string                                  `protobuf:"bytes,10,rep,name=ip_addresses,json=ipAddresses" json:"ip_addresses,omitempty"`
	Unnumbered          *Interfaces_Interface_Unnumbered          `protobuf:"bytes,11,opt,name=unnumbered" json:"unnumbered,omitempty"`
	RxModeSettings      *Interfaces_Interface_RxModeSettings      `protobuf:"bytes,12,opt,name=rx_mode_settings,json=rxModeSettings" json:"rx_mode_settings,omitempty"`
	RxPlacementSettings *Interfaces_Interface_RxPlacementSettings `protobuf:"bytes,13,opt,name=rx_placement_settings,json=rxPlacementSettings" json:"rx_placement_settings,omitempty"`
	Memif               *Interfaces_Interface_Memif               `protobuf:"bytes,101,opt,name=memif" json:"memif,omitempty"`
	Vxlan               *Interfaces_Interface_Vxlan               `protobuf:"bytes,102,opt,name=vxlan" json:"vxlan,omitempty"`
	Afpacket            *Interfaces_Interface_Afpacket            `protobuf:"bytes,103,opt,name=afpacket" json:"afpacket,omitempty"`
	Tap                 *Interfaces_Interface_Tap                 `protobuf:"bytes,104,opt,name=tap" json:"tap,omitempty"`
}

func (*Interfaces_Interface) Descriptor

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

func (*Interfaces_Interface) GetAfpacket

func (*Interfaces_Interface) GetContainerIpAddress

func (m *Interfaces_Interface) GetContainerIpAddress() string

func (*Interfaces_Interface) GetDescription

func (m *Interfaces_Interface) GetDescription() string

func (*Interfaces_Interface) GetEnabled

func (m *Interfaces_Interface) GetEnabled() bool

func (*Interfaces_Interface) GetIpAddresses

func (m *Interfaces_Interface) GetIpAddresses() []string

func (*Interfaces_Interface) GetMemif

func (*Interfaces_Interface) GetMtu

func (m *Interfaces_Interface) GetMtu() uint32

func (*Interfaces_Interface) GetName

func (m *Interfaces_Interface) GetName() string

func (*Interfaces_Interface) GetPhysAddress

func (m *Interfaces_Interface) GetPhysAddress() string

func (*Interfaces_Interface) GetRxModeSettings

func (*Interfaces_Interface) GetRxPlacementSettings

func (*Interfaces_Interface) GetSetDhcpClient

func (m *Interfaces_Interface) GetSetDhcpClient() bool

func (*Interfaces_Interface) GetTap

func (*Interfaces_Interface) GetType

func (m *Interfaces_Interface) GetType() InterfaceType

func (*Interfaces_Interface) GetUnnumbered

func (*Interfaces_Interface) GetVrf

func (m *Interfaces_Interface) GetVrf() uint32

func (*Interfaces_Interface) GetVxlan

func (*Interfaces_Interface) ProtoMessage

func (*Interfaces_Interface) ProtoMessage()

func (*Interfaces_Interface) Reset

func (m *Interfaces_Interface) Reset()

func (*Interfaces_Interface) String

func (m *Interfaces_Interface) String() string

type Interfaces_Interface_Afpacket

type Interfaces_Interface_Afpacket struct {
	HostIfName string `protobuf:"bytes,1,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"`
}

func (*Interfaces_Interface_Afpacket) Descriptor

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

func (*Interfaces_Interface_Afpacket) GetHostIfName

func (m *Interfaces_Interface_Afpacket) GetHostIfName() string

func (*Interfaces_Interface_Afpacket) ProtoMessage

func (*Interfaces_Interface_Afpacket) ProtoMessage()

func (*Interfaces_Interface_Afpacket) Reset

func (m *Interfaces_Interface_Afpacket) Reset()

func (*Interfaces_Interface_Afpacket) String

type Interfaces_Interface_Memif

type Interfaces_Interface_Memif struct {
	Master         bool                                 `protobuf:"varint,1,opt,name=master,proto3" json:"master,omitempty"`
	Mode           Interfaces_Interface_Memif_MemifMode `protobuf:"varint,2,opt,name=mode,proto3,enum=interfaces.Interfaces_Interface_Memif_MemifMode" json:"mode,omitempty"`
	Id             uint32                               `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	SocketFilename string                               `protobuf:"bytes,4,opt,name=socket_filename,json=socketFilename,proto3" json:"socket_filename,omitempty"`
	Secret         string                               `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
	RingSize       uint32                               `protobuf:"varint,6,opt,name=ring_size,json=ringSize,proto3" json:"ring_size,omitempty"`
	BufferSize     uint32                               `protobuf:"varint,7,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"`
	RxQueues       uint32                               `protobuf:"varint,8,opt,name=rx_queues,json=rxQueues,proto3" json:"rx_queues,omitempty"`
	TxQueues       uint32                               `protobuf:"varint,9,opt,name=tx_queues,json=txQueues,proto3" json:"tx_queues,omitempty"`
}

func (*Interfaces_Interface_Memif) Descriptor

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

func (*Interfaces_Interface_Memif) GetBufferSize

func (m *Interfaces_Interface_Memif) GetBufferSize() uint32

func (*Interfaces_Interface_Memif) GetId

func (*Interfaces_Interface_Memif) GetMaster

func (m *Interfaces_Interface_Memif) GetMaster() bool

func (*Interfaces_Interface_Memif) GetMode

func (*Interfaces_Interface_Memif) GetRingSize

func (m *Interfaces_Interface_Memif) GetRingSize() uint32

func (*Interfaces_Interface_Memif) GetRxQueues

func (m *Interfaces_Interface_Memif) GetRxQueues() uint32

func (*Interfaces_Interface_Memif) GetSecret

func (m *Interfaces_Interface_Memif) GetSecret() string

func (*Interfaces_Interface_Memif) GetSocketFilename

func (m *Interfaces_Interface_Memif) GetSocketFilename() string

func (*Interfaces_Interface_Memif) GetTxQueues

func (m *Interfaces_Interface_Memif) GetTxQueues() uint32

func (*Interfaces_Interface_Memif) ProtoMessage

func (*Interfaces_Interface_Memif) ProtoMessage()

func (*Interfaces_Interface_Memif) Reset

func (m *Interfaces_Interface_Memif) Reset()

func (*Interfaces_Interface_Memif) String

func (m *Interfaces_Interface_Memif) String() string

type Interfaces_Interface_Memif_MemifMode

type Interfaces_Interface_Memif_MemifMode int32
const (
	Interfaces_Interface_Memif_ETHERNET    Interfaces_Interface_Memif_MemifMode = 0
	Interfaces_Interface_Memif_IP          Interfaces_Interface_Memif_MemifMode = 1
	Interfaces_Interface_Memif_PUNT_INJECT Interfaces_Interface_Memif_MemifMode = 2
)

func (Interfaces_Interface_Memif_MemifMode) EnumDescriptor

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

func (Interfaces_Interface_Memif_MemifMode) String

type Interfaces_Interface_RxModeSettings

type Interfaces_Interface_RxModeSettings struct {
	RxMode       RxModeType `protobuf:"varint,1,opt,name=rx_mode,json=rxMode,proto3,enum=interfaces.RxModeType" json:"rx_mode,omitempty"`
	QueueId      uint32     `protobuf:"varint,2,opt,name=queue_id,json=queueId,proto3" json:"queue_id,omitempty"`
	QueueIdValid uint32     `protobuf:"varint,3,opt,name=queue_id_valid,json=queueIdValid,proto3" json:"queue_id_valid,omitempty"`
}

func (*Interfaces_Interface_RxModeSettings) Descriptor

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

func (*Interfaces_Interface_RxModeSettings) GetQueueId

func (*Interfaces_Interface_RxModeSettings) GetQueueIdValid

func (m *Interfaces_Interface_RxModeSettings) GetQueueIdValid() uint32

func (*Interfaces_Interface_RxModeSettings) GetRxMode

func (*Interfaces_Interface_RxModeSettings) ProtoMessage

func (*Interfaces_Interface_RxModeSettings) ProtoMessage()

func (*Interfaces_Interface_RxModeSettings) Reset

func (*Interfaces_Interface_RxModeSettings) String

type Interfaces_Interface_RxPlacementSettings

type Interfaces_Interface_RxPlacementSettings struct {
	Queue  uint32 `protobuf:"varint,1,opt,name=queue,proto3" json:"queue,omitempty"`
	Worker uint32 `protobuf:"varint,2,opt,name=worker,proto3" json:"worker,omitempty"`
}

func (*Interfaces_Interface_RxPlacementSettings) Descriptor

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

func (*Interfaces_Interface_RxPlacementSettings) GetQueue

func (*Interfaces_Interface_RxPlacementSettings) GetWorker

func (*Interfaces_Interface_RxPlacementSettings) ProtoMessage

func (*Interfaces_Interface_RxPlacementSettings) Reset

func (*Interfaces_Interface_RxPlacementSettings) String

type Interfaces_Interface_Tap

type Interfaces_Interface_Tap struct {
	Version    uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	HostIfName string `protobuf:"bytes,2,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"`
	Namespace  string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	RxRingSize uint32 `protobuf:"varint,4,opt,name=rx_ring_size,json=rxRingSize,proto3" json:"rx_ring_size,omitempty"`
	TxRingSize uint32 `protobuf:"varint,5,opt,name=tx_ring_size,json=txRingSize,proto3" json:"tx_ring_size,omitempty"`
}

func (*Interfaces_Interface_Tap) Descriptor

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

func (*Interfaces_Interface_Tap) GetHostIfName

func (m *Interfaces_Interface_Tap) GetHostIfName() string

func (*Interfaces_Interface_Tap) GetNamespace

func (m *Interfaces_Interface_Tap) GetNamespace() string

func (*Interfaces_Interface_Tap) GetRxRingSize

func (m *Interfaces_Interface_Tap) GetRxRingSize() uint32

func (*Interfaces_Interface_Tap) GetTxRingSize

func (m *Interfaces_Interface_Tap) GetTxRingSize() uint32

func (*Interfaces_Interface_Tap) GetVersion

func (m *Interfaces_Interface_Tap) GetVersion() uint32

func (*Interfaces_Interface_Tap) ProtoMessage

func (*Interfaces_Interface_Tap) ProtoMessage()

func (*Interfaces_Interface_Tap) Reset

func (m *Interfaces_Interface_Tap) Reset()

func (*Interfaces_Interface_Tap) String

func (m *Interfaces_Interface_Tap) String() string

type Interfaces_Interface_Unnumbered

type Interfaces_Interface_Unnumbered struct {
	IsUnnumbered    bool   `protobuf:"varint,1,opt,name=is_unnumbered,json=isUnnumbered,proto3" json:"is_unnumbered,omitempty"`
	InterfaceWithIp string `protobuf:"bytes,2,opt,name=interface_with_ip,json=interfaceWithIp,proto3" json:"interface_with_ip,omitempty"`
}

func (*Interfaces_Interface_Unnumbered) Descriptor

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

func (*Interfaces_Interface_Unnumbered) GetInterfaceWithIp

func (m *Interfaces_Interface_Unnumbered) GetInterfaceWithIp() string

func (*Interfaces_Interface_Unnumbered) GetIsUnnumbered

func (m *Interfaces_Interface_Unnumbered) GetIsUnnumbered() bool

func (*Interfaces_Interface_Unnumbered) ProtoMessage

func (*Interfaces_Interface_Unnumbered) ProtoMessage()

func (*Interfaces_Interface_Unnumbered) Reset

func (*Interfaces_Interface_Unnumbered) String

type Interfaces_Interface_Vxlan

type Interfaces_Interface_Vxlan struct {
	SrcAddress string `protobuf:"bytes,1,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"`
	DstAddress string `protobuf:"bytes,2,opt,name=dst_address,json=dstAddress,proto3" json:"dst_address,omitempty"`
	Vni        uint32 `protobuf:"varint,3,opt,name=vni,proto3" json:"vni,omitempty"`
	Multicast  string `protobuf:"bytes,4,opt,name=multicast,proto3" json:"multicast,omitempty"`
}

func (*Interfaces_Interface_Vxlan) Descriptor

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

func (*Interfaces_Interface_Vxlan) GetDstAddress

func (m *Interfaces_Interface_Vxlan) GetDstAddress() string

func (*Interfaces_Interface_Vxlan) GetMulticast

func (m *Interfaces_Interface_Vxlan) GetMulticast() string

func (*Interfaces_Interface_Vxlan) GetSrcAddress

func (m *Interfaces_Interface_Vxlan) GetSrcAddress() string

func (*Interfaces_Interface_Vxlan) GetVni

func (m *Interfaces_Interface_Vxlan) GetVni() uint32

func (*Interfaces_Interface_Vxlan) ProtoMessage

func (*Interfaces_Interface_Vxlan) ProtoMessage()

func (*Interfaces_Interface_Vxlan) Reset

func (m *Interfaces_Interface_Vxlan) Reset()

func (*Interfaces_Interface_Vxlan) String

func (m *Interfaces_Interface_Vxlan) String() string

type RxModeType

type RxModeType int32

from vpp/build-root/install-vpp-native/vpp/include/vnet/interface.h

const (
	RxModeType_UNKNOWN   RxModeType = 0
	RxModeType_POLLING   RxModeType = 1
	RxModeType_INTERRUPT RxModeType = 2
	RxModeType_ADAPTIVE  RxModeType = 3
	RxModeType_DEFAULT   RxModeType = 4
)

func (RxModeType) EnumDescriptor

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

func (RxModeType) String

func (x RxModeType) String() string

Jump to

Keyboard shortcuts

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