Change-Id: I049291cf528323652c4ea4961a8b45ce59d80f41
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
final DistributedDataStore configDatastore = new DistributedDataStore(actorSystem, "config");
final DistributedDataStore configDatastore = new DistributedDataStore(actorSystem, "config");
+ getSchemaServiceDependency().registerSchemaServiceListener(configDatastore);
final class AutoCloseableDistributedDataStore implements AutoCloseable {
final class AutoCloseableDistributedDataStore implements AutoCloseable {
final ActorSystem actorSystem = ActorSystem.create("opendaylight-cluster", ConfigFactory
.load().getConfig("ODLCluster"));
final DistributedDataStore operationalStore = new DistributedDataStore(actorSystem, "operational");
final ActorSystem actorSystem = ActorSystem.create("opendaylight-cluster", ConfigFactory
.load().getConfig("ODLCluster"));
final DistributedDataStore operationalStore = new DistributedDataStore(actorSystem, "operational");
+ getSchemaServiceDependency().registerSchemaServiceListener(operationalStore);
final class AutoCloseableDistributedDataStore implements AutoCloseable {
final class AutoCloseableDistributedDataStore implements AutoCloseable {
augment "/config:modules/config:module/config:configuration" {
case distributed-config-datastore-provider {
when "/config:modules/config:module/config:type = 'distributed-config-datastore-provider'";
augment "/config:modules/config:module/config:configuration" {
case distributed-config-datastore-provider {
when "/config:modules/config:module/config:type = 'distributed-config-datastore-provider'";
+ container schema-service {
+ uses config:service-ref {
+ refine type {
+ mandatory false;
+ config:required-identity sal:schema-service;
+ }
+ }
+ }
augment "/config:modules/config:module/config:configuration" {
case distributed-operational-datastore-provider {
when "/config:modules/config:module/config:type = 'distributed-operational-datastore-provider'";
augment "/config:modules/config:module/config:configuration" {
case distributed-operational-datastore-provider {
when "/config:modules/config:module/config:type = 'distributed-operational-datastore-provider'";
+ container schema-service {
+ uses config:service-ref {
+ refine type {
+ mandatory false;
+ config:required-identity sal:schema-service;
+ }
+ }
+ }