FPP BGP support
Border Gateway Protocol (BGP) is supported using the VPPTool Custom Resource which defines the tool (in the case of BGP, Bird application) to be deployed inside the FPP pod as a side container.
The FPP pod which supports BGP has an init container and three main containers. One is fpp main container, and two others are tool-bird and tool-bird-exporter.
BGP as VPPTool
To use BGP support in FPP, create VPPTool outside of the FPP Helm chart:
Bird Exporter is supported with another VPPTool:
Caution
Modifying the VPPTool objects restarts all Amberd pods that use it, which causes network downtime.
Reference the created bird tools in FPP chart values YAML:
The reference is based on VPPTool object name (VPPTool.metadata.name). Bird metrics needs to be enabled in the values.yaml file.
The following diagram shows an example of CGW with BGP deployment:
See the full YAML configuration for the CGW with BGP example:
BGP configuration
The BGP configuration is kept in VPPConfig, for example:
spec.toolsConfigs[].name must match VPPTool.metadata.name.
BGP monitoring
The fpp-support chart allows the creation of a Grafana dashboard and Prometheus ServiceMonitor to enable BGP monitoring, example values.yaml:
BGP-related metrics are exposed in the Routing row.
BGP over GRE
In complex scenarios, BGP peering can occur over a GRE tunnel, so a GRE interface must be created. Also, the LCP interface is required to be created for the BGP daemon to populate the routes into VPP:
In the above example, 10.10.0.1/24 is the IP address of the GRE tunnel endpoint using the external-nic interface to communicate to the other end of the GRE tunnel located at 10.0.0.2. external-nic is created by a Helm chart in the networks section.
It is important to use the same name in vppInterfaces[].ifname and in vppInterfaces[].lcp.attachTo. This is the VPPInterface CR object name and will be adjusted by the Helm chart to be unique by using the chart release name as a prefix.
Networking configuration
Use this configuration to create connected routing tables:
These are the networks used for the CGW1 example:
See the configuration for FPPNetworks that are created outside of the FPP Helm chart:
Setup verification
Check the number of containers
The BGP-enabled Amberd pod needs to have at least three containers: one main FPP container (fpp), a container with a running BIRD process (tool-bird), and a tool-bird-exporter container that exposes metrics in Prometheus format. Also, the init container must be present.
Check tool-bird container logs
Bird logs are visible in the tool-bird container logs of the FPP pod.
Check the applied BGP configuration
To check if BGP configuration and peering is active, run this command in the Amberd pod of the fpp container:
Table number (10) must match the internal-rt table created above.
See the output example:
To check BGP peering on the tool-bird container, use the birdc diagnostic tool to get the state:
See the output example: