Bug 5175: RPC called on mount point not being correctly handled when multiple revisio... 83/33983/1
authoradetalhouet <adetalhouet@inocybe.com>
Wed, 3 Feb 2016 14:04:40 +0000 (09:04 -0500)
committerAlexis de Talhouët <adetalhouet@inocybe.com>
Wed, 3 Feb 2016 14:05:47 +0000 (14:05 +0000)
commit18b7a2d39b4f2d52a5156a7365f67fe599aa0521
tree269495b21e91f9e256f852d663647e11e3eef72b
parent18ae2cfb872612d412d4d1dbd7cf47cdfebc69b3
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