Bug 6256 - OpenDaylight RESTCONF XML selects wrong YANG model for southbound NETCONF 04/47304/4
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 27 Sep 2016 12:32:33 +0000 (14:32 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 21 Oct 2016 14:52:05 +0000 (14:52 +0000)
commit07000c2571eb3d437b3a48b4a241418b8e053947
tree3e1d2abd216031cc3bdb9fc3d6b737da37d481d2
parent644eb0a19a61351e7fbf66625dee2d0d6668d89b
Bug 6256 - OpenDaylight RESTCONF XML selects wrong YANG model for southbound NETCONF

- dataSchemaNode can contains multiple childs with the same name,
thus when looking for child also namespace has to be compared
- added unit tests

Change-Id: I922e96fd2aea686c27ad4683ef7366c6718486c3
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
(cherry picked from commit 87542484718b320055eb1de42b85f90ef7624584)
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/XmlNormalizedNodeBodyReader.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlBodyReader.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlBodyReaderMountPoint.java
restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlDataFindBarContainer.xml [new file with mode: 0644]
restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlDataFindFooContainer.xml [new file with mode: 0644]
restconf/sal-rest-connector/src/test/resources/instanceidentifier/yang/bar-module.yang [new file with mode: 0644]
restconf/sal-rest-connector/src/test/resources/instanceidentifier/yang/foo-module.yang [new file with mode: 0644]