Convert netconf-util, netconf-ssh, netconf-tcp to blueprint
[netconf.git] / netconf / netconf-util / src / main / resources / org / opendaylight / blueprint / netconf-util-blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2017 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.1.0"
12            odl:use-default-for-reference-types="true">
13
14     <!-- The PID "netconf" is used for backwards-compatibility even though it is
15          an ambiguous name. -->
16     <cm:property-placeholder persistent-id="netconf" update-strategy="reload">
17         <cm:default-properties>
18             <cm:property name="tcp-address" value="127.0.0.1" />
19             <cm:property name="tcp-port" value="8383" />
20             <cm:property name="ssh-address" value="0.0.0.0" />
21             <cm:property name="ssh-port" value="1830" />
22             <cm:property name="ssh-pk-path" value="./configuration/RSA.pk" />
23         </cm:default-properties>
24     </cm:property-placeholder>
25
26     <bean id="netconfConfiguration" class="org.opendaylight.netconf.util.NetconfConfigurationImpl">
27         <argument value="${tcp-address}" />
28         <argument value="${tcp-port}" />
29         <argument value="${ssh-address}" />
30         <argument value="${ssh-port}" />
31         <argument value="${ssh-pk-path}" />
32     </bean>
33     <service ref="netconfConfiguration" interface="org.opendaylight.netconf.util.NetconfConfiguration" />
34
35 </blueprint>