d095bc0a8e0a50378437ac503c79e1ae12f6a555
[netconf.git] / netconf / netconf-topology-config / src / main / resources / org / opendaylight / blueprint / netconf-topology.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.1.0"
12            odl:use-default-for-reference-types="true">
13
14     <reference id="clientDispatcherDependency"
15                interface="org.opendaylight.netconf.client.NetconfClientDispatcher"
16                odl:type="netconf-client-dispatcher"/>
17     <reference id="keepAliveExecutor"
18                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
19                odl:type="global-netconf-ssh-scheduled-executor"/>
20     <reference id="processingExecutor"
21                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
22                odl:type="global-netconf-processing-executor"/>
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="mountPointService"
29                interface="org.opendaylight.controller.md.sal.dom.api.DOMMountPointService"
30                odl:type="default"/>
31
32     <bean id="schemaRepository" class="org.opendaylight.netconf.topology.impl.SchemaRepositoryProviderImpl">
33         <argument value="shared-schema-repository-impl"/>
34     </bean>
35
36     <cm:property-placeholder persistent-id="odl-sb-netconf-client-keypair" update-strategy="none">
37       <cm:default-properties>
38         <cm:property name="private-key-path" value=""/>
39         <cm:property name="private-key-passphrase" value=""/>
40       </cm:default-properties>
41     </cm:property-placeholder>
42
43     <bean id="netconfTopology" class="org.opendaylight.netconf.topology.impl.NetconfTopologyImpl"
44           init-method="init"
45           destroy-method="close">
46         <cm:managed-properties persistent-id="odl-sb-netconf-client-keypair"
47                            update-strategy="container-managed"/>
48         <argument value="topology-netconf"/>
49         <argument ref="clientDispatcherDependency"/>
50         <argument ref="eventExecutor"/>
51         <argument ref="keepAliveExecutor"/>
52         <argument ref="processingExecutor"/>
53         <argument ref="schemaRepository"/>
54         <argument ref="dataBroker"/>
55         <argument ref="mountPointService"/>
56         <property name="privateKeyPath" value="${private-key-path}"/>
57         <property name="privateKeyPassphrase" value="${private-key-passphrase}"/>
58     </bean>
59
60     <bean id="netconfConnectorFactory" class="org.opendaylight.netconf.topology.impl.NetconfConnectorFactoryImpl"/>
61     <service ref="netconfConnectorFactory" interface="org.opendaylight.netconf.topology.api.NetconfConnectorFactory"
62              odl:type="default"/>
63
64 </blueprint>