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.

You are reading User Plane Gateway 2.16, an older release. The newest release is 3.2. Go to 3.2

Routing tables and VRF configuration

Routing tables specify the paths that data packets take to reach their destinations. Each entry in a routing table defines a network destination, the next hop to reach it, and the interface used for transmission. Routing tables can be tied to VRFs (Virtual Routing and Forwarding instances), which separate traffic into logical routing domains for different network contexts, such as separating Access, Data, and Control Networks.

User Plane Gateway (UPG) uses the RoutingTable Custom Resource (CR) to create and manage routing tables. The UPG Helm chart automatically generates RoutingTable objects based on the per-interface route definitions in values.yaml. It supports routing for the following networks:

  • Access Network (GRX)
  • Data Network (SGI)
  • NAT pools (default gateway)

To define additional routes not covered by the Helm chart, do so separately during deployment, outside of the UPG chart.

See the example of the values.yaml input to configure networking:

yaml

This configuration creates the following RoutingTable CRs:

yaml

To verify the applied routes on a UPG instance, use this VPP CLI command:

bash

See the output example:

bash

Assign routing tables to instances

RoutingTable CRs are assigned to UPG instances using labels. These labels are either:

  • Automatically assigned by the UPG chart using the fpp-manager.cennso.com/plumbing-instance per-instance label based on the chart name, release name, and UPG instance name
  • Manually defined in the VPPConfig CR under the spec.routingTableSelectors section

Here’s an example of labels generated by the UPG chart:

yaml

You can configure routingTableSelectors in values.yaml to apply the same routing table to multiple UPG instances. You can also define multiple label sets for a UPG instance to apply multiple routing tables based on different labels, for example:

yaml

This configuration is propagated to the VPPConfig CR that matches the UPG instance:

yaml

In this case, the UPG chart generates the basic routing tables that match these labels:

  • app.kubernetes.io/instance: upg-01-upg-fpp
  • app.kubernetes.io/name: upg
  • cennso.net/cnf: upg
  • instance: inst01

You can create additional RoutingTable objects with custom labels (like crossInstance) outside the UPG chart:

yaml

In this case, all UPG instances with a matching VPPConfig label (crossInstance: default-routing-test-apn) will apply the specified routing table.