Bug 8533: Not possible to invoke RPC on mount points with new Restconf 59/57659/7
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 23 May 2017 07:27:43 +0000 (09:27 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 23 May 2017 13:19:27 +0000 (13:19 +0000)
commit59e8886aaa4c7657ab339d09ed939904422a8f1f
tree6b9b6d83e76cff64f7b1f52a73e1174adae61cd4
parent6de64ea6300902a96161caa0aa230b2e9f0e8ef9
Bug 8533: Not possible to invoke RPC on mount points with new Restconf

- put identifer of RPC into InstanceIdentiferContext
instead of mount point identifer which leads to fail
in unit test

- when working with mount point use mount point's
schema context to find RPC module, previously used
controller's schema context leads to NPE

- repaired imports in RestconfApplication to use
new implementation

Change-Id: Ieb46b050e881c89ea58bb9f521be69554733d575
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/RestconfApplication.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/utils/parser/ParserIdentifier.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/restconf/jersey/providers/XmlBodyReaderMountPointTest.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/restconf/utils/parser/ParserIdentifierTest.java
restconf/sal-rest-connector/src/test/resources/parser-identifier/invoke-rpc-module.yang [new file with mode: 0644]