MonitorLink
Monitor Link Module provides a capability to monitor the status of uplink and downlink interfaces on a network device.
User can add a couple of members into a monitor link group with different mode, if uplink member is down, the downlink member will be shutdown automatically.
Create Monitor Link Group
Section titled “Create Monitor Link Group”Request example to create a monitor link group via edit-config
<config> <top> <monitor-link> <monitor-link-group operation="create"> <name>CE_UPLINK_AL2</name> <delay>30</delay> <members> <member> <port>Ethernet18</port> <mode>uplink</mode> </member> <member> <port>Ethernet19</port> <mode>downlink</mode> </member> </members> </monitor-link-group> </monitor-link> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c9dae25f-3302-4874-8439-35c074b6fc8c"> <ok/></rpc-reply>Get Monitor Link Group
Section titled “Get Monitor Link Group”Request example to retrieve the current monitor link group configuration via get-config
<filter type="subtree"> <top> <monitor-link/> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:1c4f4ec8-d66d-494e-a266-0071bdcad92d"> <data> <top> <monitor-link xmlns="http://asterfusion.com/ns/yang/asternos-monitor-link"> <monitor-link-group> <name>CE_UPLINK_AL2</name> <delay>30</delay> <members> <member> <port>Ethernet18</port> <mode>uplink</mode> </member> <member> <port>Ethernet19</port> <mode>downlink</mode> </member> </members> </monitor-link-group> </monitor-link> </top> </data></rpc-reply>Delete Monitor Link Group
Section titled “Delete Monitor Link Group”Request example to delete a specific monitor link group via edit-config
<config> <top> <monitor-link> <monitor-link-group operation="delete"> <name>CE_UPLINK_AL2</name> </monitor-link-group> </monitor-link> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:25ba6658-4551-40e9-a335-c35deb9d3b9b"> <ok/></rpc-reply>