hotstandby-switch

Function

The hotstandby-switch force command forcibly switches traffic from a primary CR-LSP to a hot-standby CR-LSP.

The hotstandby-switch clear command disables the forcible switchover function.

Format

hotstandby-switch { clear | force }

Parameters

Parameter Description Value
clear

Forcibly switches traffic from a hot-standby CR-LSP to a primary CR-LSP.

-

force

Forcibly switches traffic from a primary CR-LSP to a hot-standby CR-LSP.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te execute

Usage Guidelines

Usage Scenario

If a hot-standby CR-LSP is established and a primary CR-LSP needs to be adjusted, run the hotstandby-switch force command to switch traffic forcibly to the hot-standby CR-LSP. After the primary CR-LSP has been adjusted, run the hotstandby-switch clear command to disable the forcible switchover function and switch traffic back to the primary CR-LSP.

Prerequisites

A hot-standby LSP has been created. The display mpls te tunnel-interface command output shows that the hot-standby LSP has been established.

Precautions

When using the hotstandby-switch force command, note the following points:

  • Before running the hotstandby-switch force command to switch traffic to a hot-standby LSP, ensure that a backup CR-LSP has been established. Otherwise, packet loss occurs. You do not need to run the commit command to commit the hotstandby-switch force command configuration.
  • If you configure the non-revertive operation mode for a hot-standby CR-LSP, the hotstandby-switch clear command configuration does not take effect.
  • If you configure the revertive operation mode for a hot-standby CR-LSP and the revertive switching delay is not 0, running the hotstandby-switch clear command causes an intermediate CR-LSP switchover.

Example

# Forcibly switch traffic from a primary CR-LSP to a hot-standby CR-LSP.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol mpls te
[*HUAWEI-Tunnel10] mpls te backup hot-standby
[*HUAWEI-Tunnel10] hotstandby-switch force
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >