> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/2.16/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/upg/2.16/releases/2.10.0.md).

# User Plane Gateway 2.10.0

**Release date**: 2024-07-19

The new release of User Plane Gateway (UPG) provides the following features and improvements:

- Bump VPP version to FPP-VPP 24.02.3
- Simplified creation of routing tables in VPPConfig
- Fix security issues
- Fix the **loops_per_second** metric

UPG uses Fast Path Provider (FPP) in version 1.3.14 and UPG-VPP in version 1.16.0.

There are no breaking changes in UPG CRD between 2.10.0 and 2.9.0.

## Features

### Bump VPP version to FPP-VPP 24.02.3

UPG 2.10.0 introduces a new VPP version: FPP-VPP 24.02.3. It has been upgraded from FPP-VPP 22.10.X. It allows you to maintain up-to-date features, fixes and security patches in upstream VPP.

### Simplified creation of routing tables in VPPConfig

Previously, you manually created the required routing tables as CLI commands in the **spec.afterCommands** section in the VPPConfig custom resource (CR). With this release, you can create the required routing tables by providing a list of routing table IDs in the **spec.routingTables** section. This creates empty routing tables for both IPv4 and IPv6.

See the example of the new configuration:

```yaml
apiVersion: fpp-manager.cennso.com/v1alpha1
kind: VPPConfig
metadata:
  name: vpp-example
  labels:
    fpp-manager.cennso.com/plumbing-instance: vpp-instance
spec:
  afterCommands:
  - set acl-plugin acl permit src 10.0.0.0/24
  - abf policy add id 0 acl 0 via ip4-lookup-in-table 100
  - abf attach ip4 policy 0 {{ .Ifs.srv.Name }}
  - set acl-plugin acl permit src 10.0.1.0/24
  - abf policy add id 1 acl 1 via ip4-lookup-in-table 200
  - abf attach ip4 policy 1 {{ .Ifs.srv.Name }}
  interfaces:
  - srv
  # Creates IPv4 and IPv6 empty routing tables
  routingTables:
  - 100
  - 200
```

## Fixes

### Fix security issues

UPG 2.10.0 uses a new version of Golang - 1.22.4. This fixes the CVEs in the Golang codebase and libraries.

### Fix the loops_per_second metric

In previous releases, the **loops_per_worker** metric was wrongly scraped and always showed the value `0`.
UPG 2.10.0 fixes this issue and adds per VPP worker thread label to this metric, for example: `vpp_sys_loops_per_second{index="0",thread="0"} 1`.

## Known issues

### Number of Rx/Tx queues and buffer/queue size can't be modified in the CNI-less feature

As a result of implementing the VPP interface, the current implementation of the CNI-less feature does not allow you to modify the following parameters in the VPPInterface object:

- **spec.memif.bufferSize**
- **spec.memif.ringSize**
- **spec.memif.numRxQueues**
- **spec.memif.numTxQueues**

>**CAUTION:** If you want to change one of the parameters above, remove and recreate VPPInterface with a new configuration. This action results in restarting UPG.

## Migration guide

This section describes in detail how to perform the FPP upgrade from version 2.9.0 to 2.10.0.

>**CAUTION:** Updating the UPG Helm chart restarts the currently running UPG instance, causing all active sessions to be dropped. Moreover, UPG 2.9.0 requires the following component versions:

>- FPP CRD in version 2.4.0 or higher installed on the Kubernetes cluster
>- TSR Sink in version 2.0.0 or higher as an IPFix receiver
>
> To use the CNI-less feature, you need FPP in version 2.2.0 or higher installed on the Kubernetes cluster.

Follow these steps to upgrade UPG to version 2.10.0:

1. Install the `upg-crd` Helm chart in version 2.10.0.
1. Ensure that the FPP CRD in version 2.4.0 or higher is installed on the Kubernetes cluster.
1. Remove the `upg-support` Helm chart in version 2.9.0. This also removes the `UPG Overview` Grafana dashboard.
1. Install the `upg-support` Helm chart in version 2.10.0 with the enabled dashboard.
1. Remove the `upg` Helm chart in version 2.9.0.
1. Install the `upg` Helm chart in version 2.10.0.
