---
title: Loop Detect
slug: aidc/loop-detect
createdAt: 2025-12-29T10:33:21.785Z
---

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                             | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| --------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/loop-detect-interfaces/&#x7B;name} | Y       | Y        | Y         | N       | Y          |
| /rest/v1/rpc/show-loopback-detect                   | N       | Y        | N         | N       | N          |

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

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

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-loopback-detect
{
    "name": "Ethernet1"
}
```

### <font color="#1d50a2">Create a loop detect interface.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/loop-detect-interfaces
{
    "name": "Ethernet12",
    "vlan": "10-200",
    "interval": 10,
    "policy":
    "block-vlan",
    "wait-time": 30
}
```

## <font color="#1d50a2">Properties Descriptions</font>

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

**Tree Diagrams**

```plaintext
  +--rw loop-detect-interfaces
     +--rw loop-detect-interface* [name]
        +--rw name
        +--rw vlan?
        +--rw interval?
        +--rw policy?
        +--rw wait-time?
        +--ro looped-vlans?
```

**Table of Properties**

| **Name**               | **Required** | **Type/Range**                | **Description**                                                                                                                                                                                                                                                  |
| ---------------------- | ------------ | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| loop-detect-interfaces | M            |                               | Path-only node, has no configurable value.                                                                                                                                                                                                                       |
| name                   | M            | Ethernet name<br />Lag1..9999 | (sub-property of loop-detect-interfaces)                                                                                                                                                                                                                         |
| vlan                   | O            | 1..4094                       | (sub-property of loop-detect-interfaces)<br />VLAN ID                                                                                                                                                                                                            |
| interval               | O            | 1..3600                       | (sub-property of loop-detect-interfaces)<br />Interval in seconds to check for loopback, default is 5 seconds<br />Default value: 5                                                                                                                              |
| policy                 | O            | "shutdown"<br />"block-vlan"  | (sub-property of loop-detect-interfaces)<br />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<br />Default value: "shutdown" |
| wait-time              | O            | 1..10800                      | (sub-property of loop-detect-interfaces)<br />Wait time in seconds before resuming a blocked port or VLAN, default is 60 seconds<br />Default value: 60                                                                                                          |
| looped-vlans           | RO           | string                        | (sub-property of loop-detect-interfaces)                                                                                                                                                                                                                         |

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

**Tree Diagrams**

```plaintext
    +---x show-loopback-detect
       +---w input
       |  +---w name?
       +--ro output
          +--ro data?
```

**Table of Properties**

| **Name**             | **Required** | **Type/Range**                | **Description**                                                                   |
| -------------------- | ------------ | ----------------------------- | --------------------------------------------------------------------------------- |
| show-loopback-detect | M            |                               | Path-only node, has no configurable value.<br />Show loopback detect port status. |
| name                 | O            | Ethernet name<br />Lag1..9999 | (sub-property of input)<br />                                                     |
| data                 | RO           | \<anydata>                    | (sub-property of output)                                                          |

