NETCONF Configuration Guide
YANG API Reference
loopback-detect
10 min
asternos model for loopback detect yang tree diagram yang tree diagram 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 resources resource list 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 detailed nodes /loopback detect /loopback detect path /loopback detect node type container access read write /loopback detect/global /loopback detect/global path /loopback detect/global node type container description global loop detect configuration access read write /loopback detect/global/log interval /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 \<yang type union> constraints multiple constraints valid range 10 to 300 valid range 0 /loopback detect/global/transmit interval /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 \<yang type uint16> constraints valid range 10 to 300 /loopback detect/interfaces /loopback detect/interfaces path /loopback detect/interfaces node type container description interface specific loopback detection configuration access read write /loopback detect/interfaces/interface /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 /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 \<yang type union> /loopback detect/interfaces/interface/status /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 \<yang type enumeration> constraints enumeration with options enable disable /loopback detect/interfaces/interface/recovery interval /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 \<yang type uint16> constraints valid range 10 to 65535 /loopback detect/interfaces/interface/action /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 \<yang type loopback detect action> constraints enumeration with options shutdown logging
