Set call-home SSH port to 4334
[netconf.git] / netconf / callhome-provider / src / main / resources / OSGI-INF / blueprint / callhome-topology.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2016 Brocade Communication Systems 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            odl:use-default-for-reference-types="true">
12
13     <reference id="keepAliveExecutor"
14                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
15                odl:type="global-netconf-ssh-scheduled-executor"/>
16     <reference id="processingExecutor"
17                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
18                odl:type="global-netconf-processing-executor"/>
19     <reference id="eventExecutor"
20                interface="io.netty.util.concurrent.EventExecutor"
21                odl:type="global-event-executor"/>
22     <reference id="dataBroker"
23                interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
24     <reference id="domMountPointService"
25                interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/>
26     <reference id="encryptionService"
27                interface="org.opendaylight.aaa.encrypt.AAAEncryptionService" />
28     <reference id="deviceActionFactory"
29                interface="org.opendaylight.netconf.sal.connect.api.DeviceActionFactory"/>
30     <reference id="schemaManager"
31                interface="org.opendaylight.netconf.sal.connect.api.SchemaResourceManager"/>
32     <reference id="baseSchemas"
33                interface="org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseNetconfSchemas"/>
34     <reference id="globalBossGroup"
35                interface="io.netty.channel.EventLoopGroup"
36                odl:type="global-boss-group"/>
37     <reference id="globalWorkerGroup"
38                interface="io.netty.channel.EventLoopGroup"
39                odl:type="global-worker-group"/>
40
41     <bean id="callhomeProvider" class="org.opendaylight.netconf.callhome.mount.IetfZeroTouchCallHomeServerProvider"
42           init-method="init"
43           destroy-method="close" >
44         <argument ref="dataBroker" />
45         <argument ref="callhomeDispatcher" />
46         <property name="port" value="4334" />
47     </bean>
48
49     <bean id="callhomeDispatcher" class="org.opendaylight.netconf.callhome.mount.CallHomeMountDispatcher">
50         <argument value="topology-netconf"/>
51         <argument ref="eventExecutor"/>
52         <argument ref="keepAliveExecutor"/>
53         <argument ref="processingExecutor"/>
54         <argument ref="schemaManager"/>
55         <argument ref="baseSchemas"/>
56         <argument ref="dataBroker"/>
57         <argument ref="domMountPointService"/>
58         <argument ref="encryptionService"/>
59         <argument ref="deviceActionFactory"/>
60     </bean>
61
62     <!-- Configuration for NetConf Call-Home TLS -->
63     <bean id="netconfCallHomeTlsConfiguration" class="org.opendaylight.netconf.callhome.mount.tls.Configuration">
64         <property name="host" value="0.0.0.0" />
65         <property name="port" value="4335" />
66         <property name="timeout" value="10000" />
67         <property name="maxConnections" value="64" />
68     </bean>
69
70     <bean id="netconfCallHomeService" class="org.opendaylight.netconf.callhome.mount.tls.NetconfCallHomeTlsService"
71           init-method="init"
72           destroy-method="close">
73         <argument ref="netconfCallHomeTlsConfiguration" />
74         <argument ref="dataBroker" />
75         <argument ref="callhomeDispatcher" />
76         <argument ref="globalBossGroup"/>
77         <argument ref="globalWorkerGroup"/>
78     </bean>
79
80 </blueprint>