Added configuration options to MD-SAL
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / yang / opendaylight-dom-broker-impl.yang
1 module opendaylight-sal-dom-broker-impl {
2         yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl";
4     prefix "binding-impl";
5
6         import config { prefix config; revision-date 2013-04-05; }
7         import opendaylight-md-sal-dom {prefix sal;}
8
9     description
10         "Service definition for Binding Aware MD-SAL.";
11  
12     revision "2013-10-28" {
13         description
14             "Initial revision";
15     }
16
17     identity dom-broker-impl {
18         base config:module-type;
19         config:provided-service sal:dom-broker-osgi-registry;
20         config:java-name-prefix DomBrokerImpl;
21     }
22     
23     identity hash-map-data-store {
24         base config:module-type;
25         config:provided-service sal:dom-data-store;
26         config:java-name-prefix HashMapDataStore;
27     }
28     
29     identity schema-service-singleton {
30         base config:module-type;
31         config:provided-service sal:schema-service;
32         config:java-name-prefix SchemaServiceImplSingleton;
33     }
34
35     augment "/config:modules/config:module/config:configuration" {
36         case dom-broker-impl {
37             when "/config:modules/config:module/config:type = 'dom-broker-impl'";
38             container data-store {
39                 uses config:service-ref {
40                     refine type {
41                         mandatory true;
42                         config:required-identity sal:dom-data-store;
43                     }
44                 }
45             }
46         }
47     }
48     
49     augment "/config:modules/config:module/config:state" {
50         case hash-map-data-store {
51             when "/config:modules/config:module/config:type = 'hash-map-data-store'";
52         }
53     }
54     
55     augment "/config:modules/config:module/config:state" {
56         case schema-service-singleton {
57             when "/config:modules/config:module/config:type = 'schema-service-singleton'";
58         }
59     }
60     
61 }