Convert TlsAllowedDevicesMonitorImpl to OSGi DS
[netconf.git] / apps / 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     <reference id="allowedDevicesMonitor"
41                interface="org.opendaylight.netconf.callhome.protocol.tls.TlsAllowedDevicesMonitor"/>
42
43     <bean id="callhomeProvider" class="org.opendaylight.netconf.callhome.mount.IetfZeroTouchCallHomeServerProvider"
44           init-method="init"
45           destroy-method="close" >
46         <argument ref="dataBroker" />
47         <argument ref="callhomeDispatcher" />
48         <property name="port" value="4334" />
49     </bean>
50
51     <bean id="callhomeDispatcher" class="org.opendaylight.netconf.callhome.mount.CallHomeMountDispatcher">
52         <argument value="topology-netconf"/>
53         <argument ref="eventExecutor"/>
54         <argument ref="keepAliveExecutor"/>
55         <argument ref="processingExecutor"/>
56         <argument ref="schemaManager"/>
57         <argument ref="baseSchemas"/>
58         <argument ref="dataBroker"/>
59         <argument ref="domMountPointService"/>
60         <argument ref="encryptionService"/>
61         <argument ref="deviceActionFactory"/>
62     </bean>
63
64     <!-- Configuration for NetConf Call-Home TLS -->
65     <bean id="netconfCallHomeTlsConfiguration" class="org.opendaylight.netconf.callhome.mount.tls.Configuration">
66         <property name="host" value="0.0.0.0" />
67         <property name="port" value="4335" />
68         <property name="timeout" value="10000" />
69         <property name="maxConnections" value="64" />
70     </bean>
71
72     <bean id="netconfCallHomeService" class="org.opendaylight.netconf.callhome.mount.tls.NetconfCallHomeTlsService"
73           init-method="init"
74           destroy-method="close">
75         <argument ref="netconfCallHomeTlsConfiguration" />
76         <argument ref="dataBroker" />
77         <argument ref="allowedDevicesMonitor" />
78         <argument ref="callhomeDispatcher" />
79         <argument ref="globalBossGroup"/>
80         <argument ref="globalWorkerGroup"/>
81     </bean>
82
83 </blueprint>