Interface configuration
User Plane Gateway (UPG) uses the VPPInterface Custom Resource (CR) to create and manage network interfaces. For VPP-based workloads, the recommended interface type is memif (in-memory interface), which connects the underlying VPP switch to UPG.
You can create a VPPInterface CR in the following ways:
- Manually
- Through the higher-level Cennso Operator
- Using a NetworkAttachmentDefinition (NAD) with
fpp-cnispecified as the interface type
Create interfaces using NAD
The UPG Helm chart simplifies the creation of NetworkAttachmentDefinitions (NADs) for key interfaces. To create NADs, you only need to fill in the corresponding fields in the values.yaml file. The Helm chart includes a preconfigured template that automatically detects these fields, generates the required NADs, and applies them to the cluster. This way, you can make the NADs for these interfaces appear in the cluster without creating them manually:
- GRX - for the Access Network interface
- Sx - for Control Plane communication
- SGI - for the Data Network connectivity
See the example of creating a GRX interface using Helm chart configuration:
The resulting NAD looks like this:
In the cluster, each NAD is automatically converted into a VPPInterface CR. In this example, static IP address assignment is used, so the resulting VPPInterface looks like this:
As a result of creating this VPPInterface CR, the interface name in VPP CLI and in UPG metrics is set to grx.
Also, the Helm chart automatically adds Network Attachment Definitions for GRX, Sx, and SGI to the UPG Deployment:
The VPPInterface is targeted against UPG deployment using the label fpp-manager.cennso.com/plumbing-instance-uid, which is managed by FPP-CNI.
Create interfaces without CNI
You can create memif interfaces directly with VPPInterface without using FPP-CNI. To do this, set useCNILessMemifs to true and add a valid FPPNetwork name to networkName in the UPG chart configuration. All other configuration steps remain the same.
Note
This feature requires Fast Path Provider (FPP) 2.2.0 (Operator and VPPSwitch) deployed on the cluster.
These are the benefits of creating CNI-less memifs:
- The UPG pod starts immediately without waiting for CNI, which is helpful when connecting over 40 interfaces.
- You can change interface settings (IP, MAC, MTU, FPP Network) at runtime. The table below outlines the effects of these changes:
Caution
Before modifying Rx/Tx queues or buffer/queue sizes, check the Known issues.
See the configuration example of a memif without CNI:
Create additional interfaces
You can connect additional interfaces (other than GRX, SGI, and Sx) to UPG by creating NADs and referencing their names in the network annotations. Use the chart configuration to specify extra NAD names in the additionalNetworks field per UPG deployment or under instances.{INSTANCE_NAME}.networking per UPG instance. See the example:
Note
To create additional interfaces, you must create NADs separately, outside of the main Helm chart.