CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
296 stars 187 forks source link

user-rpc error #1416

Closed follow612 closed 1 year ago

follow612 commented 1 year ago

Hello expert,

I'm using below version, and still see issue #1380 Which version contains the fix? Thanks. libyang "2.1.80" libnetconf2 "2.1.34" sysrepo "2.2.73" netopeer2 "2.1.62"

<action xmlns="urn:ietf:params:xml:ns:yang:1"> 
    <hardware xmlns="urn:ietf:params:xml:ns:yang:ietf-hardware"> 
      <component> 
        <name>ontCard_ont2_1</name> 
        <bbf-hw:reset> 
          <bbf-hw:reset-type>bbf-hw:hardware-reset</bbf-hw:reset-type> 
        </bbf-hw:reset> 
      </component> 
    </hardware> 
</action>

user-rpc --content /root/onu_reboot.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.

michalvasko commented 1 year ago

Fine, use the latest libyang in the devel branch, it should work then.

follow612 commented 1 year ago

It works now, thanks for the quick fix.