Loopback‑Detect
This chapter provides examples on how to use Netconf to manage Loopback Detect configurations on AsterNOS devices.
Edit Loopback Detect Global Configuration
Section titled “Edit Loopback Detect Global Configuration”hint{type=“warning”} NOTE: Action is shutdown by default.
Request example to edit loopback detect interface configuration via edit-config.
<config><top> <loopback-detect xmlns="http://asterfusion.com/ns/yang/loopback-detect"> <interfaces> <interface> <name>Ethernet1</name> <action>logging</action> <recovery-interval>222</recovery-interval> <status>enable</status> </interface> </interfaces> </loopback-detect></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:ac189d41-e6c1-442a-9d94-78ce70583128"> <ok/></rpc-reply>Edit Loopback Detect Vlan Configuration
Section titled “Edit Loopback Detect Vlan Configuration”hint{type=“warning”} NOTE: Show loopback detect status for a specific interface.
Request example to show loopback detect status via rpc show-loopback-detect-status.
<show-loopback-detect-status> <name>Ethernet1</name></show-loopback-detect-status>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:2bbee588-ddc1-436b-9317-03a07a86006d"> <data xmlns="http://asterfusion.com/ns/yang/loopback-detect"> <loopback-detected-interfaces> <loopback-detected-interface> <name>Ethernet1</name> <status>logging</status> <vlan>Vlan100</vlan> <port>Ethernet1</port> <time>123</time> </loopback-detected-interface> </loopback-detected-interfaces> </data></rpc-reply>