[CONTROLLER-475] Non-configuration items in the model appear in the config namespace Created: 14/May/14  Updated: 19/Jan/16  Resolved: 19/Jan/16

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

Type: Bug
Reporter: Rob Adams Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Issue Links:
Blocks
blocks OPNFLWPLUG-271 Remove table_id in flow from config n... Resolved
is blocked by YANGTOOLS-363 Milestone: Basic constraints validation Resolved
Duplicate
is duplicated by CONTROLLER-968 "config false" on leaf node is not en... Resolved
External issue ID: 1014
Priority: High

 Description   

If items aren't listed with config: true then they should not appear in the documentation in the config namespace nor should they be accessible in the config namespace.

$ curl -X PUT -H 'Content-type: application/yang.data+json' -d '{"toaster": {"toasterStatus": "Down"}}' http://localhost:8080/restconf/config/toaster:toaster

$ curl http://localhost:8080/restconf/config/toaster:toaster
{
"toaster":

{ "toasterStatus": "Down" }

}



 Comments   
Comment by Tony Tkacik [ 19/May/14 ]

Increased importance, since this may confuse end-users.

Comment by Devin Avery [ 24/Jun/14 ]

Changing the filed against to MD-SAL as this is actually a problem with the config data-store. We need to enforce this at the config datastore level.

There is plenty of discussion on the MD-SAL call today about how to implement. Let continue this discussion here and on mailing lists.

Comment by Wojciech Dec [ 25/Jun/14 ]

I would argue that this is actually not a bug: http://tools.ietf.org/html/rfc6020#section-7.19.1 states

If "config" is not specified, the default is the same as the parent
schema node's "config" value. If the parent node is a "case" node,
the value is the same as the "case" node's parent "choice" node."

Comment by Wojciech Dec [ 26/Jun/14 ]

And...

If the top node does not specify a "config" statement, the default is
"true".

Comment by Rob Adams [ 26/Jun/14 ]

The bug is that items are either operational or config; they are not both.

Comment by Jan Hajnar [ 20/May/15 ]

yangtools patch:
https://git.opendaylight.org/gerrit/#/c/20501/

Comment by Robert Varga [ 13/Nov/15 ]

This fell through the cracks of Lithium, scheduling for follow-up.

Comment by Robert Varga [ 13/Nov/15 ]

Be: https://git.opendaylight.org/gerrit/29645 for CDS

Still needs the final Shard instantiation bit.

Comment by Robert Varga [ 13/Nov/15 ]

Be: https://git.opendaylight.org/gerrit/29668
Be: https://git.opendaylight.org/gerrit/29669

Comment by Robert Varga [ 10/Dec/15 ]

Be IMDS: https://git.opendaylight.org/gerrit/31137

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