Bug 6256 - OpenDaylight RESTCONF XML selects wrong YANG model for southbound NETCONF 24/46224/3
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 27 Sep 2016 12:32:33 +0000 (14:32 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Sun, 2 Oct 2016 21:06:14 +0000 (21:06 +0000)
commit87542484718b320055eb1de42b85f90ef7624584
tree0d072b13aecd9007e38b09243e209d5361471604
parentc09b7ffd0f3812a237c82805ea16a67ffdeda89d
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>
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]