Bug 3024 - Restconf PUT exception when top level node is from
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)
commitef3cc371a57bbaff2274110ee43131ba93e15e7a
tree46e3f6a6afcb4bc56794dc120eaf5274345ec04b
parent428d1ce3ef881d330038579b0f7ea2de75fd25e8
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