You can configure conditional metrics for local statically configured label-switched paths (LSPs). The conditional metrics are based on the dynamically changing IGP metric. Junos OS changes the LSP metric to the configured conditional metric that corresponds to the highest threshold reached by the IGP metric. You can configure up to four conditional metrics for an LSP.
By default, the IGP metric of routes configured with the install statement is the IGP metric value of the LSP destination route. If you configure the track-igp-metric <install-v4-prefixes> <install-v6-prefixes> statement at the [edit protocols mpls] or [edit protocols mpls label-switched-path lsp-name ] hierarchy level, routes installed by IGP use the IGP metric of the prefix instead.
Use the conditional igp-metric-threshold threshold-metric-value static-metric-condition-value statement at the [edit protocols mpls label-switched-path lsp-name metric] hierarchy level to configure this feature. To check whether the conditional metric is configured, use the show mpls lsp extensive command.