Setting CSPF Computation Mode for Dynamic Bypass LSPs

The user can configure the CSPF computation mode for the CSPF path calculation of dynamic bypass LSPs for a protected interface using the cspf-computation-mode command. CSPF can make use either the TE metric as cost or the IGP metric as cost for shortest path first algorithm. The TE metric is the default.

To set the CSPF computation mode, complete the following steps.

  1. Enable the device for configuration.
    device>configure
  2. Enable the MPLS router.
    device(config)# router mpls
  3. Enable MPLS-capable interfaces and specify the selected interface. In this example, the selected Ethernet interface is 0/8.
    device(config-router-mpls)# mpls-interface ethernet 0/8
  4. Enable the interface level dynamic bypass.
    device(config-router-mpls-if-ethernet-0/8)# dynamic-bypass 
  5. Configure the cspf-computation-mode command. In this example, the use-igp-metic option is selected.
    device(config-router-mpls-if-ethernet-0/8-dynamic-bypass)# cspf-computation-mode use-igp-metric

The following example combines the steps above to set the CSPF computation mode for dynamic bypass LSPs to the use-igp-metric option.

device>configure
device(config)# router mpls
device(config-router-mpls)# mpls-interface ethernet 0/8
device(config-router-mpls-if-ethernet-0/8)# dynamic-bypass 
device(config-router-mpls-if-ethernet-0/8-dynamic-bypass)# cspf-computation-mode use-igp-metric