[NETCONF-432] add RESTCONF capability for schemaless mount Created: 23/Jun/17  Updated: 15/Mar/19

Status: Confirmed
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Giles Heron Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

it would be good if we could use the RESTCONF (and NETCONF) NBs to access schemaless mounts. The current schemaless mount code doesn't allow this.

Given that there's no YANG model to infer the URL structure for RESTCONF I suspect the best way to handle this is to create new RPCs that get, edit and delete data for schemaless devices - and which take the device name, subtree or xpath, and (for edit) the anyxml data to write as parameters.

This was requested by Hu Wenbo <huwenbo1988@gmail.com>.



 Comments   
Comment by Jakub Toth [ 01/Aug/17 ]

Hi,

NETCONF part is prepared for work with schemaless mounts. It seems to be good idea to use RPCs to handle this. It should work.

Comment by Giles Heron [ 01/Aug/17 ]

is it possible to make a rough estimate of how much work would be required?

it'd be great if we could get this in Oxygen.

Comment by Wenbo Hu [ 01/Aug/17 ]

Just like what I wrote before.
Maybe we can use a specific endpoint which accepts any xml payload and outputs the response directly from netconf device.
Or write a kind of meta yang model that everything is anyxml and it is loaded as a default model, so that we can get rid of irrelevant model errors.

Comment by Jakub Toth [ 07/Aug/17 ]

Hi guys,

I got problem with use of anyxml. But there exists solution by replacing anyxml with leaf as string (string can be converted into DOMSource/DOM doc and build anyxml node)

I think it would take around 5MD (3-4 MD for implementation, 1MD for junit tests)

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