Move BP xml files to standard OSGI-INF/blueprint
[netconf.git] / netconf / mdsal-netconf-ssh / src / main / resources / OSGI-INF / blueprint / netconf-ssh.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:restart-dependents-on-updates="true">
13
14     <reference id="netconfServerDispatcher" interface="org.opendaylight.netconf.api.NetconfServerDispatcher"/>
15     <reference id="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group"/>
16     <reference id="authProvider" interface="org.opendaylight.netconf.auth.AuthProvider" odl:type="netconf-auth-provider"/>
17
18     <reference id="executor" interface="io.netty.util.concurrent.EventExecutor" odl:type="global-event-executor">
19         <reference-listener ref="netconfMdsalServer" unbind-method="unbind"/>
20     </reference>
21
22     <!--    NETCONF server for MD-SAL (listening by default on port 2830)-->
23
24     <cm:property-placeholder persistent-id="org.opendaylight.netconf.ssh" update-strategy="none">
25         <cm:default-properties>
26             <cm:property name="bindingAddress" value="0.0.0.0"/>
27             <cm:property name="portNumber" value="2830"/>
28         </cm:default-properties>
29     </cm:property-placeholder>
30
31     <bean id="netconfMdsalServer"
32           class="org.opendaylight.netconf.ssh.NetconfNorthboundSshServer"
33           destroy-method="close">
34         <argument ref="netconfServerDispatcher"/>
35         <argument ref="globalWorkerGroup"/>
36         <argument ref="executor"/>
37         <argument value="${bindingAddress}"/>
38         <argument value="${portNumber}"/>
39         <argument ref="authProvider"/>
40     </bean>
41
42 </blueprint>