Bug-8187: call home throwing exception on startup
[netconf.git] / netconf / callhome-provider / src / main / resources / org / opendaylight / 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="bindingAwareBroker"
14                interface="org.opendaylight.controller.sal.binding.api.BindingAwareBroker"/>
15     <reference id="keepAliveExecutor"
16                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
17                odl:type="global-netconf-ssh-scheduled-executor"/>
18     <reference id="processingExecutor"
19                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
20                odl:type="global-netconf-processing-executor"/>
21     <reference id="domBroker"
22                interface="org.opendaylight.controller.sal.core.api.Broker"/>
23     <reference id="eventExecutor"
24                interface="io.netty.util.concurrent.EventExecutor"
25                odl:type="global-event-executor"/>
26     <reference id="dataBroker"
27                interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
28     <reference id="domMountPointService"
29                interface="org.opendaylight.controller.md.sal.dom.api.DOMMountPointService"/>
30
31     <bean id="schemaRepository" class="org.opendaylight.netconf.callhome.mount.SchemaRepositoryProviderImpl">
32         <argument value="shared-schema-repository-impl"/>
33     </bean>
34
35     <bean id="callhomeProvider" class="org.opendaylight.netconf.callhome.mount.IetfZeroTouchCallHomeServerProvider"
36           init-method="init"
37           destroy-method="close" >
38         <argument ref="dataBroker" />
39         <argument ref="callhomeDispatcher" />
40         <property name="port" value="6666" />
41     </bean>
42
43     <bean id="callhomeDispatcher" class="org.opendaylight.netconf.callhome.mount.CallHomeMountDispatcher">
44         <argument value="topology-netconf"/>
45         <argument ref="bindingAwareBroker"/>
46         <argument ref="eventExecutor"/>
47         <argument ref="keepAliveExecutor"/>
48         <argument ref="processingExecutor"/>
49         <argument ref="schemaRepository"/>
50         <argument ref="domBroker"/>
51         <argument ref="dataBroker"/>
52         <argument ref="domMountPointService"/>
53     </bean>
54
55
56 </blueprint>