Skip to content
Ask AI

loopback-detect

AsterNOS Model for loopback-detect

module: asternos-loopback-detect
+--rw loopback-detect
+--rw global
| +--rw log-interval? union
| +--rw transmit-interval? uint16
+--rw interfaces
+--rw interface* [name]
+--rw name union
+--rw status? enumeration
+--rw recovery-interval? uint16
+--rw action? loopback-detect-action
rpcs:
+---x show-loopback-detect-status
| +---w input
| | +---w name? union
| +--ro output
| +--ro data
| +--ro loopback-detected-interfaces
| +--ro loopback-detected-interface* [name]
| +--ro name union
| +--ro status? loopback-detect-action
| +--ro vlan? union
| +--ro port? union
| +--ro time? uint64
+---x clear-loopback-detect-status
+--ro output
+--ro data? <anydata>
PathAccess
/loopback-detectRead-Write
/loopback-detect/globalRead-Write
/loopback-detect/global/log-intervalRead-Write
/loopback-detect/global/transmit-intervalRead-Write
/loopback-detect/interfacesRead-Write
/loopback-detect/interfaces/interfaceRead-Write
/loopback-detect/interfaces/interface/nameRead-Write
/loopback-detect/interfaces/interface/statusRead-Write
/loopback-detect/interfaces/interface/recovery-intervalRead-Write
/loopback-detect/interfaces/interface/actionRead-Write

Path

/loopback-detect

Node Type

container

Access

Read-Write

Path

/loopback-detect/global

Node Type

container

Description

Global loop-detect configuration

Access

Read-Write

Path

/loopback-detect/global/log-interval

Node Type

leaf

Description

The interface loopback detection alarm message transmission interval.

Specifies the period at which the information of disabled interfaces is printed.

When the default value is 0, it means that the warning message will not be printed repeatedly.

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • Valid range: 10 to 300
  • Valid range: 0

Path

/loopback-detect/global/transmit-interval

Node Type

leaf

Description

The interval for periodically sending loopback detection packets.

Users can adjust the loopback detection packet transmission interval based on network conditions.

A shorter interval results in more loopback detection packets being sent per unit of time, leading to more accurate interface loopback responses, but also consuming more system resources.

Access

Read-Write

Data Type

Constraints

Valid range: 10 to 300

Path

/loopback-detect/interfaces

Node Type

container

Description

Interface-specific loopback detection configuration

Access

Read-Write

Path

/loopback-detect/interfaces/interface

Node Type

list

Description

Interface entry for loopback configuration

Access

Read-Write

/loopback-detect/interfaces/interface/name

Section titled “/loopback-detect/interfaces/interface/name”

Path

/loopback-detect/interfaces/interface/name

Node Type

leaf

Description

The name of the interface to be configured for loopback detection.

User can configure loopback detection on Ethernet interfaces and VLAN.

For example, Ethernet1, Ethernet2, Vlan10, Vlan20, etc.

Access

Read-Write

Data Type

/loopback-detect/interfaces/interface/status

Section titled “/loopback-detect/interfaces/interface/status”

Path

/loopback-detect/interfaces/interface/status

Node Type

leaf

Description

Enable or disable loopback detection on the interface.

When loopback detection is enabled, the system will periodically send loopback detection packets.

If a loop is detected, the configured action will be applied to the interface.

If this is applied to a VLAN, all ports in the VLAN will be affected: once a port in this VLAN receives a detection packet sending from this vlan’s members, it will trigger the configured action.

If this is applied to an interface, only the specified interface will be affected: only when the interface receives a detection packet sending from itself, it will trigger the configured action.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • enable
  • disable

/loopback-detect/interfaces/interface/recovery-interval

Section titled “/loopback-detect/interfaces/interface/recovery-interval”

Path

/loopback-detect/interfaces/interface/recovery-interval

Node Type

leaf

Description

The time for the interface to automatically recover to normal state after detecting a loopback.

After enabling interface loopback detection, the interface will periodically send loopback detection packets.

Upon detecting a loop, the configured action will be applied to the interface, and a timer will start.

Users can configure the interface recovery time.

After the specified recovery-interval, the system will attempt to recover the interface.

If the loop is cleared by that time, the interface will be restored to its normal state.

Access

Read-Write

Data Type

Constraints

Valid range: 10 to 65535

/loopback-detect/interfaces/interface/action

Section titled “/loopback-detect/interfaces/interface/action”

Path

/loopback-detect/interfaces/interface/action

Node Type

leaf

Description

Policy to apply when loopback is detected, shutdown mode: Disable interfaces with loop detection configured, block-vlan mode: Blocking VLANs where loops occur, default is shutdown

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • shutdown
  • logging