< Home

Data Model

The configuration model file matching LBDT management is huawei-loopback-detect.yang.

Table 1 LBDT management

Object

Description

Value

Remarks

/hw-loopback-detect:loopback-detect/hw-loopback-detect:auto-detection/hw-loopback-detect:enabled

Indicates whether automatic LBDT is enabled.

The value is of the Boolean type:
  • true: Automatic LBDT is enabled.
  • false: Automatic LBDT is disabled.
By default, automatic LBDT is enabled.

N/A

/hw-loopback-detect:loopback-detect/hw-loopback-detect:auto-detection/hw-loopback-detect:action

Indicates the action that is taken when automatic LBDT is triggered to detect loops in the VLAN where MAC address flapping is detected.

The value is of the enumerated type:
  • shutdown: The interface is shut down.
  • alarm: The interface only sends an alarm.
  • block: The interface is blocked.
  • nolearn: The interface is disabled from learning MAC addresses.
  • quitvlan: The interface is removed from the VLAN where a loop occurs.
By default, the action is alarm when automatic LBDT is triggered to detect loops in the VLAN where MAC address flapping is detected.

Currently, only alarm and quitvlan are supported.

/hw-loopback-detect:loopback-detect/hw-loopback-detect:transmit-interval-time

Indicates the interval between sending loopback detection packets.

The value is an integer in the range from 1 to 300, in seconds. By default, the interval between sending loopback detection packets is 5 seconds.

N/A

/hw-loopback-detect:loopback-detect/hw-loopback-detect:untagged-packet-mac-address

Indicates the destination MAC address of untagged loopback detection packets.

The value is in HH:HH:HH:HH:HH:HH format. An H is a hexadecimal number of 1 digit.

By default, the destination MAC address of untagged loopback detection packets is 0180-C200-000A.

The destination MAC address can only be a broadcast MAC address or a multicast MAC address.

/if:interfaces/if:interface/hw-loopback-detect:augment/hw-loopback-detect:loopback-detect/hw-loopback-detect:enabled

Indicates whether loopback detection is enabled on an interface.

The value is of the Boolean type:
  • true: Loopback detection is enabled on an interface.
  • false: Loopback detection is disabled on an interface.
By default, loopback detection is disabled on an interface.

N/A

/if:interfaces/if:interface/hw-loopback-detect:augment/hw-loopback-detect:loopback-detect/hw-loopback-detect:action

Indicates the action to be taken when a loopback is detected on an interface.

The value is of the Boolean type:
  • block: The interface is blocked.
  • nolearn: The interface is disabled from learning MAC addresses.
  • shutdown: The interface is shut down.
  • alarm: The interface only sends an alarm.
  • quitvlan: The interface is removed from the VLAN where a loop occurs.
By default, an interface is shut down when a loopback is detected on the interface.

This object can be configured only when /if:interfaces/if:interface/hw-loopback-detect:augment/hw-loopback-detect:loopback-detect/hw-loopback-detect:enabled is set to true.

/if:interfaces/if:interface/hw-loopback-detect:augment/hw-loopback-detect:loopback-detect/hw-loopback-detect:detect-vlans/hw-loopback-detect:vlan-id

Indicates the VLAN ID of loopback detection packets on an interface.

The value is an integer in the range from 1 to 4094.

Each interface can send detection packets with a maximum of eight VLAN IDs.

/if:interfaces/if:interface/hw-loopback-detect:augment/hw-loopback-detect:loopback-detect/hw-loopback-detect:recovery-time

Indicates the interface recovery time after a loopback is detected.

The value is an integer in the range from 1 to 1000, in seconds. The default recovery time is three times the loopback detection interval.

N/A

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >