Construct IMDS delegate with proper type 66/76266/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Sep 2018 08:35:47 +0000 (10:35 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 19 Sep 2018 13:22:11 +0000 (13:22 +0000)
commit456db4d88f7e54347e0dda36f2c0cc6fd10ff9bf
tree2659571e0d80d6d12d1febeecbc29dfa0d784d0c
parent6c8865b7937fd5a301d9066e4bf938129eec1fbe
Construct IMDS delegate with proper type

This patch makes sure we do not ignore the datastore type, but
pass it down to MD-SAL's IMDS.

Since we are converting from controller to mdsal LogicalDatastoreType
in multiple places, centralize this via LogicalDatastoreType.toMdsal().

JIRA: MDSAL-370
Change-Id: I5e027fd439e325ff91344de98511e503fc801992
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 0425ce4501aec2d8f96d6379baa1116a5350fba2)
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/LogicalDatastoreType.java
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java