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

MD-SAL not unmarshalling not yet seen Identifiers

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • mdsal
    • None
    • Operating System: Linux
      Platform: PC

    • 388

    Description

      Using the toaster sample and the release distribution, when I issue a request to "make-toast" a null pointer exception is being thrown in

      org.opendaylight.controller.sample.toaster.provider.OpendaylightToaster.logToastInput(OpendaylightToaster.java:100).

      It appears the the toasterToastType input parameter is not correctly be marshalled as the value in the internal structure is even though it has been set on the API call. The toasterDoneness value is being marshalled correctly.

      My concern is that this may mean that general marshalling for the RESTCONF interface is not working correctly.

      The API is being invoked using the following curl:

      curl -v -H "Content-Type: application/vnd.yang.operation+json" -XPOST http://admin:admin@localhost:8080/restconf/operations/toaster:make-toast -d '{ "input" :

      { "toasterDoneness" : 3, "toasterToastType" : "white-bread" }

      }'

      Attachments

        Issue Links

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

          Activity

            People

              mmarsale@cisco.com Maros Marsalek
              dbainbri.ciena@gmail.com David Bainbridge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: