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 Fast Path Provider 2.2, an older release. The newest release is 3.2. Go to 3.2

Source-based routing

FEATURE STATE: beta

FPP allows source-based routing with the use of the VPP ACL-based forwarding (ABF) feature. The enablement requires creating a matching access-control list (ACL) for the incoming traffic and a dedicated policy to apply to it.

Caution

The source-based routing is a beta feature exposed as VPP CLI command configuration. In future FPP releases, it will be managed through a Custom Resource configuration.

ACL creation

VPP uses acl-plugin to manage ACLs. Each ACL consists of a pattern for traffic matching and a rule to perform on it. For the ABF feature, ACLs with the apply action permit are required. A dedicated command to create an ACL using VPP CLI should be placed in the afterCommands section of the VPPConfig CR. The VPP CLI command:

bash

As an example, an ACL that matches input traffic from network 10.0.0.0/24 looks as follows:

bash

CLI returns ACL index:<X> where X is a positive integer index of the ACL created. This index will be used to create the ABF policy.

Policy-based routing activation

To use an existing ACL that matches certain traffic and to make a routing decision, run the following:

bash

As an example, ABF Policy with index 0 uses ACL with index 0 and performs lookup in table 100 for IPv4 traffic:

bash

The table ID must match the corresponding RoutingTable spec. Example:

yaml

Attach the policy to the input interface through the CLI command:

bash

An example of an attachment policy with index 0 to interface named net-1:

bash

Several ABF policies can be attached to a single input interface.

VPPConfig example

ABF policies creation and attachment must be added in the afterCommands section:

yaml

ip table add 100 is added for synchronization purposes because the VPPConfig and RoutingTable objects do not guarantee that routing table 100 will be created before VPPConfig afterCommands are executed.