Configure the CSPF Computation Mode Value for Primary LSPs

The user can configure the cspf-computation-mode value at the primary LSP level.

By default, the LSP uses the global configuration at the router mpls policy. If explicitly configured, the configuration at the LSP level always overrides the configuration at the global level.

To configure the CSPF computation mode value for a primary LSP, complete the following steps.

  1. Configure the device.
    device# configure
  2. Enable the MPLS router.
    device(config)# router mpls
  3. Set the signaled label switched path (LSP)
    device(config-router-mpls)# lsp test
    In this example, the LSP name is "test".
  4. Configure the cspf-computation mode.
    device(config-router-mpls-lsp-test)# cspf-computation-mode metric-type ?
    In this step, a list of options will appear; in this case it will be use-igp-metric or use-te-metric
    • device(config-router-mpls-lsp-test)# cspf-computation-mode metric-type use-igp-metric
    • device(config-router-mpls-policy)#no cspf-computation-mode metric-type use-te-metric
      Error:CSPF computation is configured to use igp-metric
    • device(config-router- mpls-policy)#no cspf-computation-mode use-igp-metric

Example

The following example shows how to configure the CSPF computation mode value for the primary LSPs.

device# configure 
device(config)# router mpls
device(config-router-mpls)# lsp test
device(config-router-mpls-lsp-test)#cspf-computation-mode metric-type ?
device(config-router-mpls-lsp-test)# cspf-computation-mode metric-type use-igp-metric
device(config-router-mpls-policy)#no cspf-computation-mode metric-type use-te-metric
Error:CSPF computation is configured to use igp-metric
device(config-router-mpls-policy)#no cspf-computation-mode metric-type use-igp-metric

In the example, the CSPF computation mode is set back to a default value of the te-metric. Run the show mpls lsp detail command to view the configured value.

Note

Note

The configuration is not an adaptive parameter and another instance is not created when the configuration is changed without reload for adaptive LSPs but on re-optimization it takes up the new configuration to perform the cspf computation.