Merge "Wiring rest-connector with config subsytem."
[controller.git] / opendaylight / md-sal / sal-rest-connector-config / src / main / resources / initial / 10-rest-connector.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <snapshot>
10   <configuration>
11     <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
12       <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
13         <!-- default OF-switch-connection-provider (port 6633) -->
14         <module>
15           <type xmlns:rest="urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector">rest:rest-connector-impl</type>
16           <name>rest-connector-default-impl</name>
17           <websocket-port>8181</websocket-port>
18           <dom-broker>
19             <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
20             <name>dom-broker</name>
21           </dom-broker>
22         </module>
23       </modules>
24
25       <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
26         <service>
27           <type xmlns:rest="urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector">rest:rest-connector</type>
28           <instance>
29             <name>rest-connector-default</name>
30             <provider>
31               /modules/module[type='rest-connector-impl'][name='rest-connector-default-impl']
32             </provider>
33           </instance>
34         </service>
35       </services>
36     </data>
37   </configuration>
38 </snapshot>