[CONTROLLER-584] Restconf ignores config attributes of type "empty" Created: 27/Jun/14  Updated: 25/Jul/23  Resolved: 30/Jun/14

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

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

Operating System: Linux
Platform: PC


External issue ID: 1250

 Description   

If my yang model defines a config container as follows -

container blah {
leaf flag

{type empty;}

}

and I try to set it using the following XML

<blah>
<flag/>
</blah>

Restconf ignores to set the "flag" field.



 Comments   
Comment by Jozef Gloncak [ 27/Jun/14 ]

patch set uploaded
https://git.opendaylight.org/gerrit/#/c/8402/

If normalized node for leaf is built there was check that null has to be different from null value. For leaf of empty type the value is null. This check was removed.

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