The mpls te backup hotstandby-lsp-constraint command sets the WTR time for a switchback, locks an attribute template, and enables the dynamic bandwidth function for a hot-standby CR-LSP.
The undo mpls te backup hotstandby-lsp-constraint command restores default settings.
By default, the interval between switchbacks is 10 seconds; no attribute template is locked; the dynamic bandwidth function is disabled for a hot-standby CR-LSP.
mpls te backup hotstandby-lsp-constraint { wtr interval | lock | dynamic-bandwidth | overlap-path }
mpls te backup hotstandby-lsp-constraint mode { revertive [ wtr interval ] | non-revertive }
undo mpls te backup hotstandby-lsp-constraint { wtr | lock | dynamic-bandwidth | overlap-path }
undo mpls te backup hotstandby-lsp-constraint mode { non-revertive | revertive wtr }
Parameter | Description | Value |
---|---|---|
dynamic-bandwidth | Enables the dynamic bandwidth function for a hot-standby CR-LSP. | - |
lock | Enables the function of locking a hot-standby CR-LSP attribute template. | - |
wtr interval | Specifies the WTR time for a switchback from a hot-standby CR-LSP. | The value is an integer that ranges from 0 to 2592000, in seconds. The default value is 10 seconds. |
overlap-path | Indicates that if no other path is available, the hot-standby LSP can overlap the primary LSP. | - |
mode { revertive | non-revertive } | Specifies the revertive mode.
|
The default mode is revertive. |
Usage Scenario
The function of locking a hot-standby CR-LSP attribute template allows the system to lock a lower-priority attribute template that has been used by an exiting hot-standby CR-LSP. The system will not attempt to use a higher-priority template to set up a new hot-standby CR-LSP.
Prerequisites
Precautions
This command is valid only for the hot-standby CR-LSP that is set up using a CR-LSP attribute template. If a hot-standby CR-LSP is set up without a CR-LSP attribute template, the following commands apply:
The mpls te backup hot-standby wtr interval command is used to set the WTR time for a switchback.
The mpls te backup hot-standby dynamic-bandwidth command is used to enable the dynamic bandwidth function for the hot-standby CR-LSP.
The mpls te backup hot-standby overlap-path command is used to enable the path overlapping function for hot-standby CR-LSPs that are not established using attribute templates.
The dynamic bandwidth function for the hot-standby CR-LSP prevents a hot-standby CR-LSP transmitting no traffic from using bandwidth resources. If the primary CR-LSP fails, the system attempts to re-establish a new hot-standby CR-LSP with the required bandwidth determined by the Make-Before-Break mechanism. After the new hot-standby CR-LSP takes over traffic, the bandwidth of the failed hot-standby CR-LSP becomes 0 bit/s and is deleted by the system.
# Set the WTR time for a switchback from the hot-standby CR-LSP to 20 seconds.
<HUAWEI> system-view [HUAWEI] interface tunnel 1 [HUAWEI-Tunnel1] mpls te primary-lsp-constraint lsp-attribute t1 [HUAWEI-Tunnel1] mpls te hotstandby-lsp-constraint 1 lsp-attribute t2 [HUAWEI-Tunnel1] mpls te backup hotstandby-lsp-constraint wtr 20 [HUAWEI-Tunnel1] mpls te commit