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

# RoutingTable CR

`RoutingTable` Custom Resource (CR) is applied on the Core Cluster and allows you to define routes that are installed in VPP.

`RoutingTable` objects are targeted to specific nodes or VPP-based application instances in the same way as `VPPConfig` resources. Each routing table specifies an ID and an address family, which can be either IPv4 or IPv6. Multiple routing tables with the same ID are supported; in this case, they are merged into a single table.

```yaml
apiVersion: fpp-manager.cennso.com/v1alpha1
kind: RoutingTable
metadata:
  labels:
    fpp-manager.cennso.com/created-for: node-op
    fpp-manager.cennso.com/plumbing-instance: upg
    name: upg-access-routes
  name: upg-access-routes
  namespace: fpp-sample
spec:
  addressFamily: IPv4
  id: 100
  routes:
  # normal route with next hop and the target interface
  - cidr: 10.20.0.0/14
    nextHopAddress: 10.0.1.2
    nextHopInterface: access
  # blackhole route
  - cidr: 192.168.90.0/24
    nextHopAddress: blackhole
  # look up the next hop in another table
  - cidr: 192.168.90.0/24
    table: 123
```

Tables are not deleted, because when some other VPP configuration still uses the table number, the VPP can crash.

If routes are added using VPP CLI, they are not removed by VPP Operator.
