VPPInterface definition
The VPPInterface Custom Resource (CR) is applied on the Core Cluster and represents a VPP interface. VPPInterface objects can be created manually, by the FPP-CNI, or by the VPP switch pod (for VXLAN meshing). Several interface types are supported: uplink/bond, memif, TAP, VXLAN, GRE, IPsec tunnel, loopback, and external networks.
Configuration examples
This example shows a physical uplink interface owned by a VPP switch pod on node1:
Configuration parameters
These are all parameters that you can use to configure the VPPInterface CR:
- VPPInterfaceKind
- fpp-manager.cennso.comGroup
- v1alpha1Version
- apiVersion:
- fpp-manager.cennso.com/v1alpha1
- kind:
- VPPInterface
- listKind:
- VPPInterfaceList
- plural:
- vppinterfaces
- singular:
- vppinterface
apiVersionstringrequiredConstant"fpp-manager.cennso.com/v1alpha1"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More information: Kubernetes API conventionsOpens in a new tab.kindstringrequiredConstant"VPPInterface"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More information: Kubernetes API conventionsOpens in a new tab.metadataobjectrequiredStandard object metadata. More information: ObjectMetaOpens in a new tab.specobjectrequiredifNamestringrequiredInterface name referred to in VPPConfig. It is not guaranteed to match the VPP interface name.attachToNetworkstringAttach the corresponding interface to the specified network on the VPPSwitch side. Only supported for slave memifs. This causes FPP to create a corresponding memif master interface for this one.bondobjectBond specificationbridgeDomainintegerBridge Domain ID for this interfacegreTunnelobjectGRE Tunnel specificationhardwareAddressstringHardware addressipsstring[]list of
IP/prefixlenfor the interfaceipsecTunnelobjectIPsec Tunnel specificationlcpobjectLinux Control Plane interface specificationmemifobjectmemifinterface specificationmtuintegerMTU setting for this interfacenetworkNamestringFPPNetwork name used to populate BridgeDomainserverTxPlacementstring[]Server Tx queue placement of the master interface created for CNI Less slave memif. To be used together with
attachToNetworkonly. The field has one entry for each of thememif.numRxQueuesqueues. Each entry is a comma-separated list of the VPPSwitch threads that send on that queue. Thread 0 is the main thread of VPPSwitch, and threads 1 and higher are its workers. Without thread 0 in any list, VPPSwitch discards the packets that its main thread sends on the master interface. If VPPSwitch has workers, add thread 0 to the list of queue 0, for example "0,1". If VPPSwitch has no workers, use "0" for every queue.spanSourceobjectSPANSource is a reference to another VPPInterface to be used for SPAN mirroring of this interface.tableintegerTable to use for this interfacetableNamestringRoutingTable name to use as the table for this interfacetapobjectTap interface specificationtxPlacementstring[]Tx queue placement for the interface. The field has one entry for each Tx queue of the interface. Each entry is a comma-separated list of the VPP threads that send on that queue. Thread 0 is the main thread, and threads 1 and higher are the workers. Without thread 0 in any list, VPP discards the packets that the main thread sends on the interface. With workers, add thread 0 to the list of queue 0, for example "0,1". Without workers, use "0" for every queue.typestringPhysical interface type: uplink, external network, or loopbackvlanobjectVLAN sub-interface specificationvxlanTunnelobjectVXLAN Tunnel specification
statusobjectmemberCountintegerrequiredMember count for bond interfacereadybooleanrequiredmessagestringError message, if anyswIfIndexintegerFormatint32VPP Interface indexvppNamestringVPP Interface name