Add blueprint wiring for netconf-ssh
[netconf.git] / netconf / mdsal-netconf-ssh / src / main / resources / org / opendaylight / 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="executor" interface="io.netty.util.concurrent.EventExecutor" odl:type="global-event-executor"/>
17     <reference id="authProvider" interface="org.opendaylight.netconf.auth.AuthProvider" odl:type="netconf-auth-provider"/>
18
19     <!--    NETCONF server for MD-SAL (listening by default on port 2830)-->
20
21     <cm:property-placeholder persistent-id="org.opendaylight.netconf.ssh" update-strategy="none">
22         <cm:default-properties>
23             <cm:property name="bindingAddress" value="0.0.0.0"/>
24             <cm:property name="portNumber" value="2830"/>
25         </cm:default-properties>
26     </cm:property-placeholder>
27
28     <bean id="netconfMdsalServer"
29           class="org.opendaylight.netconf.ssh.NetconfNorthboundSshServer"
30           destroy-method="close">
31         <argument ref="netconfServerDispatcher"/>
32         <argument ref="globalWorkerGroup"/>
33         <argument ref="executor"/>
34         <argument value="${bindingAddress}"/>
35         <argument value="${portNumber}"/>
36         <argument ref="authProvider"/>
37     </bean>
38
39 </blueprint>