This page describe how to execute <get> and <edit-config> operations about "target-output-power" XML node.
Table of Contents |
---|
1. Environment Requirement
- Docker container that runs a Netconf server. Follow the instructions posted How to build and run ODTN Emulators?
- netconf-console tool that is a simulation tool for Netconf client.
- "target-output-power" node defined in "openconfig-terminal-device.yang" as the operation target node.
...
The root node of "openconfig-platform.yang" is "<components>" and its sublist "<component>" contains "<name>" node as its identity. Besides "openconfig-terminal-device.yang" adds node "<optical-channel>" into "<component>" node. "<target-power-config>" is defined as a child node of "<optical-channel>".
2. Perform Operations
2.1 Perform <get> Operation:
If you want to get the whole components, the content of get-components is:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:190d45b0-29e8-44a7-8b6a-71f87c35f740"> <data> <components xmlns="http://openconfig.net/yang/platform"> <component> <optical-channel xmlns="http://openconfig.net/yang/terminal-device"> <config> <frequency>0</frequency> <target-output-power>-10.0</target-output-power> <line-port>oe1</line-port> </config> </optical-channel> </component> <component> <optical-channel xmlns="http://openconfig.net/yang/terminal-device"> <config> <frequency>0</frequency> <target-output-power>-10.0</target-output-power> <line-port>oe1</line-port> </config> </optical-channel> </component> </components> </data> </rpc-reply> |
2.2 Perform <edit-config> operation
If you want to change the target-output-power value as 0dBm instead of the default -10.0 dBm where "<name>" ID is "oe1/2":
...