Configuring protection type and next-hop type preference in route next-hop policy template

The user can select if link protection or node protection is preferred in the selection of a LFA next-hop for all IP prefixes and LDP FEC prefixes to which a route next-hop policy template is applied. The default in SR OS implementation is node protection. The implementation falls back to the other type if no LFA next-hop of the preferred type is found.

The user can also select if IP backup next-hop. The default in SR OS implementation is to prefer IP next-hop as only IP backup next hop is supported on the 7210 SAS.

The following options are therefore added into the Route next-hop policy template:

configure router route-nh-template template template-name

protection-type {link | node}

nh-type {ip}

When the route next-hop policy template is applied to an IP interface, all prefixes using this interface as a primary next-hop follow the protection type and next-hop type preference specified in the template.