Protection templates defines the generally applicable protection parameters for an MPLS-TP tunnel. Only linear protection is supported, and so the application of a named template to an MPLS-TP tunnel implies that linear protection is used.
A template is configured as follows:
config
   router
      mpls
         mpls-tp
            protection-template <name>
              [no] revertive 
               [no] wait-to-restore <interval>
               rapid-psc-timer <interval>
               slow-psc-timer <interval>
               exit
The allowed values are as follows:
wait-to-restore interval
0-720 seconds, 1 sec steps, default 300 seconds. This is applicable to revertive mode only.
rapid-psc-timer interval
[10, 100, 1000ms]. Default 100ms
slow-psc-timer interval
5s-60s. Default: 5s
revertive
selects revertive behavior. Default: no revertive.
LSP Linear Protection operations are enacted using the following tools>perform commands:
tools>perform>router>mpls
            tp-tunnel
               clear {<lsp-name> | id <tunnel-id>}
               force {<lsp-name> | id <tunnel-id>}
               lockout {<lsp-name> | id <tunnel-id>}
               manual {<lsp-name> | id <tunnel-id>}
            exit
         exit
To minimize outage times, users should use the ‟mpls-tp protection command” (for example, force/manual) to switch all the relevant MPLS-TP paths before executing the following commands:
clear router mpls interface <>
config router mpls interface <> shut