Bug 5175: RPC called on mount point not being correctly handled when multiple revisio... 82/33982/1
authoradetalhouet <adetalhouet@inocybe.com>
Wed, 3 Feb 2016 14:04:40 +0000 (09:04 -0500)
committeradetalhouet <adetalhouet@inocybe.com>
Wed, 3 Feb 2016 14:04:40 +0000 (09:04 -0500)
commit991e8e871b94b4b397bc82ebbd1a159b0542d674
treebe807a0f5ff939d7b6a96b8fcfbed8e7e0ea0049
parente26d4960e9ba3b0dc4a2dc05e3ed1c44cafdaf39
Bug 5175: RPC called on mount point not being correctly handled when multiple revision-date coexist

 The ControllerContext#toQname was just looking for module using the module name. In scenarios where you have multiple revision for the same module, the method was returning the latest schema. This fix is to retreive the schema based on the revision date

Change-Id: Ie1f3ae1b6c4e6fd7133f64f3f5e7c8899c42db5a
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/ControllerContext.java
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfImpl.java