Merge "BUG-509: Cleanup datastore switching configuration"
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / configuration / initial / 01-md-sal.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <snapshot>
11     <configuration>
12         <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
13             <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
14                 <module>
15                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:schema-service-singleton</type>
16                     <name>yang-schema-service</name>
17                 </module>
18                 <module>
19                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:runtime-generated-mapping</type>
20                     <name>runtime-mapping-singleton</name>
21                 </module>
22                 <module>
23                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-notification-broker</type>
24                     <name>binding-notification-broker</name>
25                 </module>
26                 <module>
27                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-broker-impl</type>
28                     <name>binding-broker-impl</name>
29                     <notification-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
30                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-notification-service</type>
31                         <name>binding-notification-broker</name>
32                     </notification-service>
33                     <data-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
34                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type>
35                         <name>binding-data-broker</name>
36                     </data-broker>
37                 </module>
38
39                 <!--
40                      Legacy key/value in-memory data store. This is no longer supported and will
41                      be removed in a future release.
42                 -->
43                 <module>
44                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:hash-map-data-store</type>
45                     <name>hash-map-data-store</name>
46                 </module>
47                 <module>
48                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:dom-broker-impl</type>
49                     <name>legacy-dom-broker</name>
50                     <data-store xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">
51                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-data-store</type>
52                         <!--
53                              To switch to the clustered data store, comment out the
54                              hash-map-data-store <name> and uncomment the cluster-data-store one.
55                         -->
56                         <name>hash-map-data-store</name>
57                         <!-- <name>cluster-data-store</name> -->
58                     </data-store>
59                 </module>
60                 <module>
61                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-data-broker</type>
62                     <name>legacy-binding-data-broker</name>
63                     <dom-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
64                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
65                         <name>dom-broker</name>
66                     </dom-broker>
67                     <mapping-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
68                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding:binding-dom-mapping-service</type>
69                         <name>runtime-mapping-singleton</name>
70                     </mapping-service>
71                 </module>
72
73                 <!--
74                      Tree-based in-memory data store. This is the data store which is currently
75                      recommended for single-node deployments.
76                 -->
77                 <module>
78                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:dom-inmemory-data-broker</type>
79                     <name>inmemory-data-broker</name>
80                     <schema-service>
81                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
82                         <name>yang-schema-service</name>
83                     </schema-service>
84                 </module>
85                 <module>
86                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:dom-broker-impl</type>
87                     <name>inmemory-dom-broker</name>
88                     <async-data-broker>
89                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-async-data-broker</type>
90                         <name>inmemory-data-broker</name>
91                     </async-data-broker>
92                 </module>
93                 <module>
94                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-data-compatible-broker</type>
95                     <name>inmemory-binding-data-broker</name>
96                     <dom-async-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
97                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
98                         <name>dom-broker</name>
99                     </dom-async-broker>
100                     <binding-mapping-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
101                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding:binding-dom-mapping-service</type>
102                         <name>runtime-mapping-singleton</name>
103                     </binding-mapping-service>
104                 </module>
105             </modules>
106             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
107                     <service>
108                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
109                         <instance>
110                             <name>yang-schema-service</name>
111                             <provider>/modules/module[type='schema-service-singleton'][name='yang-schema-service']</provider>
112                         </instance>
113                     </service>
114                     <service>
115                         <type xmlns:binding-impl="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding-impl:binding-dom-mapping-service</type>
116                         <instance>
117                             <name>runtime-mapping-singleton</name>
118                             <provider>/modules/module[type='runtime-generated-mapping'][name='runtime-mapping-singleton']</provider>
119                         </instance>
120                     </service>
121                     <service>
122                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-notification-service</type>
123                         <instance>
124                             <name>binding-notification-broker</name>
125                             <provider>/modules/module[type='binding-notification-broker'][name='binding-notification-broker']</provider>
126                         </instance>
127                     </service>
128                     <service>
129                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
130                         <instance>
131                             <name>binding-osgi-broker</name>
132                             <provider>/modules/module[type='binding-broker-impl'][name='binding-broker-impl']</provider>
133                         </instance>
134                     </service>
135                     <service>
136                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-rpc-registry</type>
137                         <instance>
138                             <name>binding-rpc-broker</name>
139                             <provider>/modules/module[type='binding-broker-impl'][name='binding-broker-impl']</provider>
140                         </instance>
141                     </service>
142
143                     <service>
144                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
145                         <instance>
146                             <name>dom-broker</name>
147
148                             <!--
149                                  !!! IN-MEMORY DATASTORE !!!
150
151                                  Remove this declaration and uncomment the following one to
152                                  activate the use of in-memory prototype in the BA world.
153                             -->
154                             <provider>/modules/module[type='dom-broker-impl'][name='legacy-dom-broker']</provider>
155                             <!--
156                             <provider>/modules/module[type='dom-broker-impl'][name='inmemory-dom-broker']</provider>
157                             -->
158                         </instance>
159                     </service>
160
161                     <service>
162                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type>
163                         <instance>
164                             <name>binding-data-broker</name>
165                             <!--
166                                  !!! IN-MEMORY DATASTORE !!!
167
168                                  Remove this declaration and uncomment the following one to
169                                  activate the use of in-memory prototype in the BI world.
170                             -->
171                             <provider>/modules/module[type='binding-data-broker'][name='legacy-binding-data-broker']</provider>
172                             <!--
173                             <provider>/modules/module[type='binding-data-compatible-broker'][name='inmemory-binding-data-broker']</provider>
174                             -->
175                         </instance>
176                     </service>
177
178                     <service>
179                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-data-store</type>
180                         <instance>
181                             <name>hash-map-data-store</name>
182                             <provider>/modules/module[type='hash-map-data-store'][name='hash-map-data-store']</provider>
183                         </instance>
184                     </service>
185                     <service>
186                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-async-data-broker</type>
187                         <instance>
188                             <name>inmemory-data-broker</name>
189                             <provider>/modules/module[type='dom-inmemory-data-broker'][name='inmemory-data-broker']</provider>
190                         </instance>
191                     </service>
192             </services>
193         </data>
194     </configuration>
195     <required-capabilities>
196         <capability>urn:opendaylight:params:xml:ns:yang:controller:netty:eventexecutor?module=netty-event-executor&amp;revision=2013-11-12</capability>
197         <capability>urn:opendaylight:params:xml:ns:yang:controller:threadpool?module=threadpool&amp;revision=2013-04-09</capability>
198         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&amp;revision=2013-10-28</capability>
199         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom?module=opendaylight-md-sal-dom&amp;revision=2013-10-28</capability>
200         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl?module=opendaylight-sal-binding-broker-impl&amp;revision=2013-10-28</capability>
201         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl?module=opendaylight-sal-dom-broker-impl&amp;revision=2013-10-28</capability>
202         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:common?module=opendaylight-md-sal-common&amp;revision=2013-10-28</capability>
203     </required-capabilities>
204 </snapshot>