Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-544

Unable to get list items from top level container

    XMLWordPrintable

Details

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

    • 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

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            giheron@cisco.com Giles Heron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: