lpt recovery-time

Function

The lpt recovery-time command configures an interface recovery time for an LPT instance.

The undo lpt recovery-time command restores the default interface recovery time for an LPT instance.

By default, the interface recovery time is 1s for an LPT instance.

Format

lpt recovery-time time

undo lpt recovery-time

Parameters

Parameter Description Value
time

Configures an interface recovery time.

The value is an integer ranging from 1 to 600, in seconds. The step is 1.

Views

LPT PTP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
lpt write

Usage Guidelines

To prevent frequent LPT switchovers caused by interface flapping, run the lpt recovery-time command to configure an interface recovery time for an LPT instance. If an interface goes Down, it goes Up only after the configured interface recovery time elapses.

Example

# Set an interface recovery time to 10s for an LPT instance.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet0/1/1
[*HUAWEI-GigabitEthernet0/1/1] mpls l2vc 1.1.1.1 100
[*HUAWEI-GigabitEthernet0/1/1] quit
[*HUAWEI] lpt ptp interface GigabitEthernet0/1/1
[*HUAWEI-ptplpt-GigabitEthernet0/1/1] lpt recovery-time 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic