---
title: loopback-detect
slug: enterprise-v6p1/loopback-detect
createdAt: 2025-12-18T07:23:46.232Z
---

AsterNOS Model for loopback-detect

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
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>
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **Path**                                                | **Access** |
| ------------------------------------------------------- | ---------- |
| /loopback-detect                                        | Read-Write |
| /loopback-detect/global                                 | Read-Write |
| /loopback-detect/global/log-interval                    | Read-Write |
| /loopback-detect/global/transmit-interval               | Read-Write |
| /loopback-detect/interfaces                             | Read-Write |
| /loopback-detect/interfaces/interface                   | Read-Write |
| /loopback-detect/interfaces/interface/name              | Read-Write |
| /loopback-detect/interfaces/interface/status            | Read-Write |
| /loopback-detect/interfaces/interface/recovery-interval | Read-Write |
| /loopback-detect/interfaces/interface/action            | Read-Write |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/loopback-detect</font>

**Path**

/loopback-detect

**Node Type**

container

**Access**

Read-Write

### <font color="#1d50a2">/loopback-detect/global</font>

**Path**

/loopback-detect/global

**Node Type**

container

**Description**

Global loop-detect configuration

**Access**

Read-Write

### <font color="#1d50a2">/loopback-detect/global/log-interval</font>

**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**

\<YANG type union>

**Constraints**

Multiple constraints:

- Valid range: 10 to 300
- Valid range: 0

### <font color="#1d50a2">/loopback-detect/global/transmit-interval</font>

**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**

\<YANG type uint16>

**Constraints**

Valid range: 10 to 300

### <font color="#1d50a2">/loopback-detect/interfaces</font>

**Path**

/loopback-detect/interfaces

**Node Type**

container

**Description**

Interface-specific loopback detection configuration

**Access**

Read-Write

### <font color="#1d50a2">/loopback-detect/interfaces/interface</font>

**Path**

/loopback-detect/interfaces/interface

**Node Type**

list

**Description**

Interface entry for loopback configuration

**Access**

Read-Write

### <font color="#1d50a2">/loopback-detect/interfaces/interface/name</font>

**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**

\<YANG type union>

### <font color="#1d50a2">/loopback-detect/interfaces/interface/status</font>

**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**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- enable
- disable

### <font color="#1d50a2">/loopback-detect/interfaces/interface/recovery-interval</font>

**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**

\<YANG type uint16>

**Constraints**

Valid range: 10 to 65535

### <font color="#1d50a2">/loopback-detect/interfaces/interface/action</font>

**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**

\<YANG type loopback-detect-action>

**Constraints**

Enumeration with options:

- shutdown
- logging

