For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

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:

yaml

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
Schema
  • 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.
  • metadataobjectrequired
    Standard object metadata. More information: ObjectMetaOpens in a new tab.
  • specobjectrequired
    • ifNamestringrequired
      Interface name referred to in VPPConfig. It is not guaranteed to match the VPP interface name.
    • attachToNetworkstring
      Attach 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.
    • bondobject
      Bond specification
    • bridgeDomaininteger
      Bridge Domain ID for this interface
    • greTunnelobject
      GRE Tunnel specification
    • hardwareAddressstring
      Hardware address
    • ipsstring[]

      list of IP/prefixlen for the interface

    • ipsecTunnelobject
      IPsec Tunnel specification
    • lcpobject
      Linux Control Plane interface specification
    • memifobject

      memif interface specification

    • mtuinteger
      MTU setting for this interface
    • networkNamestring
      FPPNetwork name used to populate BridgeDomain
    • serverTxPlacementstring[]

      Server Tx queue placement of the master interface created for CNI Less slave memif. To be used together with attachToNetwork only. The field has one entry for each of the memif.numRxQueues queues. 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.

    • spanSourceobject
      SPANSource is a reference to another VPPInterface to be used for SPAN mirroring of this interface.
    • tableinteger
      Table to use for this interface
    • tableNamestring
      RoutingTable name to use as the table for this interface
    • tapobject
      Tap interface specification
    • txPlacementstring[]
      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.
    • typestring
      Physical interface type: uplink, external network, or loopback
    • vlanobject
      VLAN sub-interface specification
    • vxlanTunnelobject
      VXLAN Tunnel specification
  • statusobject
    • memberCountintegerrequired
      Member count for bond interface
    • readybooleanrequired
    • messagestring
      Error message, if any
    • swIfIndexintegerFormatint32
      VPP Interface index
    • vppNamestring
      VPP Interface name