Initial MD-SAL XML for Distributed Data Store
[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
19                 <module>
20                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:runtime-generated-mapping</type>
21                     <name>runtime-mapping-singleton</name>
22                 </module>
23                 <module>
24                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-notification-broker</type>
25                     <name>binding-notification-broker</name>
26                 </module>
27                 <module>
28                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-broker-impl</type>
29                     <name>binding-broker-impl</name>
30                     <notification-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
31                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-notification-service</type>
32                         <name>binding-notification-broker</name>
33                     </notification-service>
34                     <data-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
35                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type>
36                         <name>binding-data-broker</name>
37                     </data-broker>
38                     <root-data-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
39                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
40                         <name>binding-data-broker</name>
41                     </root-data-broker>
42                 </module>
43
44
45                 <module>
46                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider">prefix:inmemory-config-datastore-provider</type>
47                     <name>config-store-service</name>
48                     <schema-service>
49                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
50                         <name>yang-schema-service</name>
51                     </schema-service>
52                 </module>
53
54                 <!-- DISTRIBUTED_DATA_STORE -->
55                 <!-- Enable the following modules if you want to use the Distributed Data Store instead of the InMemoryDataStore -->
56                 <!--
57                 <module>
58                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:config:distributed-datastore-provider">prefix:distributed-operational-datastore-provider</type>
59                     <name>distributed-operational-store-module</name>
60                     <schema-service>
61                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
62                         <name>yang-schema-service</name>
63                     </schema-service>
64                 </module>
65
66                 <module>
67                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:config:distributed-datastore-provider">prefix:distributed-config-datastore-provider</type>
68                     <name>distributed-config-store-module</name>
69                     <schema-service>
70                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
71                         <name>yang-schema-service</name>
72                     </schema-service>
73                 </module>
74                 -->
75
76                 <module>
77                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider">prefix:inmemory-operational-datastore-provider</type>
78                     <name>operational-store-service</name>
79                     <schema-service>
80                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
81                         <name>yang-schema-service</name>
82                     </schema-service>
83                 </module>
84                 <!--
85                      Tree-based in-memory data store. This is the data store which is currently
86                      recommended for single-node deployments.
87                 -->
88                 <module>
89                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:dom-inmemory-data-broker</type>
90                     <name>inmemory-data-broker</name>
91
92                     <schema-service>
93                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
94                         <name>yang-schema-service</name>
95                     </schema-service>
96
97                    <config-data-store>
98                         <type xmlns:config-dom-store-spi="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:config-dom-store">config-dom-store-spi:config-dom-datastore</type>
99                         <name>config-store-service</name>
100                         <!-- DISTRIBUTED_DATA_STORE -->
101                         <!--
102                         <name>distributed-config-store-service</name>
103                         -->
104                     </config-data-store>
105
106                     <operational-data-store>
107                         <type xmlns:operational-dom-store-spi="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:operational-dom-store">operational-dom-store-spi:operational-dom-datastore</type>
108                         <name>operational-store-service</name>
109                         <!-- DISTRIBUTED_DATA_STORE -->
110                         <!--
111                         <name>distributed-operational-store-service</name>
112                         -->
113
114                     </operational-data-store>
115                 </module>
116                 <module>
117                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:dom-broker-impl</type>
118                     <name>inmemory-dom-broker</name>
119                     <async-data-broker>
120                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-async-data-broker</type>
121                         <name>inmemory-data-broker</name>
122                     </async-data-broker>
123                 </module>
124                 <module>
125                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-data-compatible-broker</type>
126                     <name>inmemory-binding-data-broker</name>
127                     <dom-async-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
128                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
129                         <name>dom-broker</name>
130                     </dom-async-broker>
131                     <binding-mapping-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
132                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding:binding-dom-mapping-service</type>
133                         <name>runtime-mapping-singleton</name>
134                     </binding-mapping-service>
135                 </module>
136                 <module>
137                     <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-forwarded-data-broker</type>
138                     <name>binding-async-data-broker</name>
139                     <binding-forwarded-data-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
140                         <dom-async-broker>
141                             <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
142                             <name>dom-broker</name>
143                         </dom-async-broker>
144                         <binding-mapping-service>
145                             <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding:binding-dom-mapping-service</type>
146                             <name>runtime-mapping-singleton</name>
147                         </binding-mapping-service>
148                     </binding-forwarded-data-broker>
149                 </module>
150             </modules>
151             <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
152                     <service>
153                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:schema-service</type>
154                         <instance>
155                             <name>yang-schema-service</name>
156                             <provider>/modules/module[type='schema-service-singleton'][name='yang-schema-service']</provider>
157                         </instance>
158                     </service>
159
160                 <!-- DISTRIBUTED_DATA_STORE -->
161                 <!-- Enable the following if you want to use the Distributed Data Store instead of the InMemory Data Store -->
162                 <!-- Note that you MUST delete the InMemoryDataStore related services which provide config-dom-datastore and operational-dom-datastore -->
163                 <!--
164                 <service>
165                     <type xmlns:config-dom-store-spi="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:config-dom-store">config-dom-store-spi:config-dom-datastore</type>
166                     <instance>
167                         <name>distributed-config-store-service</name>
168                         <provider>/modules/module[type='distributed-config-datastore-provider'][name='distributed-config-store-module']</provider>
169                     </instance>
170                 </service>
171                 <service>
172                     <type xmlns:operational-dom-store-spi="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:operational-dom-store">operational-dom-store-spi:operational-dom-datastore</type>
173                     <instance>
174                         <name>distributed-operational-store-service</name>
175                         <provider>/modules/module[type='distributed-operational-datastore-provider'][name='distributed-operational-store-module']</provider>
176                     </instance>
177                 </service>
178                 -->
179
180                 <!-- DISTRIBUTED_DATA_STORE -->
181                 <!-- Delete the following two services (config-store-service and operational-store-service) if you want to use the distributed data store instead -->
182                 <service>
183                     <type xmlns:config-dom-store-spi="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:config-dom-store">config-dom-store-spi:config-dom-datastore</type>
184                     <instance>
185                         <name>config-store-service</name>
186                         <provider>/modules/module[type='inmemory-config-datastore-provider'][name='config-store-service']</provider>
187                     </instance>
188                 </service>
189                 <service>
190                     <type xmlns:operational-dom-store-spi="urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:operational-dom-store">operational-dom-store-spi:operational-dom-datastore</type>
191                     <instance>
192                         <name>operational-store-service</name>
193                         <provider>/modules/module[type='inmemory-operational-datastore-provider'][name='operational-store-service']</provider>
194                     </instance>
195                 </service>
196                     <service>
197                         <type xmlns:binding-impl="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">binding-impl:binding-dom-mapping-service</type>
198                         <instance>
199                             <name>runtime-mapping-singleton</name>
200                             <provider>/modules/module[type='runtime-generated-mapping'][name='runtime-mapping-singleton']</provider>
201                         </instance>
202                     </service>
203                     <service>
204                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-notification-service</type>
205                         <instance>
206                             <name>binding-notification-broker</name>
207                             <provider>/modules/module[type='binding-notification-broker'][name='binding-notification-broker']</provider>
208                         </instance>
209                     </service>
210                     <service>
211                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-broker-osgi-registry</type>
212                         <instance>
213                             <name>binding-osgi-broker</name>
214                             <provider>/modules/module[type='binding-broker-impl'][name='binding-broker-impl']</provider>
215                         </instance>
216                     </service>
217                     <service>
218                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-rpc-registry</type>
219                         <instance>
220                             <name>binding-rpc-broker</name>
221                             <provider>/modules/module[type='binding-broker-impl'][name='binding-broker-impl']</provider>
222                         </instance>
223                     </service>
224
225                     <service>
226                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
227                         <instance>
228                             <name>dom-broker</name>
229                             <provider>/modules/module[type='dom-broker-impl'][name='inmemory-dom-broker']</provider>
230                         </instance>
231                     </service>
232
233                     <service>
234                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-data-broker</type>
235                         <instance>
236                             <name>binding-data-broker</name>
237                             <provider>/modules/module[type='binding-data-compatible-broker'][name='inmemory-binding-data-broker']</provider>
238                         </instance>
239                     </service>
240
241                     <service>
242                         <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-async-data-broker</type>
243                         <instance>
244                             <name>binding-data-broker</name>
245                             <provider>/modules/module[type='binding-forwarded-data-broker'][name='binding-async-data-broker']</provider>
246                         </instance>
247                     </service>
248
249                     <service>
250                         <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-async-data-broker</type>
251                         <instance>
252                             <name>inmemory-data-broker</name>
253                             <provider>/modules/module[type='dom-inmemory-data-broker'][name='inmemory-data-broker']</provider>
254                         </instance>
255                     </service>
256             </services>
257         </data>
258     </configuration>
259     <required-capabilities>
260         <capability>urn:opendaylight:params:xml:ns:yang:controller:netty:eventexecutor?module=netty-event-executor&amp;revision=2013-11-12</capability>
261         <capability>urn:opendaylight:params:xml:ns:yang:controller:threadpool?module=threadpool&amp;revision=2013-04-09</capability>
262         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&amp;revision=2013-10-28</capability>
263         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom?module=opendaylight-md-sal-dom&amp;revision=2013-10-28</capability>
264         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl?module=opendaylight-sal-binding-broker-impl&amp;revision=2013-10-28</capability>
265         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl?module=opendaylight-sal-dom-broker-impl&amp;revision=2013-10-28</capability>
266         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:common?module=opendaylight-md-sal-common&amp;revision=2013-10-28</capability>
267         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:config-dom-store?module=opendaylight-config-dom-datastore&amp;revision=2014-06-17</capability>
268         <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:core:spi:operational-dom-store?module=opendaylight-operational-dom-datastore&amp;revision=2014-06-17</capability>
269         <capability>urn:opendaylight:params:xml:ns:yang:controller:inmemory-datastore-provider?module=opendaylight-inmemory-datastore-provider&amp;revision=2014-06-17</capability>
270
271     </required-capabilities>
272 </snapshot>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.