Bug 6256 - OpenDaylight RESTCONF XML selects wrong YANG model for southbound NETCONF 30/46530/2
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 27 Sep 2016 12:32:33 +0000 (14:32 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 5 Oct 2016 08:25:20 +0000 (10:25 +0200)
commit5eccda85a5bc248582cab2f596c8fd455aab67dc
treecb2c4e30d2a5128b6e76689b5bbf55c07f77be44
parent75c3077e96415288ca4af0e73bd782570d08d3f8
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>
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/XmlNormalizedNodeBodyReader.java
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlBodyReader.java
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlBodyReaderMountPoint.java
opendaylight/restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlDataFindBarContainer.xml [new file with mode: 0644]
opendaylight/restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlDataFindFooContainer.xml [new file with mode: 0644]
opendaylight/restconf/sal-rest-connector/src/test/resources/instanceidentifier/yang/bar-module.yang [new file with mode: 0644]
opendaylight/restconf/sal-rest-connector/src/test/resources/instanceidentifier/yang/foo-module.yang [new file with mode: 0644]