The path calculation metric implementation allows you to specify the path calculation for a given tunnel.
By default, all LSPs use the TE-metric global configuration.
Global level (config-router-mpls-policy): This configuration covers all RSVP LSPs (primary, secondary LSPs).
MPLS router bypass LSP configuration mode. (config-router-mpls-bypass-lsp)
Individual LSP mode: This configuration covers all RSVP LSPs.
MPLS router MPLS interface dynamic bypass configuration mode (config-router-mpls-if-ethernet-slot/port-dynamic-bypass).
The CLI configuration at the LSP level always overrides the configuration at the global level. That is, the decision to use-te-metric or use-igp-metric for CSPF path calculation if configured at the LSP level, always overrides the configuration at the global level.
The user can configure the CSPF computation mode for the CSPF Path calculation of dynamic bypass LSPs that get created. CSPF can make use of either the TE-metric as cost or the IGP metric as cost for the shortest path first algorithm.
The no form of the command removes the CSPF computation mode.
MPLS is supported on the Extreme 8820, SLX 9740, SLX 9640, and SLX 9540 devices only.
In the following example, the CSPF computation mode is set back to a default value of the te-metric at the global level.
device# configure device(config)# router-mpls device(config-router-mpls)# policy device(config-router-mpls-policy)# 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 following example, the CSPF computation mode is set back to a default value of the use-te-metric at the LSP level.
device# configure device(config)# router mpls device(config-router-mpls)# lsp test 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 following example, both the cost and number of riding backups are considered using the use-bypass-metric command.
device# configure device(config)# router-mpls device(config-router-mpls)# policy device(config-router-mpls-policy)# cspf-computation-mode metric-type use-bypass-metric
In the following example, both the cost and number of riding backups are considered using the use-igp-metric command for dynamic bypass MPLS Ethernet interface 0/8.
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-computaion-mode use-igp-metric