Add changed-leaf-nodes-only subscription extension
[netconf.git] / netconf / netconf-topology-impl / src / main / resources / OSGI-INF / 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.mdsal.binding.api.DataBroker"/>
28     <reference id="rpcProviderService"
29                interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
30     <reference id="mountPointService"
31                interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/>
32     <reference id="encryptionService"
33                interface="org.opendaylight.aaa.encrypt.AAAEncryptionService" />
34     <reference id="deviceActionFactory"
35                interface="org.opendaylight.netconf.sal.connect.api.DeviceActionFactory"/>
36     <reference id="schemaManager"
37                interface="org.opendaylight.netconf.sal.connect.api.SchemaResourceManager"/>
38     <reference id="baseSchemas"
39                interface="org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseNetconfSchemas"/>
40
41     <cm:property-placeholder persistent-id="org.opendaylight.netconf.topology.sb.keypair" update-strategy="none">
42       <cm:default-properties>
43         <cm:property name="private-key-path" value=""/>
44         <cm:property name="private-key-passphrase" value=""/>
45       </cm:default-properties>
46     </cm:property-placeholder>
47
48     <bean id="netconfTopology" class="org.opendaylight.netconf.topology.impl.NetconfTopologyImpl"
49           init-method="init"
50           destroy-method="close">
51         <cm:managed-properties persistent-id="org.opendaylight.netconf.topology.sb.keypair"
52                            update-strategy="container-managed"/>
53         <argument value="topology-netconf"/>
54         <argument ref="clientDispatcherDependency"/>
55         <argument ref="eventExecutor"/>
56         <argument ref="keepAliveExecutor"/>
57         <argument ref="processingExecutor"/>
58         <argument ref="schemaManager"/>
59         <argument ref="dataBroker"/>
60         <argument ref="mountPointService"/>
61         <property name="privateKeyPath" value="${private-key-path}"/>
62         <property name="privateKeyPassphrase" value="${private-key-passphrase}"/>
63         <argument ref="encryptionService" />
64         <argument ref="rpcProviderService" />
65         <argument ref="baseSchemas"/>
66         <argument ref="deviceActionFactory"/>
67     </bean>
68
69     <bean id="netconfConnectorFactory" class="org.opendaylight.netconf.topology.impl.NetconfConnectorFactoryImpl"/>
70     <service ref="netconfConnectorFactory" interface="org.opendaylight.netconf.topology.api.NetconfConnectorFactory"
71              odl:type="default"/>
72
73     <bean id="netconfKeystoreProvider"
74           class="org.opendaylight.netconf.sal.connect.util.NetconfSalKeystoreService">
75         <argument ref="dataBroker"/>
76         <argument ref="encryptionService"/>
77     </bean>
78
79     <odl:rpc-implementation ref="netconfKeystoreProvider"/>
80
81 </blueprint>