[CONTROLLER-633] RESTCONF support RPC on yang-ext:mount for any mounted "module" Created: 16/Jul/14  Updated: 14/Nov/17  Due: 22/Jul/14  Resolved: 22/Jul/14

Status: Verified
Project: controller
Component/s: restconf
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: James Gregory Hall Assignee: Jozef Gloncak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


External issue ID: 1379
Priority: High

 Description   

yang-ext:mount allows a remote device to expose it's modules via RESTCONF. The controller will establish the mounted "capabilities" and then uses get-schema to load the module yang directly from the device.

This is very powerful, as it lets the controller, and it's RESTCONF NBI aggregate the capabilities from all managed devices as long as the device exports the yang for each.

The catch is that when RESTCONF POST is made such as :

http://server:8080/restconf/operations/opendaylight-inventory:/nodes/node/nameofnode/yang-ext:mount/modulename:rpcname

RestconfImpl current looks up the modulename in the global ControllerContext which doesn't have said modulename if it's unique to the device.

To make this concrete: The netopeer server has a toaster "capability" and today you can in fact issue a "make-toast" rpc on the "toaster" module via:

restconf/opendaylight-inventory:nodes/node/netopeer-config/yang-ext:mount/toaster:make-toast

However this only works if the "toaster" sample is configured on the controller. If it isn't, then this "toaster" capability isn't known to the controller and the RPC isn't considered valid.



 Comments   
Comment by Robert Varga [ 21/Jul/14 ]

Reassigned to restconf and prioritized.

Comment by Jozef Gloncak [ 21/Jul/14 ]

The cause was probably identified. I will continue working on it tomorrow. Fix should be prepared during tomorrow.

Comment by Jozef Gloncak [ 22/Jul/14 ]

patch set at
https://git.opendaylight.org/gerrit/#/c/9218/
proposed.

Comment by Jozef Gloncak [ 22/Jul/14 ]

tested as follows:

Generated at Wed Feb 07 19:53:30 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.