[CONTROLLER-544] Unable to get list items from top level container Created: 06/Jun/14  Updated: 25/Jul/23  Resolved: 06/Jun/14

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

Type: Bug
Reporter: Giles Heron 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: 1148

 Description   

Given a YANG module with a top-level container consisting solely of a description and a list, I can get the whole list using:

http://host:port/restconf/configuration/opendaylight-inventory:nodes/node/node-name/yang-ext:mount/module-name:container-name/

But if I try to get an individual entry using:

http://host:port/restconf/configuration/opendaylight-inventory:nodes/node/node-name/yang-ext:mount/module-name:container-name/list-name/key

I get

<list-name/>

(using XML)

or

{
"list-name": [
{}
]
}

(using JSON)

This was working in previous releases of the controller (e.g. a release from May 13th).

I've tried it with 2 different YANG modules, one with a simple key and one with a compound key. Either way it fails



 Comments   
Comment by Giles Heron [ 06/Jun/14 ]

Seems to be fixed in the build from today

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