[NETCONF-188] If the config statement of top container node or top list node in yang file is false, there should be not such restful apis of posting, getting, putting or deleting config for this node. Created: 27/Apr/16  Updated: 15/Mar/19  Resolved: 13/Jun/16

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

Type: Bug
Reporter: Nanfei Chen Assignee: Nafee Chan
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: 5810

 Description   

If the config statement of top container node or top list node in yang file is false, there should be not such restful apis of posting, getting, putting or deleting config for this node.

As we know from rfc 6020, if config statement of data schema node is false, the definition represents state data. Data nodes representing state data will be part of the reply to a <get>, but not to a <get-config> request, and cannot be sent in a <copy-config> or <edit-config> request.

Take ietf-netconf-monitoring.yang for example. The top container node is netconf-state, and its config statement is false. This container node represents state data, so the following restful apis listed on apidoc should not exist:

POST /config/
GET /config/ietf-netconf-monitoring:netconf-state/
PUT /config/ietf-netconf-monitoring:netconf-state/
DELETE /config/ietf-netconf-monitoring:netconf-state/
POST /config/ietf-netconf-monitoring:netconf-state/



 Comments   
Comment by Nanfei Chen [ 03/Jun/16 ]

master: https://git.opendaylight.org/gerrit/#/c/39815/

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