[NETCONF-195] Unable to invoke RPC using NETCONF on mounted device Created: 14/May/16  Updated: 15/Mar/19  Resolved: 16/May/16

Status: Resolved
Project: netconf
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Balaji Varadaraju Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5887

 Description   

When a RPC call was made to a NETCONF monted device we see the following error.

curl -u admin:admin -X POST -H "Accept: application/json" -H "Content-type: application/json" -d @vrouter.interface.rpc.netconf.json http://localhost:8181/restconf/operations/opendaylight-inventory:nodes/node/110-41R3/yang-ext:mount/vyatta-op-v1:interface | python -m json.tool

{
"errors": {
"error": [

{ "error-message": "URI has bad format. Possible reasons:\n 1. \"vyatta-op-v1:interface\" was not found in parent data node.\n 2. \"vyatta-op-v1:interface\" is behind mount point. Then it should be in format \"/yang-ext:mount/vyatta-op-v1:interface\".", "error-tag": "invalid-value", "error-type": "protocol" }

]
}
}

The yang model in question is resolved properly and URLs can be seen in API doc explorer. We can make other calls on config and operational trees but not RPCs.



 Comments   
Comment by Balaji Varadaraju [ 14/May/16 ]

This yang model(vyatta-op-v1.yang) only exposes RPCs and no config or operational entries. Wanted to mention it here if that helps.

Comment by Tomas Cere [ 16/May/16 ]

Which branch/release? Seems to me like you are missing: https://git.opendaylight.org/gerrit/#/c/37961/

Comment by Ryan Goulding [ 16/May/16 ]

Thanks, Tomas. This was with a Beryllium based build, and that fix came in Beryllium-SR2 and does in fact fix the issue. Resolving this as fixed.

Comment by Balaji Varadaraju [ 16/May/16 ]

Thanks Thomas. Will pick that fix.

Generated at Wed Feb 07 20:14:24 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.