Bug 5175: RPC called on mount point not being correctly handled when multiple revisio... 18/33918/1
authoradetalhouet <adetalhouet@inocybe.com>
Tue, 2 Feb 2016 17:36:17 +0000 (12:36 -0500)
committeradetalhouet <adetalhouet@inocybe.com>
Tue, 2 Feb 2016 17:36:17 +0000 (12:36 -0500)
commit967558bda496952706e78581b7a185e11e66806e
treefe5d21b3b4e152fc10181efdd9b16304a5ec53d5
parent6c307c16a48781dfc1623b75afb31635760f8395
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: Ief10dab8925bc942f446895fe7078ebcb1105a3a
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/ControllerContext.java
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.java