fast-reroute route-policy
Use fast-reroute route-policy to apply a routing policy to fast reroute (FRR) for a BGP address family.
Use undo fast-reroute route-policy to restore the default.
Syntax
fast-reroute route-policy route-policy-name
undo fast-reroute route-policy
Default
No routing policy is applied to FRR.
Views
BGP IPv4 unicast address family view
BGP-VPN IPv4 unicast address family view
BGP IPv6 unicast address family view
BGP-VPN IPv6 unicast address family view
Predefined user roles
network-admin
Parameters
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
You can use the following methods to configure BGP FRR:
Method 1—Execute the pic command in BGP address family view. BGP calculates a backup next hop for a BGP route in the address family if there are two or more unequal-cost routes to reach the destination.
Method 2—Execute the fast-reroute route-policy command to use a routing policy in which a backup next hop is specified by using the command apply [ ipv6 ] fast-reroute backup-nexthop. For BGP to generate a backup next hop for the primary route, the backup next hop calculated by BGP must be the same as the specified backup next hop. You can also configure if-match clauses in the routing policy to identify the routes protected by FRR.
If both methods are configured, Method 2 takes precedence over Method 1.
Examples
# Apply routing policy frr-policy to FRR in BGP IPv4 unicast address family view.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp-default] address-family ipv4 [Sysname-bgp-default-ipv4] fast-reroute route-policy frr-policy
Related commands
apply fast-reroute
apply ipv6 fast-reroute
pic
route-policy