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 {
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'";
+ container schema-service {
+ uses config:service-ref {
+ refine type {
+ mandatory false;
+ config:required-identity sal:schema-service;
+ }
+ }
+ }
}
}
}