Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-198

PATCH success "ok" field has wrong JSON value

    XMLWordPrintable

Details

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

    • 5898

    Description

      Both "ok" leafs in the PATCH output are of type empty.
      https://tools.ietf.org/html/draft-ietf-netconf-yang-patch-08#section-3

      The value should be written either as [null] or as {} (depending on Restconf draft version). But currently the value is written as null.

      $ curl -u'admin:admin' -X PATCH -H "Content-Type:application/yang.patch+json" -d '{"ietf-restconf:yang-patch":{"patch-id":"0","edit":[{"edit-id":"0","operation":"replace","target":"/car:car-entry[car:id='"'"'0'"'"']","value":{"car:car-entry":[

      {"id":"0"}

      ]}}]}' 127.0.0.1:8181/restconf/config/car:cars ;echo

      {"ietf-yang-patch:yang-patch-status":

      {"patch-id":"0","ok":null}

      }

      Attachments

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

        Activity

          People

            ivan.hrasko@pantheon.tech Ivan Hrasko
            vrpolak Vratko Polak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: