Merge "Bump Puppet version 4.x to 5.x"
[integration/packaging/puppet-opendaylight.git] / templates / 10-rest-connector.xml.erb
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-address><%= scope.lookupvar('opendaylight::odl_bind_ip') %></websocket-address>
18           <websocket-port>8185</websocket-port>
19           <dom-broker>
20             <type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
21             <name>dom-broker</name>
22           </dom-broker>
23         </module>
24       </modules>
25
26       <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
27         <service>
28           <type xmlns:rest="urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector">rest:rest-connector</type>
29           <instance>
30             <name>rest-connector-default</name>
31             <provider>
32               /modules/module[type='rest-connector-impl'][name='rest-connector-default-impl']
33             </provider>
34           </instance>
35         </service>
36       </services>
37     </data>
38   </configuration>
39   <required-capabilities>
40       <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector?module=opendaylight-rest-connector&amp;revision=2014-07-24</capability>
41   </required-capabilities>
42 </snapshot>