SYNCE-Netconf
此内容尚不支持你的语言。
Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /syncE/{port} | Y | merge, replace, create, delete | — |
Examples
Section titled “Examples”This chapter provides examples on how to use Netconf to manage SyncE configurations on AsterNOS devices.
Get SyncE Status
Section titled “Get SyncE Status”Request example to get syncE status via get.
<filter type="subtree"> <top> <syncE> <syncE> </syncE> </syncE> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:2fa92bca-d4aa-4495-9933-26ff825d416c"> <data> <top> <syncE xmlns="http://asterfusion.com/ns/yang/asternos-syncE"> <syncE> <port>Ethernet1</port> <enabled>true</enabled> <mode>master</mode> <priority>1</priority> <selected>non-selected</selected> </syncE> </syncE> </top> </data></rpc-reply>Get SyncE Configurations
Section titled “Get SyncE Configurations”Request example to get syncE status via get-config.
<filter type="subtree"> <top> <syncE> <syncE> </syncE> </syncE> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:5805b3f0-8c2a-4ca7-adbc-efdcc24483da"> <data> <top> <syncE xmlns="http://asterfusion.com/ns/yang/asternos-syncE"> <syncE> <port>Ethernet1</port> <enabled>true</enabled> <mode>master</mode> <priority>1</priority> </syncE> </syncE> </top> </data></rpc-reply>Get SyncE Single Port Status
Section titled “Get SyncE Single Port Status”Request example to get syncE Single Port Status via get.
<filter type="subtree"> <top> <syncE> <syncE> <port>Ethernet1</port> </syncE> </syncE> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:5dfdb72c-5c17-4937-9555-7b5358f7fc99"> <data> <top> <syncE xmlns="http://asterfusion.com/ns/yang/asternos-syncE"> <syncE> <port>Ethernet1</port> <enabled>true</enabled> <mode>master</mode> <priority>1</priority> <selected>non-selected</selected> </syncE> </syncE> </top> </data></rpc-reply>Create SyncE Port Configuration
Section titled “Create SyncE Port Configuration”Request example to create syncE for Port via edit-config.
<config><top> <syncE> <syncE operation="create"> <port>Ethernet1</port> <enabled>true</enabled> <mode>master</mode> <priority>1</priority> </syncE> </syncE></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:dec166d7-4ec2-4a6c-8f18-ef8d0d036507"> <ok/></rpc-reply>Modify SyncE Port Configuration
Section titled “Modify SyncE Port Configuration”Request example to modify syncE for Port via edit-config.
<config><top> <syncE> <syncE operation="merge"> <port>Ethernet1</port> <enabled>false</enabled> <mode>slave</mode> <priority>10</priority> </syncE> </syncE></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d9858b81-e7d6-4dbf-ac37-6f0b372cb499"> <ok/></rpc-reply>Delete SyncE Port Configuration
Section titled “Delete SyncE Port Configuration”Request example to delete syncE for Port via edit-config.
<config><top> <syncE> <syncE operation="delete"> <port>Ethernet1</port> </syncE> </syncE></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:0ae59213-4833-44d3-bb80-c6957eb2d482"> <ok/></rpc-reply>Properties Descriptions
Section titled “Properties Descriptions”Tree Diagram
module: asternos-syncE +--rw syncE +--rw syncE* [port] +--rw port if:interface-ref +--rw enabled? boolean +--rw mode? syncE-mode-enumeration +--rw priority? uint8 +--ro selected? stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| syncE | M | Path-only node, has no configurable value. | |
| syncE | M | Path-only node, has no configurable value. List of syncE data sets of the port. | |
| port | O | if:interface-ref | Reference to the configured underlying interface that is used by this syncE port (see RFC 8343). |
| enabled | O | ”true" "false” | Enabled or disabled syncE functions for port. Default value: False |
| mode | O | ”master" "slave” | SyncE mode for port |
| priority | O | 0..255 | SyncE priority for port |
| selected | RO | string | Port Selected status |