netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

user-rpc command with action RPC config throwing error in netopeer-cli

Open balaji07s opened this issue 2 years ago • 3 comments

Hi team,

Software version: libsysrepo v2.2.12 (SO v7.11.8)

When I execute the user-rpc command in Netopeer-CLI with the action RPC config, it fails with the error message "Node action not found in yang module". Could you please help with this? Is there anything that needs to be checked or upgraded?

Pasted the log and the XML RPC config used.

XML RPC:
======
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3013">
<action xmlns:bbf-hw="urn:bbf:yang:bbf-hardware" xmlns="urn:ietf:params:xml:ns:yang:1">
     <hardware xmlns="urn:ietf:params:xml:ns:yang:ietf-hardware">
      <component>
        <name>ontCard_ont1_1</name>
      <bbf-hw:reset>
        <bbf-hw:reset-type>bbf-hw:hardware-reset</bbf-hw:reset-type>
      </bbf-hw:reset>
      </component>
    </hardware>
  </action>
 </rpc>

LOG:
===
> user-rpc --content /root/onu_reset.xml |
ly ERROR: Node "action" not found in the "yang" module. (Line number 2.)
nc ERROR: Failed to create RPC, perhaps a required feature is disabled.
cli_send_recv: Failed to send the RPC.

balaji07s avatar Oct 20 '23 10:10 balaji07s