Bug 3024 - Restconf PUT exception when top level node is from 65/18765/6
authorJan Hajnar <jhajnar@cisco.com>
Tue, 21 Apr 2015 17:11:52 +0000 (19:11 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Thu, 23 Apr 2015 17:58:15 +0000 (17:58 +0000)
commit5e2a4e8e11594b5cb49c6e73dd3b2d724b038135
tree8a336ca84d833c03b028c7ca7e6b6deb61a3de90
parent4c2eb5190241306df418c45253a914d06eb6815b
Bug 3024 - Restconf PUT exception when top level node is from
augmentation

* added check for PUT into JsonNormalizedNodeBodyReader. If method is
PUT then data are unwraped from augmentations/choice nodes
* added wrapping of augmentation nodes when using XmlNormalizedNodeBodyReader
* commented out check for namespace in createConfigurationData (it should be
moved to parse stage)
* both XmlNormalizedNodeBodyReader and JsonNormalizedNodeBodyReader
should now produce the same normalized node data and paths for
equivalent XML and JSON input.

Change-Id: I21f4594d20170f33177cbae00791b81f6ae640b2
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/JsonNormalizedNodeBodyReader.java
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/XmlNormalizedNodeBodyReader.java
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.java