The user can perform an explicit commit within the configuration of a specified LSP using the commit command. The following example demonstrates the creation of an LSP named samplelsp and its primary and secondary paths. After the configuration is entered, the commit command is executed to activate the configuration.
Complete the following steps to create an LSP and its primary and secondary paths.
device# configure
device(config)# router mpls
device(config-router-mpls)# lsp samplelsp
device(config-router-mpls-lsp-samplelsp)# primary-path pathprimary
device(config-router-mpls-lsp-samplelsp)# secondary-path pathsecondarya
device(config-router-mpls-lsp-samplelsp)# secondary-path pathsecondaryb
device(config-router-mpls-lsp-samplelsp)# select manual pathsecondaryb
device(config-router-mpls-lsp-samplelsp)# commit
The following example shows an explicit commit within the configuration of a specified LSP (samplelsp) using the commit command.
device# configure device(config)# router mpls device(config-router-mpls)# lsp samplelsp device(config-router-mpls-lsp-samplelsp)# primary-path pathprimary device(config-router-mpls-lsp-samplelsp)# secondary-path pathsecondarya device(config-router-mpls-lsp-samplelsp)# select manual pathsecondaryb device(config-router-mpls-lsp-samplelsp)# select manual pathsecondaryb device(config-router-mpls-lsp-samplelsp)# commit
The reoptimize command is another type of explicit commit.
Using the reoptimize command, the user can activate all pending LSP configuration changes for specified LSP or use the all option to activate all pending LSP configuration changes for all of the LSPs configured on the router.