Performing an Explicit Commit

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.

  1. Configure the device.
    device# configure 
  2. Enable the MPLS router.
    device(config)# router mpls
  3. Enable signaled label switched path (LSP).
    device(config-router-mpls)# lsp samplelsp
    In the example, the enabled LSP is named samplelsp.
  4. Configure primary path.
    device(config-router-mpls-lsp-samplelsp)# primary-path pathprimary
    In this example, the primary path is named 'pathprimary'.
  5. Configure a secondary path.
    device(config-router-mpls-lsp-samplelsp)# secondary-path pathsecondarya
    In this example, a secondary path is named pathsecondarya.
  6. Configure another secondary path.
    device(config-router-mpls-lsp-samplelsp)# secondary-path pathsecondaryb
    In this example, a second secondary path is configured and named 'pathsecondaryb'.
  7. Configure a manual path selection mode.
    device(config-router-mpls-lsp-samplelsp)# select manual pathsecondaryb
    In this example, the manual path selection is secondary path named 'pathsecondaryb".
  8. Activate the configuration.
    device(config-router-mpls-lsp-samplelsp)# commit

Example

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.