2 module opendaylight-inmemory-datastore-provider {
5 namespace "urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider";
6 prefix "inmemory-datastore-provider";
8 import config { prefix config; revision-date 2013-04-05; }
9 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
10 import opendaylight-config-dom-datastore {prefix config-dom-store-spi;}
11 import opendaylight-operational-dom-datastore {prefix operational-dom-store-spi;}
12 import opendaylight-md-sal-dom {prefix sal;}
15 "InMemory datastore provider implementation for config & operational datastore";
17 revision "2014-06-17" {
22 // This is the definition of the service implementation as a module identity.
23 identity inmemory-config-datastore-provider {
24 base config:module-type;
25 config:provided-service config-dom-store-spi:config-dom-datastore;
26 config:java-name-prefix InMemoryConfigDataStoreProvider;
29 // This is the definition of the service implementation as a module identity.
31 identity inmemory-operational-datastore-provider {
32 base config:module-type;
33 config:provided-service operational-dom-store-spi:operational-dom-datastore;
34 config:java-name-prefix InMemoryOperationalDataStoreProvider;
38 // Augments the 'configuration' choice node under modules/module.
39 augment "/config:modules/config:module/config:configuration" {
40 case inmemory-config-datastore-provider {
41 when "/config:modules/config:module/config:type = 'inmemory-config-datastore-provider'";
43 container schema-service {
44 uses config:service-ref {
47 config:required-identity sal:schema-service;
52 leaf max-data-change-executor-queue-size {
55 description "The maximum queue size for the data change notification executor.";
58 leaf max-data-change-executor-pool-size {
61 description "The maximum thread pool size for the data change notification executor.";
64 leaf max-data-change-listener-queue-size {
67 description "The maximum queue size for the data change listeners.";
72 // Augments the 'configuration' choice node under modules/module.
73 augment "/config:modules/config:module/config:configuration" {
74 case inmemory-operational-datastore-provider {
75 when "/config:modules/config:module/config:type = 'inmemory-operational-datastore-provider'";
77 // Yang does not allow two cases from same namespaces with same children
78 // Schema-service dependency renamed to operational-schema-service
79 // to prevent conflict with schema-service container from inmemory-config-datastore-provider
80 container operational-schema-service {
81 uses config:service-ref {
84 config:required-identity sal:schema-service;
89 leaf max-data-change-executor-queue-size {
92 description "The maximum queue size for the data change notification executor.";
95 leaf max-data-change-executor-pool-size {
98 description "The maximum thread pool size for the data change notification executor.";
101 leaf max-data-change-listener-queue-size {
104 description "The maximum queue size for the data change listeners.";