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.
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 use-igp-metric
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
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.