Bug 8533: Not possible to invoke RPC on mount points with new Restconf 85/57685/3
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 23 May 2017 12:27:04 +0000 (14:27 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 23 May 2017 13:22:50 +0000 (13:22 +0000)
commitb140321b3fbdcb74bf6f41a9b55baf2578d7ba95
tree5ad955f8fbdf98a658253fb6ebfe14cbaad233ec
parenteb8a4d946d946f39c5d73fc392c5c59f14c4ea97
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]