< Home

wtr

Function

The wtr command sets the WTR time of a BFD session.

The undo wtr command restores the default WTR time of a BFD session.

By default, the WTR time is 0, indicating that the status change of a BFD session is reported immediately.

Format

wtr wtr-value

undo wtr

Parameters

Parameter

Description

Value

wtr-value

Specifies the WTR time of a BFD session.

The value is an integer that ranges from 1 to 60, in minutes. The default value is 0.

Views

BFD session view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a BFD session flaps, the WTR time prevents frequent active/standby switchovers of the application associated with the BFD session.

Precautions

  • If the WTR time is set, the system reports the BFD session Up event to the upper-layer application only after the WTR timer expires. Other status change events are reported immediately, which are not affected by the WTR time.

  • Both ends must use the same WTR time. Otherwise, when the session status changes at one end, applications at both ends detect different BFD session status.

  • If the WTR time is set and a BFD session goes Down within the WTR time, the Down Count value is recorded, but the Last Up Time and Last Up Lasting Time values are not recorded.

Example

# Set the WTR time of a BFD session to 10 minutes.

<HUAWEI> system-view
[HUAWEI] bfd atoc
[HUAWEI-bfd-session-atoc] wtr 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic