Create and manage interfaces
User Plane Gateway (UPG) uses the VPPInterface Custom Resource (CR) in the Core Cluster 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:
- Using UPGDeployment CR
- Manually
- Through the NetworkAttachment ResourceBroken link
Create interfaces using UPGDeployment CR
The UPGDeployment CR, applied to the Management Cluster, simplifies the creation of VPPInterface for key interfaces. You only need to fill in the corresponding fields in the spec.instances section of the CR. The UPGDeployment CR automatically detects these fields, generates the required VPPInterfaces, and applies them to the Core Cluster. The supported interfaces are:
- GRX - for the Access Network interface
- Sx - for Control Plane communication
- SGI - for the Data Network connectivity
- NAT pool interfaces - for Carrier Grade NAT in the Traffic Detection Function use-case
To create VPPInterface, you must first create proper FPPNetwork objects in the Core Cluster before deploying UPG. To do so, set the valid name per interface using the spec.instances.{name}.networking.{interface}.networkName argument. This approach is called CNI-Less. These are the benefits of creating memifs without FPP-CNI:
- 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 example of creating a GRX interface using UPGDeployment CR configuration:
In UPG configuration, 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.
The VPPInterface is targeted against UPG deployment using the label fpp-manager.cennso.com/plumbing-instance.
Create additional interfaces
You can connect additional interfaces (other than GRX, SGI, and Sx) to UPG by creating VPPInterface in the Core Cluster with fpp-manager.cennso.com/plumbing-instance set to the UPG VPPDeployment name.
Note
The VPPInterfaces must be created outside of the UPGDeployment CR.
See the example:
Verification
To verify the VPPInterface status in the Core Cluster, run the following command:
See the output example:
For more detailed verification and VPP CLI commands, see Check VPP Interfaces.