vpp_interfaces

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 41

Documentation

Index

Constants

View Source
const (
	// DHCPClientKeyPrefix is used as a common prefix for keys derived from
	// interfaces to represent enabled DHCP clients.
	DHCPClientKeyPrefix = "vpp/interface/dhcp-client/"

	// DHCPLeaseKeyPrefix is used as a common prefix for keys representing
	// notifications with DHCP leases.
	DHCPLeaseKeyPrefix = "vpp/interface/dhcp-lease/"
)

DHCP (client - derived, lease - notification)

View Source
const (
	// BondedInterfacePrefix is used as a common prefix for keys derived from
	// interfaces to represent interface slaves for bond interface.
	BondedInterfacePrefix = "vpp/bond/{bond}/interface/{iface}/"
)

Bond interface enslavement (derived)

View Source
const (
	// ErrorPrefix is a key prefix used in NB DB to store interface errors.
	ErrorPrefix = "vpp/status/v2/interface/error/"
)

Interface Error

View Source
const (
	// IP6NDKeyPrefix is used as a common prefix for keys derived from
	// interfaces to represent enabled IP6 ND.
	IP6NDKeyPrefix = "vpp/interface/ip6nd/"
)

DHCP (client - derived, lease - notification)

View Source
const (
	// InvalidKeyPart is used in key for parts which are invalid
	InvalidKeyPart = "<invalid>"
)
View Source
const ModuleName = "vpp"

ModuleName is the module name used for models.

View Source
const (
	// StatePrefix is a key prefix used in NB DB to store interface states.
	StatePrefix = "vpp/status/v2/interface/"
)

Interface State

View Source
const (
	// UnnumberedKeyPrefix is used as a common prefix for keys derived from
	// interfaces to represent unnumbered interfaces.
	UnnumberedKeyPrefix = "vpp/interface/unnumbered/"
)

Unnumbered interface (derived)

Variables

View Source
var (
	Interface_Type_name = map[int32]string{
		0:  "UNDEFINED_TYPE",
		1:  "SUB_INTERFACE",
		2:  "SOFTWARE_LOOPBACK",
		3:  "DPDK",
		4:  "MEMIF",
		5:  "TAP",
		6:  "AF_PACKET",
		7:  "VXLAN_TUNNEL",
		8:  "IPSEC_TUNNEL",
		9:  "VMXNET3_INTERFACE",
		10: "BOND_INTERFACE",
		11: "GRE_TUNNEL",
		12: "GTPU_TUNNEL",
		13: "IPIP_TUNNEL",
		14: "WIREGUARD_TUNNEL",
	}
	Interface_Type_value = map[string]int32{
		"UNDEFINED_TYPE":    0,
		"SUB_INTERFACE":     1,
		"SOFTWARE_LOOPBACK": 2,
		"DPDK":              3,
		"MEMIF":             4,
		"TAP":               5,
		"AF_PACKET":         6,
		"VXLAN_TUNNEL":      7,
		"IPSEC_TUNNEL":      8,
		"VMXNET3_INTERFACE": 9,
		"BOND_INTERFACE":    10,
		"GRE_TUNNEL":        11,
		"GTPU_TUNNEL":       12,
		"IPIP_TUNNEL":       13,
		"WIREGUARD_TUNNEL":  14,
	}
)

Enum value maps for Interface_Type.

View Source
var (
	Interface_RxMode_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "POLLING",
		2: "INTERRUPT",
		3: "ADAPTIVE",
		4: "DEFAULT",
	}
	Interface_RxMode_Type_value = map[string]int32{
		"UNKNOWN":   0,
		"POLLING":   1,
		"INTERRUPT": 2,
		"ADAPTIVE":  3,
		"DEFAULT":   4,
	}
)

Enum value maps for Interface_RxMode_Type.

View Source
var (
	SubInterface_TagRewriteOptions_name = map[int32]string{
		0: "DISABLED",
		1: "PUSH1",
		2: "PUSH2",
		3: "POP1",
		4: "POP2",
		5: "TRANSLATE11",
		6: "TRANSLATE12",
		7: "TRANSLATE21",
		8: "TRANSLATE22",
	}
	SubInterface_TagRewriteOptions_value = map[string]int32{
		"DISABLED":    0,
		"PUSH1":       1,
		"PUSH2":       2,
		"POP1":        3,
		"POP2":        4,
		"TRANSLATE11": 5,
		"TRANSLATE12": 6,
		"TRANSLATE21": 7,
		"TRANSLATE22": 8,
	}
)

Enum value maps for SubInterface_TagRewriteOptions.

View Source
var (
	MemifLink_MemifMode_name = map[int32]string{
		0: "ETHERNET",
		1: "IP",
		2: "PUNT_INJECT",
	}
	MemifLink_MemifMode_value = map[string]int32{
		"ETHERNET":    0,
		"IP":          1,
		"PUNT_INJECT": 2,
	}
)

Enum value maps for MemifLink_MemifMode.

View Source
var (
	VxlanLink_Gpe_Protocol_name = map[int32]string{
		0: "UNKNOWN",
		1: "IP4",
		2: "IP6",
		3: "ETHERNET",
		4: "NSH",
	}
	VxlanLink_Gpe_Protocol_value = map[string]int32{
		"UNKNOWN":  0,
		"IP4":      1,
		"IP6":      2,
		"ETHERNET": 3,
		"NSH":      4,
	}
)

Enum value maps for VxlanLink_Gpe_Protocol.

View Source
var (
	BondLink_Mode_name = map[int32]string{
		0: "UNKNOWN",
		1: "ROUND_ROBIN",
		2: "ACTIVE_BACKUP",
		3: "XOR",
		4: "BROADCAST",
		5: "LACP",
	}
	BondLink_Mode_value = map[string]int32{
		"UNKNOWN":       0,
		"ROUND_ROBIN":   1,
		"ACTIVE_BACKUP": 2,
		"XOR":           3,
		"BROADCAST":     4,
		"LACP":          5,
	}
)

Enum value maps for BondLink_Mode.

View Source
var (
	BondLink_LoadBalance_name = map[int32]string{
		0: "L2",
		1: "L34",
		2: "L23",
		3: "RR",
		4: "BC",
		5: "AB",
	}
	BondLink_LoadBalance_value = map[string]int32{
		"L2":  0,
		"L34": 1,
		"L23": 2,
		"RR":  3,
		"BC":  4,
		"AB":  5,
	}
)

Enum value maps for BondLink_LoadBalance.

View Source
var (
	GreLink_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "L3",
		2: "TEB",
		3: "ERSPAN",
	}
	GreLink_Type_value = map[string]int32{
		"UNKNOWN": 0,
		"L3":      1,
		"TEB":     2,
		"ERSPAN":  3,
	}
)

Enum value maps for GreLink_Type.

View Source
var (
	GtpuLink_NextNode_name = map[int32]string{
		0: "DEFAULT",
		1: "L2",
		2: "IP4",
		3: "IP6",
	}
	GtpuLink_NextNode_value = map[string]int32{
		"DEFAULT": 0,
		"L2":      1,
		"IP4":     2,
		"IP6":     3,
	}
)

Enum value maps for GtpuLink_NextNode.

View Source
var (
	IPIPLink_Mode_name = map[int32]string{
		0: "POINT_TO_POINT",
		1: "POINT_TO_MULTIPOINT",
	}
	IPIPLink_Mode_value = map[string]int32{
		"POINT_TO_POINT":      0,
		"POINT_TO_MULTIPOINT": 1,
	}
)

Enum value maps for IPIPLink_Mode.

View Source
var (
	ModelInterface = models.Register(&Interface{}, models.Spec{
		Module:  ModuleName,
		Version: "v2",
		Type:    "interfaces",
	})

	ModelSpan = models.Register(&Span{}, models.Spec{
		Module:  ModuleName,
		Version: "v2",
		Type:    "span",
	}, models.WithNameTemplate("{{.InterfaceFrom}}/to/{{.InterfaceTo}}"))
)
View Source
var (
	Span_Direction_name = map[int32]string{
		0: "UNKNOWN",
		1: "RX",
		2: "TX",
		3: "BOTH",
	}
	Span_Direction_value = map[string]int32{
		"UNKNOWN": 0,
		"RX":      1,
		"TX":      2,
		"BOTH":    3,
	}
)

Enum value maps for Span_Direction.

View Source
var (
	InterfaceState_Status_name = map[int32]string{
		0: "UNKNOWN_STATUS",
		1: "UP",
		2: "DOWN",
		3: "DELETED",
	}
	InterfaceState_Status_value = map[string]int32{
		"UNKNOWN_STATUS": 0,
		"UP":             1,
		"DOWN":           2,
		"DELETED":        3,
	}
)

Enum value maps for InterfaceState_Status.

View Source
var (
	InterfaceState_Duplex_name = map[int32]string{
		0: "UNKNOWN_DUPLEX",
		1: "HALF",
		2: "FULL",
	}
	InterfaceState_Duplex_value = map[string]int32{
		"UNKNOWN_DUPLEX": 0,
		"HALF":           1,
		"FULL":           2,
	}
)

Enum value maps for InterfaceState_Duplex.

View Source
var (
	InterfaceNotification_NotifType_name = map[int32]string{
		0: "UNKNOWN",
		1: "UPDOWN",
		2: "COUNTERS",
	}
	InterfaceNotification_NotifType_value = map[string]int32{
		"UNKNOWN":  0,
		"UPDOWN":   1,
		"COUNTERS": 2,
	}
)

Enum value maps for InterfaceNotification_NotifType.

View Source
var File_ligato_vpp_interfaces_dhcp_proto protoreflect.FileDescriptor
View Source
var File_ligato_vpp_interfaces_interface_proto protoreflect.FileDescriptor
View Source
var File_ligato_vpp_interfaces_span_proto protoreflect.FileDescriptor
View Source
var File_ligato_vpp_interfaces_state_proto protoreflect.FileDescriptor

Functions

func BondedInterfaceKey

func BondedInterfaceKey(bondIf, slaveIf string) string

BondedInterfaceKey returns a key with bond and slave interface set

func DHCPClientKey

func DHCPClientKey(iface string) string

DHCPClientKey returns a (derived) key used to represent enabled DHCP lease.

func DHCPLeaseKey

func DHCPLeaseKey(iface string) string

DHCPLeaseKey returns a key used to represent DHCP lease for the given interface.

func IP6NDKey added in v3.2.0

func IP6NDKey(iface string) string

IP6NDKey returns a (derived) key used to represent enabled IP6 ND.

func InterfaceAddressKey

func InterfaceAddressKey(iface string, address string, source netalloc.IPAddressSource) string

InterfaceAddressKey returns key representing IP address assigned to VPP interface.

func InterfaceAddressPrefix

func InterfaceAddressPrefix(iface string) string

InterfaceAddressPrefix returns longest-common prefix of keys representing assigned IP addresses to a specific VPP interface.

func InterfaceErrorKey

func InterfaceErrorKey(iface string) string

InterfaceErrorKey returns the key used in NB DB to store the interface errors.

func InterfaceInheritedVrfKey

func InterfaceInheritedVrfKey(iface string, fromIface string) string

InterfaceInheritedVrfKey returns key representing assignment of the given interface into a VRF inherited from another interface. Used by unnumbered interfaces.

func InterfaceKey

func InterfaceKey(name string) string

InterfaceKey returns the key used in NB DB to store the configuration of the given vpp interface.

func InterfaceStateKey

func InterfaceStateKey(iface string) string

InterfaceStateKey returns the key used in NB DB to store the state data of the given vpp interface.

func InterfaceVrfKey

func InterfaceVrfKey(iface string, vrf int, ipv4, ipv6 bool) string

InterfaceVrfKey returns key representing assignment of the given interface into the given VRF.

func InterfaceVrfKeyPrefix

func InterfaceVrfKeyPrefix(iface string) string

InterfaceVrfKeyPrefix returns prefix of the key representing assignment of the given interface into unspecified VRF table.

func InterfaceWithIPKey

func InterfaceWithIPKey(ifaceName string) string

InterfaceWithIPKey returns key derived from every VPP interface but created only after at least one IP address was assigned to it.

func LinkStateKey

func LinkStateKey(ifaceName string, linkIsUp bool) string

LinkStateKey returns key representing link state of a VPP interface.

func ParseBondedInterfaceKey

func ParseBondedInterfaceKey(key string) (bondIf, slaveIf string, isBondSlaveInterfaceKey bool)

ParseBondedInterfaceKey returns names of interfaces of the key.

func ParseInterfaceAddressKey

func ParseInterfaceAddressKey(key string) (iface, address string, source netalloc.IPAddressSource, invalidKey, isAddrKey bool)

ParseInterfaceAddressKey parses interface address from key derived from interface by InterfaceAddressKey().

func ParseInterfaceInheritedVrfKey

func ParseInterfaceInheritedVrfKey(key string) (iface, fromIface string, isIfaceInherVrfKey bool)

ParseInterfaceInheritedVrfKey parses details from key derived from interface by InterfaceInheritedVrfKey().

func ParseInterfaceVrfKey

func ParseInterfaceVrfKey(key string) (iface string, vrf int, ipv4, ipv6, isIfaceVrfKey bool)

ParseInterfaceVrfKey parses details from key derived from interface by InterfaceVrfKey().

func ParseInterfaceWithIPKey

func ParseInterfaceWithIPKey(key string) (ifaceName string, isInterfaceWithIPKey bool)

ParseInterfaceWithIPKey parses key derived from every VPP interface but created only after at least one IP address was assigned to it

func ParseLinkStateKey

func ParseLinkStateKey(key string) (ifaceName string, isLinkUp bool, isLinkStateKey bool)

ParseLinkStateKey parses key representing link state of a VPP interface.

func ParseNameFromDHCPClientKey

func ParseNameFromDHCPClientKey(key string) (iface string, isDHCPClientKey bool)

ParseNameFromDHCPClientKey returns suffix of the key.

func ParseNameFromDHCPLeaseKey

func ParseNameFromDHCPLeaseKey(key string) (iface string, isDHCPLeaseKey bool)

ParseNameFromDHCPLeaseKey returns suffix of the key.

func ParseNameFromIP6NDKey added in v3.2.0

func ParseNameFromIP6NDKey(key string) (iface string, isIP6NDKey bool)

ParseNameFromIP6NDKey returns suffix of the key.

func ParseNameFromUnnumberedKey

func ParseNameFromUnnumberedKey(key string) (iface string, isUnnumberedKey bool)

ParseNameFromUnnumberedKey returns suffix of the key.

func ParseRxModesKey

func ParseRxModesKey(key string) (ifaceName string, isRxModesKey bool)

ParseRxModesKey parses key representing rx-mode configuration for all queues of a given interface.

func ParseRxPlacementKey

func ParseRxPlacementKey(key string) (ifaceName string, queue uint32, isRxPlacementKey bool)

ParseRxPlacementKey parses key representing rx-placement configured for a given interface queue.

func RxModesKey

func RxModesKey(ifaceName string) string

RxModesKey returns a key representing rx-mode configuration for all queues of a given interface.

func RxPlacementKey

func RxPlacementKey(ifaceName string, queue uint32) string

RxPlacementKey returns a key representing rx-placement configured for a given interface queue.

func SpanKey

func SpanKey(ifaceFrom, ifaceTo string) string

SpanKey returns the key used in NB DB to store the configuration of the given vpp span.

func UnnumberedKey

func UnnumberedKey(iface string) string

UnnumberedKey returns key representing unnumbered interface.

Types

type AfpacketLink struct {

	// Name of the host (Linux) interface to bind to.
	// This type of reference is suitable for scenarios when the target interface
	// is not managed (and should not be touched) by the agent. In such cases the interface
	// does not have logical name in the agent's namespace and can only be referenced
	// by the host interface name (i.e. the name used in the Linux network stack).
	// Please note that agent learns about externally created interfaces through netlink
	// notifications.
	// If, however, the target interface is managed by the agent, then it is recommended
	// to use the alternative reference <linux_interface> (see below), pointing to the interface
	// by its logical name. One advantage of such approach is, that if AF-PACKET and the target
	// Linux interface are requested to be created at the same time, then it can be done inside
	// the same transaction because the agent does not rely on any notification from the Linux.
	// It is mandatory to define either <host_if_name> or <linux_interface>.
	HostIfName string `protobuf:"bytes,1,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"`
	// Logical name of the Linux interface to bind to.
	// This is an alternative interface reference to <host_if_name> and preferred
	// if the target interface is managed by the agent and not created externally
	// (see comments for <host_if_name> for explanation).
	// It is mandatory to define either <host_if_name> or <linux_interface>.
	LinuxInterface string `protobuf:"bytes,2,opt,name=linux_interface,json=linuxInterface,proto3" json:"linux_interface,omitempty"`
	// contains filtered or unexported fields
}

AfpacketLink defines configuration for interface type: AF_PACKET

func (*AfpacketLink) Descriptor deprecated

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

Deprecated: Use AfpacketLink.ProtoReflect.Descriptor instead.

func (*AfpacketLink) GetHostIfName

func (x *AfpacketLink) GetHostIfName() string

func (*AfpacketLink) GetLinuxInterface

func (x *AfpacketLink) GetLinuxInterface() string

func (*AfpacketLink) ProtoMessage

func (*AfpacketLink) ProtoMessage()

func (*AfpacketLink) ProtoReflect added in v3.2.0

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

func (*AfpacketLink) Reset

func (x *AfpacketLink) Reset()

func (*AfpacketLink) String

func (x *AfpacketLink) String() string
type BondLink struct {
	Id   uint32        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Mode BondLink_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=ligato.vpp.interfaces.BondLink_Mode" json:"mode,omitempty"`
	// Load balance is optional and valid only for XOR and LACP modes
	Lb               BondLink_LoadBalance        `protobuf:"varint,4,opt,name=lb,proto3,enum=ligato.vpp.interfaces.BondLink_LoadBalance" json:"lb,omitempty"`
	BondedInterfaces []*BondLink_BondedInterface `protobuf:"bytes,12,rep,name=bonded_interfaces,json=bondedInterfaces,proto3" json:"bonded_interfaces,omitempty"`
	// contains filtered or unexported fields
}

BondLink defines configuration for interface type: BOND_INTERFACE

func (*BondLink) Descriptor deprecated

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

Deprecated: Use BondLink.ProtoReflect.Descriptor instead.

func (*BondLink) GetBondedInterfaces

func (x *BondLink) GetBondedInterfaces() []*BondLink_BondedInterface

func (*BondLink) GetId

func (x *BondLink) GetId() uint32

func (*BondLink) GetLb

func (x *BondLink) GetLb() BondLink_LoadBalance

func (*BondLink) GetMode

func (x *BondLink) GetMode() BondLink_Mode

func (*BondLink) ProtoMessage

func (*BondLink) ProtoMessage()

func (*BondLink) ProtoReflect added in v3.2.0

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

func (*BondLink) Reset

func (x *BondLink) Reset()

func (*BondLink) String

func (x *BondLink) String() string
type BondLink_BondedInterface struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IsPassive     bool   `protobuf:"varint,2,opt,name=is_passive,json=isPassive,proto3" json:"is_passive,omitempty"`
	IsLongTimeout bool   `protobuf:"varint,3,opt,name=is_long_timeout,json=isLongTimeout,proto3" json:"is_long_timeout,omitempty"`
	// contains filtered or unexported fields
}
func (*BondLink_BondedInterface) Descriptor() ([]byte, []int)

Deprecated: Use BondLink_BondedInterface.ProtoReflect.Descriptor instead.

func (x *BondLink_BondedInterface) GetIsLongTimeout() bool
func (x *BondLink_BondedInterface) GetIsPassive() bool
func (x *BondLink_BondedInterface) GetName() string
func (*BondLink_BondedInterface) ProtoMessage()
func (x *BondLink_BondedInterface) ProtoReflect() protoreflect.Message
func (x *BondLink_BondedInterface) Reset()
func (x *BondLink_BondedInterface) String() string
type BondLink_LoadBalance int32
const (
	BondLink_L2  BondLink_LoadBalance = 0
	BondLink_L34 BondLink_LoadBalance = 1
	BondLink_L23 BondLink_LoadBalance = 2
	// Round robin
	BondLink_RR BondLink_LoadBalance = 3
	// Broadcast
	BondLink_BC BondLink_LoadBalance = 4
	// Active backup
	BondLink_AB BondLink_LoadBalance = 5
)
func (BondLink_LoadBalance) EnumDescriptor() ([]byte, []int)

Deprecated: Use BondLink_LoadBalance.Descriptor instead.

func (x BondLink_LoadBalance) String() string
type BondLink_Mode int32
const (
	BondLink_UNKNOWN       BondLink_Mode = 0
	BondLink_ROUND_ROBIN   BondLink_Mode = 1
	BondLink_ACTIVE_BACKUP BondLink_Mode = 2
	BondLink_XOR           BondLink_Mode = 3
	BondLink_BROADCAST     BondLink_Mode = 4
	BondLink_LACP          BondLink_Mode = 5
)
func (x BondLink_Mode) Enum() *BondLink_Mode
func (BondLink_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use BondLink_Mode.Descriptor instead.

func (x BondLink_Mode) String() string

type DHCPLease

type DHCPLease struct {
	InterfaceName   string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
	HostName        string `protobuf:"bytes,2,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"`
	IsIpv6          bool   `protobuf:"varint,3,opt,name=is_ipv6,json=isIpv6,proto3" json:"is_ipv6,omitempty"`
	HostPhysAddress string `protobuf:"bytes,4,opt,name=host_phys_address,json=hostPhysAddress,proto3" json:"host_phys_address,omitempty"`
	HostIpAddress   string `protobuf:"bytes,5,opt,name=host_ip_address,json=hostIpAddress,proto3" json:"host_ip_address,omitempty"`       // IP addresses in the format <ipAddress>/<ipPrefix>
	RouterIpAddress string `protobuf:"bytes,6,opt,name=router_ip_address,json=routerIpAddress,proto3" json:"router_ip_address,omitempty"` // IP addresses in the format <ipAddress>/<ipPrefix>
	// contains filtered or unexported fields
}

DHCPLease is a notification, i.e. flows from SB upwards

func (*DHCPLease) Descriptor deprecated

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

Deprecated: Use DHCPLease.ProtoReflect.Descriptor instead.

func (*DHCPLease) GetHostIpAddress

func (x *DHCPLease) GetHostIpAddress() string

func (*DHCPLease) GetHostName

func (x *DHCPLease) GetHostName() string

func (*DHCPLease) GetHostPhysAddress

func (x *DHCPLease) GetHostPhysAddress() string

func (*DHCPLease) GetInterfaceName

func (x *DHCPLease) GetInterfaceName() string

func (*DHCPLease) GetIsIpv6

func (x *DHCPLease) GetIsIpv6() bool

func (*DHCPLease) GetRouterIpAddress

func (x *DHCPLease) GetRouterIpAddress() string

func (*DHCPLease) ProtoMessage

func (*DHCPLease) ProtoMessage()

func (*DHCPLease) ProtoReflect added in v3.2.0

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

func (*DHCPLease) Reset

func (x *DHCPLease) Reset()

func (*DHCPLease) String

func (x *DHCPLease) String() string
type GreLink struct {
	TunnelType GreLink_Type `` /* 132-byte string literal not displayed */
	SrcAddr    string       `protobuf:"bytes,2,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"`
	DstAddr    string       `protobuf:"bytes,3,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"`
	OuterFibId uint32       `protobuf:"varint,4,opt,name=outer_fib_id,json=outerFibId,proto3" json:"outer_fib_id,omitempty"`
	SessionId  uint32       `protobuf:"varint,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GreLink) Descriptor deprecated

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

Deprecated: Use GreLink.ProtoReflect.Descriptor instead.

func (*GreLink) GetDstAddr

func (x *GreLink) GetDstAddr() string

func (*GreLink) GetOuterFibId

func (x *GreLink) GetOuterFibId() uint32

func (*GreLink) GetSessionId

func (x *GreLink) GetSessionId() uint32

func (*GreLink) GetSrcAddr

func (x *GreLink) GetSrcAddr() string

func (*GreLink) GetTunnelType

func (x *GreLink) GetTunnelType() GreLink_Type

func (*GreLink) ProtoMessage

func (*GreLink) ProtoMessage()

func (*GreLink) ProtoReflect added in v3.2.0

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

func (*GreLink) Reset

func (x *GreLink) Reset()

func (*GreLink) String

func (x *GreLink) String() string
type GreLink_Type int32
const (
	GreLink_UNKNOWN GreLink_Type = 0
	// L3 GRE (i.e. this tunnel is in L3 mode)
	GreLink_L3 GreLink_Type = 1
	// TEB - Transparent Ethernet Bridging - the tunnel is in L2 mode
	GreLink_TEB GreLink_Type = 2
	// ERSPAN - the tunnel is for port mirror SPAN output
	GreLink_ERSPAN GreLink_Type = 3
)
func (x GreLink_Type) Enum() *GreLink_Type
func (GreLink_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use GreLink_Type.Descriptor instead.

func (x GreLink_Type) String() string
type GtpuLink struct {

	// Source VTEP address
	SrcAddr string `protobuf:"bytes,1,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"`
	// Destination VTEP address
	DstAddr string `protobuf:"bytes,2,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"`
	// Name of multicast interface
	Multicast string `protobuf:"bytes,3,opt,name=multicast,proto3" json:"multicast,omitempty"`
	// Tunnel endpoint identifier - local
	Teid uint32 `protobuf:"varint,4,opt,name=teid,proto3" json:"teid,omitempty"`
	// Tunnel endpoint identifier - remote
	RemoteTeid uint32 `protobuf:"varint,7,opt,name=remote_teid,json=remoteTeid,proto3" json:"remote_teid,omitempty"`
	// VRF id for the encapsulated packets
	EncapVrfId uint32 `protobuf:"varint,5,opt,name=encap_vrf_id,json=encapVrfId,proto3" json:"encap_vrf_id,omitempty"`
	// DEPRECATED - use decap_next_node
	//
	// Deprecated: Do not use.
	DecapNext GtpuLink_NextNode `` /* 134-byte string literal not displayed */
	// Next VPP node after decapsulation
	DecapNextNode uint32 `protobuf:"varint,8,opt,name=decap_next_node,json=decapNextNode,proto3" json:"decap_next_node,omitempty"`
	// contains filtered or unexported fields
}

func (*GtpuLink) Descriptor deprecated

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

Deprecated: Use GtpuLink.ProtoReflect.Descriptor instead.

func (*GtpuLink) GetDecapNext deprecated

func (x *GtpuLink) GetDecapNext() GtpuLink_NextNode

Deprecated: Do not use.

func (*GtpuLink) GetDecapNextNode added in v3.2.0

func (x *GtpuLink) GetDecapNextNode() uint32

func (*GtpuLink) GetDstAddr

func (x *GtpuLink) GetDstAddr() string

func (*GtpuLink) GetEncapVrfId

func (x *GtpuLink) GetEncapVrfId() uint32

func (*GtpuLink) GetMulticast

func (x *GtpuLink) GetMulticast() string

func (*GtpuLink) GetRemoteTeid added in v3.2.0

func (x *GtpuLink) GetRemoteTeid() uint32

func (*GtpuLink) GetSrcAddr

func (x *GtpuLink) GetSrcAddr() string

func (*GtpuLink) GetTeid

func (x *GtpuLink) GetTeid() uint32

func (*GtpuLink) ProtoMessage

func (*GtpuLink) ProtoMessage()

func (*GtpuLink) ProtoReflect added in v3.2.0

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

func (*GtpuLink) Reset

func (x *GtpuLink) Reset()

func (*GtpuLink) String

func (x *GtpuLink) String() string
type GtpuLink_NextNode int32
const (
	// The default next node is l2-input
	GtpuLink_DEFAULT GtpuLink_NextNode = 0
	// l2-input
	GtpuLink_L2 GtpuLink_NextNode = 1
	// ip4-input
	GtpuLink_IP4 GtpuLink_NextNode = 2
	// ip6-input
	GtpuLink_IP6 GtpuLink_NextNode = 3
)
func (GtpuLink_NextNode) EnumDescriptor() ([]byte, []int)

Deprecated: Use GtpuLink_NextNode.Descriptor instead.

func (x GtpuLink_NextNode) String() string
type IPIPLink struct {

	// Mode of the IPIP tunnel
	TunnelMode IPIPLink_Mode `` /* 133-byte string literal not displayed */
	// Source VTEP IP address
	SrcAddr string `protobuf:"bytes,2,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"`
	// Destination VTEP IP address
	DstAddr string `protobuf:"bytes,3,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*IPIPLink) Descriptor deprecated added in v3.1.0

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

Deprecated: Use IPIPLink.ProtoReflect.Descriptor instead.

func (*IPIPLink) GetDstAddr added in v3.1.0

func (x *IPIPLink) GetDstAddr() string

func (*IPIPLink) GetSrcAddr added in v3.1.0

func (x *IPIPLink) GetSrcAddr() string

func (*IPIPLink) GetTunnelMode added in v3.1.0

func (x *IPIPLink) GetTunnelMode() IPIPLink_Mode

func (*IPIPLink) ProtoMessage added in v3.1.0

func (*IPIPLink) ProtoMessage()

func (*IPIPLink) ProtoReflect added in v3.2.0

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

func (*IPIPLink) Reset added in v3.1.0

func (x *IPIPLink) Reset()

func (*IPIPLink) String added in v3.1.0

func (x *IPIPLink) String() string
type IPIPLink_Mode int32
const (
	// point-to-point tunnel
	IPIPLink_POINT_TO_POINT IPIPLink_Mode = 0
	// point-to multipoint tunnel (supported starting from VPP 20.05)
	IPIPLink_POINT_TO_MULTIPOINT IPIPLink_Mode = 1
)
func (x IPIPLink_Mode) Enum() *IPIPLink_Mode
func (IPIPLink_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use IPIPLink_Mode.Descriptor instead.

func (x IPIPLink_Mode) String() string
type IPSecLink struct {

	// Extended sequence number
	Esn bool `protobuf:"varint,2,opt,name=esn,proto3" json:"esn,omitempty"`
	// Anti replay option
	AntiReplay bool `protobuf:"varint,3,opt,name=anti_replay,json=antiReplay,proto3" json:"anti_replay,omitempty"`
	// Local IP address
	LocalIp string `protobuf:"bytes,4,opt,name=local_ip,json=localIp,proto3" json:"local_ip,omitempty"`
	// Remote IP address
	RemoteIp string `protobuf:"bytes,5,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
	// Local security parameter index
	LocalSpi uint32 `protobuf:"varint,6,opt,name=local_spi,json=localSpi,proto3" json:"local_spi,omitempty"`
	// Remote security parameter index
	RemoteSpi uint32 `protobuf:"varint,7,opt,name=remote_spi,json=remoteSpi,proto3" json:"remote_spi,omitempty"`
	// Cryptographic algorithm for encryption
	CryptoAlg       ipsec.CryptoAlg `protobuf:"varint,8,opt,name=crypto_alg,json=cryptoAlg,proto3,enum=ligato.vpp.ipsec.CryptoAlg" json:"crypto_alg,omitempty"`
	LocalCryptoKey  string          `protobuf:"bytes,9,opt,name=local_crypto_key,json=localCryptoKey,proto3" json:"local_crypto_key,omitempty"`
	RemoteCryptoKey string          `protobuf:"bytes,10,opt,name=remote_crypto_key,json=remoteCryptoKey,proto3" json:"remote_crypto_key,omitempty"`
	// Cryptographic algorithm for authentication
	IntegAlg       ipsec.IntegAlg `protobuf:"varint,11,opt,name=integ_alg,json=integAlg,proto3,enum=ligato.vpp.ipsec.IntegAlg" json:"integ_alg,omitempty"`
	LocalIntegKey  string         `protobuf:"bytes,12,opt,name=local_integ_key,json=localIntegKey,proto3" json:"local_integ_key,omitempty"`
	RemoteIntegKey string         `protobuf:"bytes,13,opt,name=remote_integ_key,json=remoteIntegKey,proto3" json:"remote_integ_key,omitempty"`
	EnableUdpEncap bool           `protobuf:"varint,14,opt,name=enable_udp_encap,json=enableUdpEncap,proto3" json:"enable_udp_encap,omitempty"`
	// contains filtered or unexported fields
}

IPSecLink defines configuration for interface type: IPSEC_TUNNEL

func (*IPSecLink) Descriptor deprecated

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

Deprecated: Use IPSecLink.ProtoReflect.Descriptor instead.

func (*IPSecLink) GetAntiReplay

func (x *IPSecLink) GetAntiReplay() bool

func (*IPSecLink) GetCryptoAlg

func (x *IPSecLink) GetCryptoAlg() ipsec.CryptoAlg

func (*IPSecLink) GetEnableUdpEncap

func (x *IPSecLink) GetEnableUdpEncap() bool

func (*IPSecLink) GetEsn

func (x *IPSecLink) GetEsn() bool

func (*IPSecLink) GetIntegAlg

func (x *IPSecLink) GetIntegAlg() ipsec.IntegAlg

func (*IPSecLink) GetLocalCryptoKey

func (x *IPSecLink) GetLocalCryptoKey() string

func (*IPSecLink) GetLocalIntegKey

func (x *IPSecLink) GetLocalIntegKey() string

func (*IPSecLink) GetLocalIp

func (x *IPSecLink) GetLocalIp() string

func (*IPSecLink) GetLocalSpi

func (x *IPSecLink) GetLocalSpi() uint32

func (*IPSecLink) GetRemoteCryptoKey

func (x *IPSecLink) GetRemoteCryptoKey() string

func (*IPSecLink) GetRemoteIntegKey

func (x *IPSecLink) GetRemoteIntegKey() string

func (*IPSecLink) GetRemoteIp

func (x *IPSecLink) GetRemoteIp() string

func (*IPSecLink) GetRemoteSpi

func (x *IPSecLink) GetRemoteSpi() uint32

func (*IPSecLink) ProtoMessage

func (*IPSecLink) ProtoMessage()

func (*IPSecLink) ProtoReflect added in v3.2.0

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

func (*IPSecLink) Reset

func (x *IPSecLink) Reset()

func (*IPSecLink) String

func (x *IPSecLink) String() string

type Interface

type Interface struct {

	// Name is mandatory field representing logical name for the interface.
	// It must be unique across all configured VPP interfaces.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Type represents the type of VPP interface and it must match the actual Link.
	Type Interface_Type `protobuf:"varint,2,opt,name=type,proto3,enum=ligato.vpp.interfaces.Interface_Type" json:"type,omitempty"`
	// Enabled controls if the interface should be UP.
	Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// PhysAddress represents physical address (MAC) of the interface.
	// Random address will be assigned if left empty.
	PhysAddress string `protobuf:"bytes,4,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`
	// IPAddresses define list of IP addresses for the interface and must be
	// defined in the following format: <ipAddress>/<ipPrefix>.
	// Interface IP address can be also allocated via netalloc plugin and
	// referenced here, see: api/models/netalloc/netalloc.proto
	IpAddresses []string `protobuf:"bytes,5,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"`
	// Vrf defines the ID of VRF table that the interface is assigned to.
	// The VRF table must be explicitely configured (see api/models/vpp/l3/vrf.proto).
	// When using unnumbered interface the actual vrf is inherited from
	// the interface referenced by the numbered interface and this field is ignored.
	Vrf uint32 `protobuf:"varint,6,opt,name=vrf,proto3" json:"vrf,omitempty"`
	// SetDhcpClient enables DHCP client on interface.
	SetDhcpClient bool             `protobuf:"varint,7,opt,name=set_dhcp_client,json=setDhcpClient,proto3" json:"set_dhcp_client,omitempty"`
	Ip6Nd         *Interface_IP6ND `protobuf:"bytes,14,opt,name=ip6_nd,json=ip6Nd,proto3" json:"ip6_nd,omitempty"`
	// Mtu sets MTU (Maximum Transmission Unit) for this interface.
	// If set to zero, default MTU (usually 9216) will be used.
	Mtu          uint32                   `protobuf:"varint,8,opt,name=mtu,proto3" json:"mtu,omitempty"`
	Unnumbered   *Interface_Unnumbered    `protobuf:"bytes,9,opt,name=unnumbered,proto3" json:"unnumbered,omitempty"`
	RxModes      []*Interface_RxMode      `protobuf:"bytes,12,rep,name=rx_modes,json=rxModes,proto3" json:"rx_modes,omitempty"`
	RxPlacements []*Interface_RxPlacement `protobuf:"bytes,13,rep,name=rx_placements,json=rxPlacements,proto3" json:"rx_placements,omitempty"`
	// Link defines configuration for specific interface types.
	// It can be nil for some interfaces types like: loopback and DPDK.
	//
	// Types that are assignable to Link:
	//	*Interface_Sub
	//	*Interface_Memif
	//	*Interface_Afpacket
	//	*Interface_Tap
	//	*Interface_Vxlan
	//	*Interface_Ipsec
	//	*Interface_VmxNet3
	//	*Interface_Bond
	//	*Interface_Gre
	//	*Interface_Gtpu
	//	*Interface_Ipip
	//	*Interface_Wireguard
	Link isInterface_Link `protobuf_oneof:"link"`
	// contains filtered or unexported fields
}

Interface defines a VPP interface.

func (*Interface) Descriptor deprecated

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

Deprecated: Use Interface.ProtoReflect.Descriptor instead.

func (*Interface) GetAfpacket

func (x *Interface) GetAfpacket() *AfpacketLink

func (*Interface) GetBond

func (x *Interface) GetBond() *BondLink

func (*Interface) GetEnabled

func (x *Interface) GetEnabled() bool

func (*Interface) GetGre

func (x *Interface) GetGre() *GreLink

func (*Interface) GetGtpu

func (x *Interface) GetGtpu() *GtpuLink

func (*Interface) GetIp6Nd added in v3.2.0

func (x *Interface) GetIp6Nd() *Interface_IP6ND

func (*Interface) GetIpAddresses

func (x *Interface) GetIpAddresses() []string

func (*Interface) GetIpip added in v3.1.0

func (x *Interface) GetIpip() *IPIPLink

func (*Interface) GetIpsec deprecated

func (x *Interface) GetIpsec() *IPSecLink

Deprecated: Do not use.

func (m *Interface) GetLink() isInterface_Link

func (*Interface) GetMemif

func (x *Interface) GetMemif() *MemifLink

func (*Interface) GetMtu

func (x *Interface) GetMtu() uint32

func (*Interface) GetName

func (x *Interface) GetName() string

func (*Interface) GetPhysAddress

func (x *Interface) GetPhysAddress() string

func (*Interface) GetRxModes

func (x *Interface) GetRxModes() []*Interface_RxMode

func (*Interface) GetRxPlacements

func (x *Interface) GetRxPlacements() []*Interface_RxPlacement

func (*Interface) GetSetDhcpClient

func (x *Interface) GetSetDhcpClient() bool

func (*Interface) GetSub

func (x *Interface) GetSub() *SubInterface

func (*Interface) GetTap

func (x *Interface) GetTap() *TapLink

func (*Interface) GetType

func (x *Interface) GetType() Interface_Type

func (*Interface) GetUnnumbered

func (x *Interface) GetUnnumbered() *Interface_Unnumbered

func (*Interface) GetVmxNet3

func (x *Interface) GetVmxNet3() *VmxNet3Link

func (*Interface) GetVrf

func (x *Interface) GetVrf() uint32

func (*Interface) GetVxlan

func (x *Interface) GetVxlan() *VxlanLink

func (*Interface) GetWireguard added in v3.2.0

func (x *Interface) GetWireguard() *WireguardLink

func (*Interface) MarshalJSON

func (m *Interface) MarshalJSON() ([]byte, error)

MarshalJSON ensures that field of type 'oneOf' is correctly marshaled by using protobuf json marshaller

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) ProtoReflect added in v3.2.0

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

func (*Interface) Reset

func (x *Interface) Reset()

func (*Interface) String

func (x *Interface) String() string

func (*Interface) UnmarshalJSON

func (m *Interface) UnmarshalJSON(data []byte) error

UnmarshalJSON ensures that field of type 'oneOf' is correctly unmarshaled

type InterfaceNotification

type InterfaceNotification struct {
	Type  InterfaceNotification_NotifType `protobuf:"varint,1,opt,name=type,proto3,enum=ligato.vpp.interfaces.InterfaceNotification_NotifType" json:"type,omitempty"`
	State *InterfaceState                 `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceNotification) Descriptor deprecated

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

Deprecated: Use InterfaceNotification.ProtoReflect.Descriptor instead.

func (*InterfaceNotification) GetState

func (x *InterfaceNotification) GetState() *InterfaceState

func (*InterfaceNotification) GetType

func (*InterfaceNotification) ProtoMessage

func (*InterfaceNotification) ProtoMessage()

func (*InterfaceNotification) ProtoReflect added in v3.2.0

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

func (*InterfaceNotification) Reset

func (x *InterfaceNotification) Reset()

func (*InterfaceNotification) String

func (x *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) Descriptor added in v3.2.0

func (InterfaceNotification_NotifType) Enum added in v3.2.0

func (InterfaceNotification_NotifType) EnumDescriptor deprecated

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

Deprecated: Use InterfaceNotification_NotifType.Descriptor instead.

func (InterfaceNotification_NotifType) Number added in v3.2.0

func (InterfaceNotification_NotifType) String

func (InterfaceNotification_NotifType) Type added in v3.2.0

type InterfaceState

type InterfaceState 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         Interface_Type             `protobuf:"varint,3,opt,name=type,proto3,enum=ligato.vpp.interfaces.Interface_Type" json:"type,omitempty"`
	IfIndex      uint32                     `protobuf:"varint,4,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"`
	AdminStatus  InterfaceState_Status      `` /* 144-byte string literal not displayed */
	OperStatus   InterfaceState_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       InterfaceState_Duplex      `protobuf:"varint,11,opt,name=duplex,proto3,enum=ligato.vpp.interfaces.InterfaceState_Duplex" json:"duplex,omitempty"`
	Statistics   *InterfaceState_Statistics `protobuf:"bytes,100,opt,name=statistics,proto3" json:"statistics,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceState) Descriptor deprecated

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

Deprecated: Use InterfaceState.ProtoReflect.Descriptor instead.

func (*InterfaceState) GetAdminStatus

func (x *InterfaceState) GetAdminStatus() InterfaceState_Status

func (*InterfaceState) GetDuplex

func (x *InterfaceState) GetDuplex() InterfaceState_Duplex

func (*InterfaceState) GetIfIndex

func (x *InterfaceState) GetIfIndex() uint32

func (*InterfaceState) GetInternalName

func (x *InterfaceState) GetInternalName() string

func (*InterfaceState) GetLastChange

func (x *InterfaceState) GetLastChange() int64

func (*InterfaceState) GetMtu

func (x *InterfaceState) GetMtu() uint32

func (*InterfaceState) GetName

func (x *InterfaceState) GetName() string

func (*InterfaceState) GetOperStatus

func (x *InterfaceState) GetOperStatus() InterfaceState_Status

func (*InterfaceState) GetPhysAddress

func (x *InterfaceState) GetPhysAddress() string

func (*InterfaceState) GetSpeed

func (x *InterfaceState) GetSpeed() uint64

func (*InterfaceState) GetStatistics

func (x *InterfaceState) GetStatistics() *InterfaceState_Statistics

func (*InterfaceState) GetType

func (x *InterfaceState) GetType() Interface_Type

func (*InterfaceState) ProtoMessage

func (*InterfaceState) ProtoMessage()

func (*InterfaceState) ProtoReflect added in v3.2.0

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

func (*InterfaceState) Reset

func (x *InterfaceState) Reset()

func (*InterfaceState) String

func (x *InterfaceState) String() string

type InterfaceState_Duplex

type InterfaceState_Duplex int32
const (
	InterfaceState_UNKNOWN_DUPLEX InterfaceState_Duplex = 0
	InterfaceState_HALF           InterfaceState_Duplex = 1
	InterfaceState_FULL           InterfaceState_Duplex = 2
)

func (InterfaceState_Duplex) Descriptor added in v3.2.0

func (InterfaceState_Duplex) Enum added in v3.2.0

func (InterfaceState_Duplex) EnumDescriptor deprecated

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

Deprecated: Use InterfaceState_Duplex.Descriptor instead.

func (InterfaceState_Duplex) Number added in v3.2.0

func (InterfaceState_Duplex) String

func (x InterfaceState_Duplex) String() string

func (InterfaceState_Duplex) Type added in v3.2.0

type InterfaceState_Statistics

type InterfaceState_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"`
	// contains filtered or unexported fields
}

func (*InterfaceState_Statistics) Descriptor deprecated

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

Deprecated: Use InterfaceState_Statistics.ProtoReflect.Descriptor instead.

func (*InterfaceState_Statistics) GetDropPackets

func (x *InterfaceState_Statistics) GetDropPackets() uint64

func (*InterfaceState_Statistics) GetInBytes

func (x *InterfaceState_Statistics) GetInBytes() uint64

func (*InterfaceState_Statistics) GetInErrorPackets

func (x *InterfaceState_Statistics) GetInErrorPackets() uint64

func (*InterfaceState_Statistics) GetInMissPackets

func (x *InterfaceState_Statistics) GetInMissPackets() uint64

func (*InterfaceState_Statistics) GetInNobufPackets

func (x *InterfaceState_Statistics) GetInNobufPackets() uint64

func (*InterfaceState_Statistics) GetInPackets

func (x *InterfaceState_Statistics) GetInPackets() uint64

func (*InterfaceState_Statistics) GetIpv4Packets

func (x *InterfaceState_Statistics) GetIpv4Packets() uint64

func (*InterfaceState_Statistics) GetIpv6Packets

func (x *InterfaceState_Statistics) GetIpv6Packets() uint64

func (*InterfaceState_Statistics) GetOutBytes

func (x *InterfaceState_Statistics) GetOutBytes() uint64

func (*InterfaceState_Statistics) GetOutErrorPackets

func (x *InterfaceState_Statistics) GetOutErrorPackets() uint64

func (*InterfaceState_Statistics) GetOutPackets

func (x *InterfaceState_Statistics) GetOutPackets() uint64

func (*InterfaceState_Statistics) GetPuntPackets

func (x *InterfaceState_Statistics) GetPuntPackets() uint64

func (*InterfaceState_Statistics) ProtoMessage

func (*InterfaceState_Statistics) ProtoMessage()

func (*InterfaceState_Statistics) ProtoReflect added in v3.2.0

func (*InterfaceState_Statistics) Reset

func (x *InterfaceState_Statistics) Reset()

func (*InterfaceState_Statistics) String

func (x *InterfaceState_Statistics) String() string

type InterfaceState_Status

type InterfaceState_Status int32
const (
	InterfaceState_UNKNOWN_STATUS InterfaceState_Status = 0
	InterfaceState_UP             InterfaceState_Status = 1
	InterfaceState_DOWN           InterfaceState_Status = 2
	InterfaceState_DELETED        InterfaceState_Status = 3
)

func (InterfaceState_Status) Descriptor added in v3.2.0

func (InterfaceState_Status) Enum added in v3.2.0

func (InterfaceState_Status) EnumDescriptor deprecated

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

Deprecated: Use InterfaceState_Status.Descriptor instead.

func (InterfaceState_Status) Number added in v3.2.0

func (InterfaceState_Status) String

func (x InterfaceState_Status) String() string

func (InterfaceState_Status) Type added in v3.2.0

type InterfaceStats

type InterfaceStats struct {
	Name        string                          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Rx          *InterfaceStats_CombinedCounter `protobuf:"bytes,2,opt,name=rx,proto3" json:"rx,omitempty"`
	Tx          *InterfaceStats_CombinedCounter `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	RxUnicast   *InterfaceStats_CombinedCounter `protobuf:"bytes,4,opt,name=rx_unicast,json=rxUnicast,proto3" json:"rx_unicast,omitempty"`
	RxMulticast *InterfaceStats_CombinedCounter `protobuf:"bytes,5,opt,name=rx_multicast,json=rxMulticast,proto3" json:"rx_multicast,omitempty"`
	RxBroadcast *InterfaceStats_CombinedCounter `protobuf:"bytes,6,opt,name=rx_broadcast,json=rxBroadcast,proto3" json:"rx_broadcast,omitempty"`
	TxUnicast   *InterfaceStats_CombinedCounter `protobuf:"bytes,7,opt,name=tx_unicast,json=txUnicast,proto3" json:"tx_unicast,omitempty"`
	TxMulticast *InterfaceStats_CombinedCounter `protobuf:"bytes,8,opt,name=tx_multicast,json=txMulticast,proto3" json:"tx_multicast,omitempty"`
	TxBroadcast *InterfaceStats_CombinedCounter `protobuf:"bytes,9,opt,name=tx_broadcast,json=txBroadcast,proto3" json:"tx_broadcast,omitempty"`
	RxError     uint64                          `protobuf:"varint,12,opt,name=rx_error,json=rxError,proto3" json:"rx_error,omitempty"`
	TxError     uint64                          `protobuf:"varint,13,opt,name=tx_error,json=txError,proto3" json:"tx_error,omitempty"`
	RxNoBuf     uint64                          `protobuf:"varint,10,opt,name=rx_no_buf,json=rxNoBuf,proto3" json:"rx_no_buf,omitempty"`
	RxMiss      uint64                          `protobuf:"varint,11,opt,name=rx_miss,json=rxMiss,proto3" json:"rx_miss,omitempty"`
	Drops       uint64                          `protobuf:"varint,14,opt,name=drops,proto3" json:"drops,omitempty"`
	Punts       uint64                          `protobuf:"varint,15,opt,name=punts,proto3" json:"punts,omitempty"`
	Ip4         uint64                          `protobuf:"varint,16,opt,name=ip4,proto3" json:"ip4,omitempty"`
	Ip6         uint64                          `protobuf:"varint,17,opt,name=ip6,proto3" json:"ip6,omitempty"`
	Mpls        uint64                          `protobuf:"varint,18,opt,name=mpls,proto3" json:"mpls,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceStats) Descriptor deprecated

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

Deprecated: Use InterfaceStats.ProtoReflect.Descriptor instead.

func (*InterfaceStats) GetDrops

func (x *InterfaceStats) GetDrops() uint64

func (*InterfaceStats) GetIp4

func (x *InterfaceStats) GetIp4() uint64

func (*InterfaceStats) GetIp6

func (x *InterfaceStats) GetIp6() uint64

func (*InterfaceStats) GetMpls

func (x *InterfaceStats) GetMpls() uint64

func (*InterfaceStats) GetName

func (x *InterfaceStats) GetName() string

func (*InterfaceStats) GetPunts

func (x *InterfaceStats) GetPunts() uint64

func (*InterfaceStats) GetRx

func (*InterfaceStats) GetRxBroadcast

func (x *InterfaceStats) GetRxBroadcast() *InterfaceStats_CombinedCounter

func (*InterfaceStats) GetRxError

func (x *InterfaceStats) GetRxError() uint64

func (*InterfaceStats) GetRxMiss

func (x *InterfaceStats) GetRxMiss() uint64

func (*InterfaceStats) GetRxMulticast

func (x *InterfaceStats) GetRxMulticast() *InterfaceStats_CombinedCounter

func (*InterfaceStats) GetRxNoBuf

func (x *InterfaceStats) GetRxNoBuf() uint64

func (*InterfaceStats) GetRxUnicast

func (*InterfaceStats) GetTx

func (*InterfaceStats) GetTxBroadcast

func (x *InterfaceStats) GetTxBroadcast() *InterfaceStats_CombinedCounter

func (*InterfaceStats) GetTxError

func (x *InterfaceStats) GetTxError() uint64

func (*InterfaceStats) GetTxMulticast

func (x *InterfaceStats) GetTxMulticast() *InterfaceStats_CombinedCounter

func (*InterfaceStats) GetTxUnicast

func (*InterfaceStats) ProtoMessage

func (*InterfaceStats) ProtoMessage()

func (*InterfaceStats) ProtoReflect added in v3.2.0

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

func (*InterfaceStats) Reset

func (x *InterfaceStats) Reset()

func (*InterfaceStats) String

func (x *InterfaceStats) String() string

type InterfaceStats_CombinedCounter

type InterfaceStats_CombinedCounter struct {
	Packets uint64 `protobuf:"varint,1,opt,name=packets,proto3" json:"packets,omitempty"`
	Bytes   uint64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceStats_CombinedCounter) Descriptor deprecated

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

Deprecated: Use InterfaceStats_CombinedCounter.ProtoReflect.Descriptor instead.

func (*InterfaceStats_CombinedCounter) GetBytes

func (x *InterfaceStats_CombinedCounter) GetBytes() uint64

func (*InterfaceStats_CombinedCounter) GetPackets

func (x *InterfaceStats_CombinedCounter) GetPackets() uint64

func (*InterfaceStats_CombinedCounter) ProtoMessage

func (*InterfaceStats_CombinedCounter) ProtoMessage()

func (*InterfaceStats_CombinedCounter) ProtoReflect added in v3.2.0

func (*InterfaceStats_CombinedCounter) Reset

func (x *InterfaceStats_CombinedCounter) Reset()

func (*InterfaceStats_CombinedCounter) String

type Interface_Afpacket

type Interface_Afpacket struct {
	Afpacket *AfpacketLink `protobuf:"bytes,102,opt,name=afpacket,proto3,oneof"`
}

type Interface_Bond

type Interface_Bond struct {
	Bond *BondLink `protobuf:"bytes,107,opt,name=bond,proto3,oneof"`
}

type Interface_Gre

type Interface_Gre struct {
	Gre *GreLink `protobuf:"bytes,108,opt,name=gre,proto3,oneof"`
}

type Interface_Gtpu

type Interface_Gtpu struct {
	Gtpu *GtpuLink `protobuf:"bytes,109,opt,name=gtpu,proto3,oneof"`
}

type Interface_IP6ND added in v3.2.0

type Interface_IP6ND struct {

	// Enable IPv6 ND address autoconfiguration.
	AddressAutoconfig bool `protobuf:"varint,1,opt,name=address_autoconfig,json=addressAutoconfig,proto3" json:"address_autoconfig,omitempty"`
	// Enable installing default routes.
	InstallDefaultRoutes bool `protobuf:"varint,2,opt,name=install_default_routes,json=installDefaultRoutes,proto3" json:"install_default_routes,omitempty"`
	// contains filtered or unexported fields
}

Ip6Nd is used to enable/disable IPv6 ND address autoconfiguration and setting up default routes

func (*Interface_IP6ND) Descriptor deprecated added in v3.2.0

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

Deprecated: Use Interface_IP6ND.ProtoReflect.Descriptor instead.

func (*Interface_IP6ND) GetAddressAutoconfig added in v3.2.0

func (x *Interface_IP6ND) GetAddressAutoconfig() bool

func (*Interface_IP6ND) GetInstallDefaultRoutes added in v3.2.0

func (x *Interface_IP6ND) GetInstallDefaultRoutes() bool

func (*Interface_IP6ND) ProtoMessage added in v3.2.0

func (*Interface_IP6ND) ProtoMessage()

func (*Interface_IP6ND) ProtoReflect added in v3.2.0

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

func (*Interface_IP6ND) Reset added in v3.2.0

func (x *Interface_IP6ND) Reset()

func (*Interface_IP6ND) String added in v3.2.0

func (x *Interface_IP6ND) String() string

type Interface_Ipip added in v3.1.0

type Interface_Ipip struct {
	Ipip *IPIPLink `protobuf:"bytes,110,opt,name=ipip,proto3,oneof"`
}

type Interface_Ipsec

type Interface_Ipsec struct {
	// Deprecated: Do not use.
	Ipsec *IPSecLink `protobuf:"bytes,105,opt,name=ipsec,proto3,oneof"` // Deprecated in VPP 20.01+. Use IPIP_TUNNEL + ipsec.TunnelProtection instead.
}

type Interface_Memif

type Interface_Memif struct {
	Memif *MemifLink `protobuf:"bytes,101,opt,name=memif,proto3,oneof"`
}

type Interface_RxMode

type Interface_RxMode struct {
	Queue uint32                `protobuf:"varint,1,opt,name=queue,proto3" json:"queue,omitempty"`
	Mode  Interface_RxMode_Type `protobuf:"varint,2,opt,name=mode,proto3,enum=ligato.vpp.interfaces.Interface_RxMode_Type" json:"mode,omitempty"`
	// DefaultMode, if set to true, the <queue> field will be ignored
	// and the <mode> will be used as a default for all the queues.
	DefaultMode bool `protobuf:"varint,3,opt,name=default_mode,json=defaultMode,proto3" json:"default_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_RxMode) Descriptor deprecated

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

Deprecated: Use Interface_RxMode.ProtoReflect.Descriptor instead.

func (*Interface_RxMode) GetDefaultMode

func (x *Interface_RxMode) GetDefaultMode() bool

func (*Interface_RxMode) GetMode

func (*Interface_RxMode) GetQueue

func (x *Interface_RxMode) GetQueue() uint32

func (*Interface_RxMode) ProtoMessage

func (*Interface_RxMode) ProtoMessage()

func (*Interface_RxMode) ProtoReflect added in v3.2.0

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

func (*Interface_RxMode) Reset

func (x *Interface_RxMode) Reset()

func (*Interface_RxMode) String

func (x *Interface_RxMode) String() string

type Interface_RxMode_Type

type Interface_RxMode_Type int32

Type definition is from: vpp/include/vnet/interface.h

const (
	Interface_RxMode_UNKNOWN   Interface_RxMode_Type = 0
	Interface_RxMode_POLLING   Interface_RxMode_Type = 1
	Interface_RxMode_INTERRUPT Interface_RxMode_Type = 2
	Interface_RxMode_ADAPTIVE  Interface_RxMode_Type = 3
	Interface_RxMode_DEFAULT   Interface_RxMode_Type = 4
)

func (Interface_RxMode_Type) Descriptor added in v3.2.0

func (Interface_RxMode_Type) Enum added in v3.2.0

func (Interface_RxMode_Type) EnumDescriptor deprecated

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

Deprecated: Use Interface_RxMode_Type.Descriptor instead.

func (Interface_RxMode_Type) Number added in v3.2.0

func (Interface_RxMode_Type) String

func (x Interface_RxMode_Type) String() string

func (Interface_RxMode_Type) Type added in v3.2.0

type Interface_RxPlacement

type Interface_RxPlacement struct {

	// Select from interval <0, number-of-queues)
	Queue uint32 `protobuf:"varint,1,opt,name=queue,proto3" json:"queue,omitempty"`
	// Select from interval <0, number-of-workers)
	Worker uint32 `protobuf:"varint,2,opt,name=worker,proto3" json:"worker,omitempty"`
	// Let the main thread to process the given queue
	//  - if enabled, value of <worker> is ignored
	MainThread bool `protobuf:"varint,3,opt,name=main_thread,json=mainThread,proto3" json:"main_thread,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface_RxPlacement) Descriptor deprecated

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

Deprecated: Use Interface_RxPlacement.ProtoReflect.Descriptor instead.

func (*Interface_RxPlacement) GetMainThread

func (x *Interface_RxPlacement) GetMainThread() bool

func (*Interface_RxPlacement) GetQueue

func (x *Interface_RxPlacement) GetQueue() uint32

func (*Interface_RxPlacement) GetWorker

func (x *Interface_RxPlacement) GetWorker() uint32

func (*Interface_RxPlacement) ProtoMessage

func (*Interface_RxPlacement) ProtoMessage()

func (*Interface_RxPlacement) ProtoReflect added in v3.2.0

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

func (*Interface_RxPlacement) Reset

func (x *Interface_RxPlacement) Reset()

func (*Interface_RxPlacement) String

func (x *Interface_RxPlacement) String() string

type Interface_Sub

type Interface_Sub struct {
	Sub *SubInterface `protobuf:"bytes,100,opt,name=sub,proto3,oneof"`
}

type Interface_Tap

type Interface_Tap struct {
	Tap *TapLink `protobuf:"bytes,103,opt,name=tap,proto3,oneof"`
}

type Interface_Type

type Interface_Type int32

Type defines VPP interface types.

const (
	Interface_UNDEFINED_TYPE    Interface_Type = 0
	Interface_SUB_INTERFACE     Interface_Type = 1
	Interface_SOFTWARE_LOOPBACK Interface_Type = 2
	Interface_DPDK              Interface_Type = 3
	Interface_MEMIF             Interface_Type = 4
	Interface_TAP               Interface_Type = 5
	Interface_AF_PACKET         Interface_Type = 6
	Interface_VXLAN_TUNNEL      Interface_Type = 7
	// Deprecated: Do not use.
	Interface_IPSEC_TUNNEL      Interface_Type = 8 // Deprecated in VPP 20.01+. Use IPIP_TUNNEL + ipsec.TunnelProtection instead.
	Interface_VMXNET3_INTERFACE Interface_Type = 9
	Interface_BOND_INTERFACE    Interface_Type = 10
	Interface_GRE_TUNNEL        Interface_Type = 11
	Interface_GTPU_TUNNEL       Interface_Type = 12
	Interface_IPIP_TUNNEL       Interface_Type = 13
	Interface_WIREGUARD_TUNNEL  Interface_Type = 14
)

func (Interface_Type) Descriptor added in v3.2.0

func (Interface_Type) Enum added in v3.2.0

func (x Interface_Type) Enum() *Interface_Type

func (Interface_Type) EnumDescriptor deprecated

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

Deprecated: Use Interface_Type.Descriptor instead.

func (Interface_Type) Number added in v3.2.0

func (Interface_Type) String

func (x Interface_Type) String() string

func (Interface_Type) Type added in v3.2.0

type Interface_Unnumbered

type Interface_Unnumbered struct {

	// InterfaceWithIp is the name of interface to inherit IP address from.
	InterfaceWithIp string `protobuf:"bytes,1,opt,name=interface_with_ip,json=interfaceWithIp,proto3" json:"interface_with_ip,omitempty"`
	// contains filtered or unexported fields
}

Unnumbered is used for inheriting IP address from another interface.

func (*Interface_Unnumbered) Descriptor deprecated

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

Deprecated: Use Interface_Unnumbered.ProtoReflect.Descriptor instead.

func (*Interface_Unnumbered) GetInterfaceWithIp

func (x *Interface_Unnumbered) GetInterfaceWithIp() string

func (*Interface_Unnumbered) ProtoMessage

func (*Interface_Unnumbered) ProtoMessage()

func (*Interface_Unnumbered) ProtoReflect added in v3.2.0

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

func (*Interface_Unnumbered) Reset

func (x *Interface_Unnumbered) Reset()

func (*Interface_Unnumbered) String

func (x *Interface_Unnumbered) String() string

type Interface_VmxNet3

type Interface_VmxNet3 struct {
	VmxNet3 *VmxNet3Link `protobuf:"bytes,106,opt,name=vmx_net3,json=vmxNet3,proto3,oneof"`
}

type Interface_Vxlan

type Interface_Vxlan struct {
	Vxlan *VxlanLink `protobuf:"bytes,104,opt,name=vxlan,proto3,oneof"`
}

type Interface_Wireguard added in v3.2.0

type Interface_Wireguard struct {
	Wireguard *WireguardLink `protobuf:"bytes,111,opt,name=wireguard,proto3,oneof"`
}
type MemifLink struct {
	Mode   MemifLink_MemifMode `protobuf:"varint,1,opt,name=mode,proto3,enum=ligato.vpp.interfaces.MemifLink_MemifMode" json:"mode,omitempty"`
	Master bool                `protobuf:"varint,2,opt,name=master,proto3" json:"master,omitempty"`
	// Id is a 32bit integer used to authenticate and match opposite sides of the connection
	Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	// Filename of the socket used for connection establishment
	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"`
	// The number of entries of RX/TX rings
	RingSize uint32 `protobuf:"varint,6,opt,name=ring_size,json=ringSize,proto3" json:"ring_size,omitempty"`
	// Size of the buffer allocated for each ring entry
	BufferSize uint32 `protobuf:"varint,7,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"`
	// Number of rx queues (only valid for slave)
	RxQueues uint32 `protobuf:"varint,8,opt,name=rx_queues,json=rxQueues,proto3" json:"rx_queues,omitempty"`
	// Number of tx queues (only valid for slave)
	TxQueues uint32 `protobuf:"varint,9,opt,name=tx_queues,json=txQueues,proto3" json:"tx_queues,omitempty"`
	// contains filtered or unexported fields
}

MemifLink defines configuration for interface type: MEMIF

func (*MemifLink) Descriptor deprecated

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

Deprecated: Use MemifLink.ProtoReflect.Descriptor instead.

func (*MemifLink) GetBufferSize

func (x *MemifLink) GetBufferSize() uint32

func (*MemifLink) GetId

func (x *MemifLink) GetId() uint32

func (*MemifLink) GetMaster

func (x *MemifLink) GetMaster() bool

func (*MemifLink) GetMode

func (x *MemifLink) GetMode() MemifLink_MemifMode

func (*MemifLink) GetRingSize

func (x *MemifLink) GetRingSize() uint32

func (*MemifLink) GetRxQueues

func (x *MemifLink) GetRxQueues() uint32

func (*MemifLink) GetSecret

func (x *MemifLink) GetSecret() string

func (*MemifLink) GetSocketFilename

func (x *MemifLink) GetSocketFilename() string

func (*MemifLink) GetTxQueues

func (x *MemifLink) GetTxQueues() uint32

func (*MemifLink) ProtoMessage

func (*MemifLink) ProtoMessage()

func (*MemifLink) ProtoReflect added in v3.2.0

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

func (*MemifLink) Reset

func (x *MemifLink) Reset()

func (*MemifLink) String

func (x *MemifLink) String() string
type MemifLink_MemifMode int32
const (
	MemifLink_ETHERNET    MemifLink_MemifMode = 0
	MemifLink_IP          MemifLink_MemifMode = 1
	MemifLink_PUNT_INJECT MemifLink_MemifMode = 2
)
func (MemifLink_MemifMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use MemifLink_MemifMode.Descriptor instead.

func (x MemifLink_MemifMode) String() string

type Span

type Span struct {
	InterfaceFrom string         `protobuf:"bytes,1,opt,name=interface_from,json=interfaceFrom,proto3" json:"interface_from,omitempty"`
	InterfaceTo   string         `protobuf:"bytes,2,opt,name=interface_to,json=interfaceTo,proto3" json:"interface_to,omitempty"`
	Direction     Span_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=ligato.vpp.interfaces.Span_Direction" json:"direction,omitempty"`
	IsL2          bool           `protobuf:"varint,4,opt,name=is_l2,json=isL2,proto3" json:"is_l2,omitempty"`
	// contains filtered or unexported fields
}

func (*Span) Descriptor deprecated

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

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetDirection

func (x *Span) GetDirection() Span_Direction

func (*Span) GetInterfaceFrom

func (x *Span) GetInterfaceFrom() string

func (*Span) GetInterfaceTo

func (x *Span) GetInterfaceTo() string

func (*Span) GetIsL2

func (x *Span) GetIsL2() bool

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) ProtoReflect added in v3.2.0

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

func (*Span) Reset

func (x *Span) Reset()

func (*Span) String

func (x *Span) String() string

type Span_Direction

type Span_Direction int32
const (
	Span_UNKNOWN Span_Direction = 0
	Span_RX      Span_Direction = 1
	Span_TX      Span_Direction = 2
	Span_BOTH    Span_Direction = 3
)

func (Span_Direction) Descriptor added in v3.2.0

func (Span_Direction) Enum added in v3.2.0

func (x Span_Direction) Enum() *Span_Direction

func (Span_Direction) EnumDescriptor deprecated

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

Deprecated: Use Span_Direction.Descriptor instead.

func (Span_Direction) Number added in v3.2.0

func (Span_Direction) String

func (x Span_Direction) String() string

func (Span_Direction) Type added in v3.2.0

type SubInterface

type SubInterface struct {

	// Name of the parent (super) interface
	ParentName string `protobuf:"bytes,1,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"`
	// SubInterface ID, used as VLAN
	SubId uint32 `protobuf:"varint,2,opt,name=sub_id,json=subId,proto3" json:"sub_id,omitempty"`
	// VLAN tag rewrite rule applied for given tag for sub-interface
	TagRwOption SubInterface_TagRewriteOptions `` /* 155-byte string literal not displayed */
	// Set ether-type of the first tag to dot1q if true, dot1ad otherwise
	PushDot1Q bool `protobuf:"varint,4,opt,name=push_dot1q,json=pushDot1q,proto3" json:"push_dot1q,omitempty"`
	// First tag (required for PUSH1 and any TRANSLATE)
	Tag1 uint32 `protobuf:"varint,5,opt,name=tag1,proto3" json:"tag1,omitempty"`
	// Second tag (required for PUSH2 and any TRANSLATE)
	Tag2 uint32 `protobuf:"varint,6,opt,name=tag2,proto3" json:"tag2,omitempty"`
	// contains filtered or unexported fields
}

SubInterface defines configuration for interface type: SUB_INTERFACE

func (*SubInterface) Descriptor deprecated

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

Deprecated: Use SubInterface.ProtoReflect.Descriptor instead.

func (*SubInterface) GetParentName

func (x *SubInterface) GetParentName() string

func (*SubInterface) GetPushDot1Q

func (x *SubInterface) GetPushDot1Q() bool

func (*SubInterface) GetSubId

func (x *SubInterface) GetSubId() uint32

func (*SubInterface) GetTag1

func (x *SubInterface) GetTag1() uint32

func (*SubInterface) GetTag2

func (x *SubInterface) GetTag2() uint32

func (*SubInterface) GetTagRwOption

func (x *SubInterface) GetTagRwOption() SubInterface_TagRewriteOptions

func (*SubInterface) ProtoMessage

func (*SubInterface) ProtoMessage()

func (*SubInterface) ProtoReflect added in v3.2.0

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

func (*SubInterface) Reset

func (x *SubInterface) Reset()

func (*SubInterface) String

func (x *SubInterface) String() string

type SubInterface_TagRewriteOptions

type SubInterface_TagRewriteOptions int32
const (
	SubInterface_DISABLED    SubInterface_TagRewriteOptions = 0
	SubInterface_PUSH1       SubInterface_TagRewriteOptions = 1
	SubInterface_PUSH2       SubInterface_TagRewriteOptions = 2
	SubInterface_POP1        SubInterface_TagRewriteOptions = 3
	SubInterface_POP2        SubInterface_TagRewriteOptions = 4
	SubInterface_TRANSLATE11 SubInterface_TagRewriteOptions = 5
	SubInterface_TRANSLATE12 SubInterface_TagRewriteOptions = 6
	SubInterface_TRANSLATE21 SubInterface_TagRewriteOptions = 7
	SubInterface_TRANSLATE22 SubInterface_TagRewriteOptions = 8
)

func (SubInterface_TagRewriteOptions) Descriptor added in v3.2.0

func (SubInterface_TagRewriteOptions) Enum added in v3.2.0

func (SubInterface_TagRewriteOptions) EnumDescriptor deprecated

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

Deprecated: Use SubInterface_TagRewriteOptions.Descriptor instead.

func (SubInterface_TagRewriteOptions) Number added in v3.2.0

func (SubInterface_TagRewriteOptions) String

func (SubInterface_TagRewriteOptions) Type added in v3.2.0

type TapLink struct {

	// 1 / unset = use the original TAP interface; 2 = use a fast virtio-based TAP
	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Name of the TAP interface in the host OS;
	// if empty, it will be auto-generated (suitable for combination with TAP_TO_VPP
	// interface from Linux ifplugin, because then this name is only temporary anyway)
	HostIfName string `protobuf:"bytes,2,opt,name=host_if_name,json=hostIfName,proto3" json:"host_if_name,omitempty"`
	// If TAP connects VPP with microservice, fill this parameter with the target
	// microservice name - should match with the namespace reference of the associated
	// TAP_TO_VPP interface (it is still moved to the namespace by Linux-ifplugin but
	// VPP-ifplugin needs to be aware of this dependency)
	ToMicroservice string `protobuf:"bytes,3,opt,name=to_microservice,json=toMicroservice,proto3" json:"to_microservice,omitempty"`
	// Rx ring buffer size; must be power of 2; default is 256; only for TAP v.2
	RxRingSize uint32 `protobuf:"varint,4,opt,name=rx_ring_size,json=rxRingSize,proto3" json:"rx_ring_size,omitempty"`
	// Tx ring buffer size; must be power of 2; default is 256; only for TAP v.2
	TxRingSize uint32 `protobuf:"varint,5,opt,name=tx_ring_size,json=txRingSize,proto3" json:"tx_ring_size,omitempty"`
	// EnableGso enables GSO mode for TAP interface.
	EnableGso bool `protobuf:"varint,6,opt,name=enable_gso,json=enableGso,proto3" json:"enable_gso,omitempty"`
	// EnableTunnel enables tunnel mode for TAP interface.
	EnableTunnel bool `protobuf:"varint,7,opt,name=enable_tunnel,json=enableTunnel,proto3" json:"enable_tunnel,omitempty"`
	// contains filtered or unexported fields
}

TapLink defines configuration for interface type: TAP

func (*TapLink) Descriptor deprecated

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

Deprecated: Use TapLink.ProtoReflect.Descriptor instead.

func (*TapLink) GetEnableGso

func (x *TapLink) GetEnableGso() bool

func (*TapLink) GetEnableTunnel added in v3.2.0

func (x *TapLink) GetEnableTunnel() bool

func (*TapLink) GetHostIfName

func (x *TapLink) GetHostIfName() string

func (*TapLink) GetRxRingSize

func (x *TapLink) GetRxRingSize() uint32

func (*TapLink) GetToMicroservice

func (x *TapLink) GetToMicroservice() string

func (*TapLink) GetTxRingSize

func (x *TapLink) GetTxRingSize() uint32

func (*TapLink) GetVersion

func (x *TapLink) GetVersion() uint32

func (*TapLink) ProtoMessage

func (*TapLink) ProtoMessage()

func (*TapLink) ProtoReflect added in v3.2.0

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

func (*TapLink) Reset

func (x *TapLink) Reset()

func (*TapLink) String

func (x *TapLink) String() string
type VmxNet3Link struct {

	// Turn on elog
	EnableElog bool `protobuf:"varint,2,opt,name=enable_elog,json=enableElog,proto3" json:"enable_elog,omitempty"`
	// Receive queue size (default is 1024)
	RxqSize uint32 `protobuf:"varint,3,opt,name=rxq_size,json=rxqSize,proto3" json:"rxq_size,omitempty"`
	// Transmit queue size (default is 1024)
	TxqSize uint32 `protobuf:"varint,4,opt,name=txq_size,json=txqSize,proto3" json:"txq_size,omitempty"`
	// contains filtered or unexported fields
}

VmxNet3Link defines configuration for interface type: VMXNET3_INTERFACE PCI address (unsigned 32bit int) is derived from vmxnet3 interface name. It is expected that the interface name is in format "vmxnet3-<d>/<b>/<s>/<f>", where 'd' stands for domain (max ffff), 'b' is bus (max ff), 's' is slot (max 1f) and 'f is function' (max 7). All values are base 16

func (*VmxNet3Link) Descriptor deprecated

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

Deprecated: Use VmxNet3Link.ProtoReflect.Descriptor instead.

func (*VmxNet3Link) GetEnableElog

func (x *VmxNet3Link) GetEnableElog() bool

func (*VmxNet3Link) GetRxqSize

func (x *VmxNet3Link) GetRxqSize() uint32

func (*VmxNet3Link) GetTxqSize

func (x *VmxNet3Link) GetTxqSize() uint32

func (*VmxNet3Link) ProtoMessage

func (*VmxNet3Link) ProtoMessage()

func (*VmxNet3Link) ProtoReflect added in v3.2.0

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

func (*VmxNet3Link) Reset

func (x *VmxNet3Link) Reset()

func (*VmxNet3Link) String

func (x *VmxNet3Link) String() string
type VxlanLink struct {

	// SrcAddress is source VTEP address
	SrcAddress string `protobuf:"bytes,1,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"`
	// DstAddress is destination VTEP address
	DstAddress string `protobuf:"bytes,2,opt,name=dst_address,json=dstAddress,proto3" json:"dst_address,omitempty"`
	// Vni stands for VXLAN Network Identifier
	Vni uint32 `protobuf:"varint,3,opt,name=vni,proto3" json:"vni,omitempty"`
	// Multicast defines name of multicast interface
	Multicast string         `protobuf:"bytes,4,opt,name=multicast,proto3" json:"multicast,omitempty"`
	Gpe       *VxlanLink_Gpe `protobuf:"bytes,5,opt,name=gpe,proto3" json:"gpe,omitempty"`
	// contains filtered or unexported fields
}

VxlanLink defines configuration for interface type: VXLAN_TUNNEL

func (*VxlanLink) Descriptor deprecated

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

Deprecated: Use VxlanLink.ProtoReflect.Descriptor instead.

func (*VxlanLink) GetDstAddress

func (x *VxlanLink) GetDstAddress() string

func (*VxlanLink) GetGpe

func (x *VxlanLink) GetGpe() *VxlanLink_Gpe

func (*VxlanLink) GetMulticast

func (x *VxlanLink) GetMulticast() string

func (*VxlanLink) GetSrcAddress

func (x *VxlanLink) GetSrcAddress() string

func (*VxlanLink) GetVni

func (x *VxlanLink) GetVni() uint32

func (*VxlanLink) ProtoMessage

func (*VxlanLink) ProtoMessage()

func (*VxlanLink) ProtoReflect added in v3.2.0

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

func (*VxlanLink) Reset

func (x *VxlanLink) Reset()

func (*VxlanLink) String

func (x *VxlanLink) String() string
type VxlanLink_Gpe struct {
	DecapVrfId uint32 `protobuf:"varint,1,opt,name=decap_vrf_id,json=decapVrfId,proto3" json:"decap_vrf_id,omitempty"`
	// Protocol defines encapsulated protocol
	Protocol VxlanLink_Gpe_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=ligato.vpp.interfaces.VxlanLink_Gpe_Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

Gpe (Generic Protocol Extension) allows encapsulating not only Ethernet frame payload.

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

Deprecated: Use VxlanLink_Gpe.ProtoReflect.Descriptor instead.

func (x *VxlanLink_Gpe) GetDecapVrfId() uint32
func (x *VxlanLink_Gpe) GetProtocol() VxlanLink_Gpe_Protocol
func (*VxlanLink_Gpe) ProtoMessage()
func (x *VxlanLink_Gpe) ProtoReflect() protoreflect.Message
func (x *VxlanLink_Gpe) Reset()
func (x *VxlanLink_Gpe) String() string
type VxlanLink_Gpe_Protocol int32
const (
	VxlanLink_Gpe_UNKNOWN  VxlanLink_Gpe_Protocol = 0
	VxlanLink_Gpe_IP4      VxlanLink_Gpe_Protocol = 1
	VxlanLink_Gpe_IP6      VxlanLink_Gpe_Protocol = 2
	VxlanLink_Gpe_ETHERNET VxlanLink_Gpe_Protocol = 3
	VxlanLink_Gpe_NSH      VxlanLink_Gpe_Protocol = 4
)
func (VxlanLink_Gpe_Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use VxlanLink_Gpe_Protocol.Descriptor instead.

func (x VxlanLink_Gpe_Protocol) String() string
type WireguardLink struct {

	// Private-key base64
	PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Listen UDP port
	Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// Source IP address
	SrcAddr string `protobuf:"bytes,4,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*WireguardLink) Descriptor deprecated added in v3.2.0

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

Deprecated: Use WireguardLink.ProtoReflect.Descriptor instead.

func (*WireguardLink) GetPort added in v3.2.0

func (x *WireguardLink) GetPort() uint32

func (*WireguardLink) GetPrivateKey added in v3.2.0

func (x *WireguardLink) GetPrivateKey() string

func (*WireguardLink) GetSrcAddr added in v3.2.0

func (x *WireguardLink) GetSrcAddr() string

func (*WireguardLink) ProtoMessage added in v3.2.0

func (*WireguardLink) ProtoMessage()

func (*WireguardLink) ProtoReflect added in v3.2.0

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

func (*WireguardLink) Reset added in v3.2.0

func (x *WireguardLink) Reset()

func (*WireguardLink) String added in v3.2.0

func (x *WireguardLink) String() string

Jump to

Keyboard shortcuts

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