Uploaded image for project: 'netconf'
  1. netconf
  2. 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.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • restconf-nb
    • None
    • Operating System: All
      Platform: All

    • 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/

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nafee.chan@gmail.com Nafee Chan
            nanfei.nf.chen@gmail.com Nanfei Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: