> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/3.2/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/3.2/concepts/dnn.md).

# DNN

The `DNN` Custom Resource (CR) is applied to the Management Cluster to create a Data Network Name (DNN) on the Core Cluster. VPP Operator then uses the DNN CR to register UPG data networks in the Network Service Registry (NSR) component that implements Network Repository Function (NRF).

The `DNN` CR is based on a [Crossplane claim](https://docs.crossplane.io/v1.20/concepts/claims/) for the `XDNN` [composite resource](https://docs.crossplane.io/v1.20/concepts/composite-resources/).
This code snippet shows the minimal configuration required to set up a working DNN:

```yaml
apiVersion: upg.cennso.com/v1alpha1
kind: DNN
metadata:
  name: internet
  namespace: cennso-infra
spec:
  connectionSecretRef:
    name: core-cluster-name
    namespace: cennso-infra
  targetNamespace: basic-pgw
  dnn: internet
```

- **spec.connectionSecretRef** - references the Secret containing connection details for the Core Cluster
- **spec.targetNamespace** - namespace where the DNN object will be created on the Core Cluster. Must match the namespace of the corresponding `UPGConfig`
- **spec.dnn** - the Data Network Name value

## Namespace matching

The DNN CR is created on the Core Cluster in the namespace specified by **spec.targetNamespace**. This namespace must match the **spec.targetNamespace** of the `UPGDeployment` resources that the DNN should be associated with. The VPP Operator registers UPG in NSR to all DNNs created in the same namespace.

## Multiple DNNs

You can create multiple `DNN` resources simultaneously to register several data networks for the same UPG instance.
