To enable OSPF shortcuts:
SLX# configure terminal SLX (config)#
SLX (config)# router mpls SLX (config-router-mpls)#
SLX (config-router-mpls)# lsp test-lsp SLX (config-router-mpls-lsp-test-lsp)#
SLX (config-router-mpls-lsp-test-lsp)# no enable SLX (config-router-mpls-lsp-test-lsp)#
SLX (config-router-mpls-lsp-test-lsp)# shortcuts ospf SLX (config-router-mpls-lsp-test-lsp)#
SLX (config-router-mpls-lsp-test-lsp)# shortcuts ospf ignore-lsp-metric SLX (config-router-mpls-lsp-test-lsp)#
SLX (config-router-mpls-lsp-test-lsp)# enable SLX (config-router-mpls-lsp-test-lsp)#
This example is the consolidation of the above steps and show the additional configuration of ignoring LSP metrics:
SLX# configure terminal SLX (config)# router mpls SLX (config-router-mpls)# lsp test-lsp SLX (config-router-mpls-test-lsp)# shortcuts ospf ignore-lsp-metric