Skip to content
Ask AI

Monitor-Link-Netconf

YANG Pathget/get-configedit-configrpc
/monitor-link/{name}Ymerge, replace, create, delete—
/monitor-link/{name}/members/{port}Yreplace, create, delete—

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.

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>

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>

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>

Tree Diagram

module: asternos-monitor-link
+--rw monitor-link
+--rw monitor-link-group* [name]
+--rw name string
+--rw delay? uint16
+--rw members
+--rw member* [port]
+--rw port union
+--rw mode enumeration

Table of Properties

NameRequiredType/RangeDescription
monitor-linkMPath-only node, has no configurable value.
Container for monitor link configuration
monitor-link-groupMPath-only node, has no configurable value.
List of monitor link groups
nameONoneName of the monitor link group
delayO0..300Delay in seconds when uplink is up
Default value: 0
membersMPath-only node, has no configurable value.
Container for monitor link group members
memberMPath-only node, has no configurable value.
List of monitor link group members
portOEthernet namePort or lag name of the monitor link group member
modeM”uplink"
"downlink”
Physical ports can be added to the Monitor link group in the uplink or downlink mode.

When uplink port is up, the downlink port will be up in delay time.

When uplink port is down, the downlink port will be down at once

Tree Diagram

module: asternos-monitor-link
+--rw monitor-link