To configure a bypass LSP CSPF computation mode, complete the following steps.
device>configure
device(config)# router mpls
device(config-router-mpls)# bypass-lsp my-bypass-lsp
device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode use-igp-metric
device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode use-te-metric
The following example combines the steps above to configure a static bypass LSP with a unique bypass LSP name of my-bypass-lsp and a cspf-computation-mode with the use-igp-metric or use-te-metric option.
device>configure device(config)# router mpls device(config-router-mpls)# bypass-lsp my-bypass-lsp device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode use-igp-metric -or- device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode use-te-metric