Monitor-Link-Netconf
此内容尚不支持你的语言。
Monitor Link
Section titled “Monitor Link”Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /monitor-link/{name} | Y | merge, replace, create, delete | — |
| /monitor-link/{name}/members/{port} | Y | replace, create, delete | — |
Examples
Section titled “Examples”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>Properties Descriptions
Section titled “Properties Descriptions”Container for monitor link configuration
Section titled “Container for monitor link configuration”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 enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| monitor-link | M | Path-only node, has no configurable value. Container for monitor link configuration | |
| monitor-link-group | M | Path-only node, has no configurable value. List of monitor link groups | |
| name | O | None | Name of the monitor link group |
| delay | O | 0..300 | Delay in seconds when uplink is up Default value: 0 |
| members | M | Path-only node, has no configurable value. Container for monitor link group members | |
| member | M | Path-only node, has no configurable value. List of monitor link group members | |
| port | O | Ethernet name | Port or lag name of the monitor link group member |
| mode | M | ”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 |
Member
Section titled “Member”Tree Diagram
module: asternos-monitor-link +--rw monitor-link