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.

Configure NWIs

User Plane Gateway (UPG) uses Network Instances (NWIs). NWI is a logical representation of a network interface that connects UPG to various networks (like Access, Control, and Data Networks). The NWIs are declared using the spec configuration from the UPGDeployment CR on the Management Cluster, which is in turn translated into UPGConfig Custom Resource (CR) in the Core Cluster. UPG then creates NWIs based on UPGConfig CR.

You can configure the UPGDeployment CR to create NWIs in two ways:

  • Set the spec.type parameter to pgw or tdf to use preconfigured values for these use cases (PGW or TDF).
  • Configure the spec.nwis section to manually specify NWI names and types.

Use case examples

You can configure the UPGDeployment CR to create NWIs for these use cases:

  • Packet Gateway (PGW)
  • Traffic Detection Function (TDF)
  • GTP Proxy

PGW

You can create NWIs for the PGW use case by setting the spec.type value to pgw. In this case, these default NWIs are created:

  • epc
  • cp
  • sgi

You can also configure these NWIs by manually setting the name and type of NWI in the spec.nwis section:

yaml

This configuration results in the following UPGConfig CR:

yaml

TDF

To create NWIs for the TDF use case, set the spec.type parameter to tdf. For the TDF use case, these default NWIs are created:

  • access
  • cp
  • multiple sgis (one for each destination NAT pool)

Caution

Do not use the spec.nwis section to configure NWIs manually.

Data Networks are configured one per NAT pool, based on spec.instances.{name}.nat.pools. If spec.nat.enabled: true and spec.nat.type: cgnat are configured, the UPGDeployment CR also adds an sgi NWI.

See the NWI configuration example for TDF-U:

yaml

This configuration results in the following UPGConfig CR:

yaml

GTP Proxy

To create NWIs for the GTP Proxy use case, specify the spec.nwis configuration. See the NWI configuration example for the GTP Proxy use case, where Access and Data Networks use only GTP endpoints:

yaml

This configuration results in the following UPGConfig CR:

yaml

Verification

After applying the configuration, you can verify the NWI setup on your Core Cluster using the VPP CLI by running the following command:

bash

This is the output example that shows the NWI setup:

text