Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-851

MDSAL rejects valid json file when YANG model has a container that crosses a Choice

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Cannot Reproduce
    • None
    • None
    • codecs
    • None
    • OpenDaylight Nitrogen release version.

    Description

      The attached files include the YANG models used and the test file I posted to the nrothbound.

      To re-create, create a dummy project. put the attached files in api/src/main/yang

      Build the project and POST the json file ( see attached tar.gz) to the northbound

      curl -v -X PUT -u admin:admin --header "Content-Type:application/json" --data @access-control-list.json http://127.0.0.1:8181/restconf/config/ietf-access-control-list:access-lists

       Attached error.log (stdout  error returned when I use CURL to post )

      Attached karaf-logs.tar.gz the server logs from Karaf. I set these to DEBUG and repeated the experiment above.

      Attachments

        1. access-control-list.json
          5 kB
          M. Ranganathan
        2. bug.tar.gz
          1.84 MB
          M. Ranganathan
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            M.Ranganathan M. Ranganathan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: