This chapter describes extensions added to SR Linux BGP and routing policy configuration to facilitate EVPN configuration.
7.2. Routing policy extensions for EVPN
SR Linux includes support for applying routing policies to EVPN routes. You can specify the following match conditions in a policy statement:
Match routes based on EVPN route type.
Match routes based on IP addresses and prefixes via prefix-sets for route types 2 and 5.
Match routes based BGP encapsulation extended community.
For information about configuring routing policies on SR Linux, see the SR Linux Configuration Basics Guide.
The following considerations apply to routing policies for EVPN:
For IBGP neighbors, EVPN routes are imported and exported without explicit configuration of any policy at either the BGP or network-instance level.
For EBGP neighbors, by default, routes are imported or exported based on the ebgp-default-policy configuration.
When an explicit import/export route-target is configured in a network-instance bgp-instance, and an import/export policy is also configured on the same bgp-instance, the configured policy is used, and its route-target is added to the imported/exported route.
When a network-instance policy and a peer policy are applied, they are executed as follows:
For export, the network-instance export policy is applied first, and the peer policy is applied afterwards (sequentially).
For import, peer import policy is applied first and network-instance import policy is applied afterwards (sequentially).
Only one network-instance export and import policy is supported.