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>Resources
Section titled “Resources”Resource List
Section titled “Resource List”| 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 |
Detailed Nodes
Section titled “Detailed Nodes”/loopback-detect
Section titled “/loopback-detect”Path
/loopback-detect
Node Type
container
Access
Read-Write
/loopback-detect/global
Section titled “/loopback-detect/global”Path
/loopback-detect/global
Node Type
container
Description
Global loop-detect configuration
Access
Read-Write
/loopback-detect/global/log-interval
Section titled “/loopback-detect/global/log-interval”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
/loopback-detect/global/transmit-interval
Section titled “/loopback-detect/global/transmit-interval”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
/loopback-detect/interfaces
Section titled “/loopback-detect/interfaces”Path
/loopback-detect/interfaces
Node Type
container
Description
Interface-specific loopback detection configuration
Access
Read-Write
/loopback-detect/interfaces/interface
Section titled “/loopback-detect/interfaces/interface”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