...
Solutions | Issues |
---|---|
Obtain the schema node from the xpath of the queried node. Node xpath will be /bookstore/categories[@code='01'] where bookstore is the container name given in the module info. | This should be reasonably straightforward as the top level node is named after the container name given by the module yang file. |
Create a query to obtain the schema node directly from the database using and propagate through persistence and service layers. | Would need to create a new query which would parse the json data from the yang_resource content and find the container name which is very memory intensive for its use case. Also would need to pass a new schema node object to the toDataMap method which would not be used every time which it is called. |
For the JSON output of Get DataNode we need to alter the DataMapUtils class. The function toDataMap translates a datanode object to a JSON output:
...