Add blueprint wiring for loopback controller-config
[netconf.git] / netconf / netconf-connector-config / src / main / resources / org / opendaylight / blueprint / netconf-connector.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2016 Inocybe Technologies 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 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
11            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.3.0"
12            odl:use-default-for-reference-types="true">
13
14     <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
15     <odl:static-reference id="netconfConnectorFactory" interface="org.opendaylight.netconf.topology.api.NetconfConnectorFactory"/>
16
17     <cm:property-placeholder persistent-id="org.opendaylight.netconf.sal.connect"
18                              update-strategy="none">
19         <cm:default-properties>
20             <cm:property name="name" value="controller-config"/>
21             <cm:property name="address" value="127.0.0.1"/>
22             <cm:property name="port" value="1830"/>
23             <cm:property name="username" value="admin"/>
24             <cm:property name="password" value="admin"/>
25             <cm:property name="tcp-only" value="false"/>
26             <cm:property name="reconnect-on-schema-change" value="true"/>
27         </cm:default-properties>
28     </cm:property-placeholder>
29
30     <bean id="controllerConfig" factory-ref="netconfConnectorFactory" factory-method="newInstance">
31         <argument ref="dataBroker"/>
32         <argument type="java.lang.String" value="${name}"/>
33         <argument type="java.lang.String" value="${address}"/>
34         <argument type="java.lang.Integer" value="${port}"/>
35         <argument type="java.lang.String" value="${username}"/>
36         <argument type="java.lang.String" value="${password}"/>
37         <argument type="java.lang.Boolean" value="${tcp-only}"/>
38         <argument type="java.lang.Boolean" value="${reconnect-on-schema-change}"/>
39     </bean>
40
41 </blueprint>