Add blueprint wiring for netconf-client
[netconf.git] / netconf / netconf-config / src / main / resources / initial / 01-netconf.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <snapshot>
11   <configuration>
12     <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
13       <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
14
15         <!-- Netconf dispatcher to be used by all netconf-connectors -->
16         <module>
17           <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:config:netconf:client:dispatcher">prefix:netconf-client-dispatcher</type>
18           <name>global-netconf-dispatcher</name>
19         </module>
20
21         <!-- Thread factory to be used by all threadpools in netconf-connectors -->
22         <module>
23           <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl">prefix:threadfactory-naming</type>
24           <name>global-netconf-processing-executor-threadfactory</name>
25           <name-prefix xmlns="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl">remote-connector-processing-executor</name-prefix>
26         </module>
27         <!-- flexible threadpool for all netconf connectors, Max thread count is set to 4.  -->
28         <module>
29           <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:flexible">prefix:threadpool-flexible</type>
30           <name>global-netconf-processing-executor</name>
31           <minThreadCount xmlns="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:flexible">1</minThreadCount>
32           <max-thread-count xmlns="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:flexible">4</max-thread-count>
33           <keepAliveMillis xmlns="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:flexible">600000</keepAliveMillis>
34
35           <threadFactory xmlns="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:flexible">
36             <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:threadfactory</type>
37             <name>global-netconf-processing-executor-threadfactory</name>
38           </threadFactory>
39         </module>
40
41         <module>
42           <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:scheduled">prefix:threadpool-scheduled</type>
43           <name>global-netconf-ssh-scheduled-executor</name>
44           <max-thread-count xmlns="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:scheduled">8</max-thread-count>
45
46           <threadFactory xmlns="urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:scheduled">
47             <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:threadfactory</type>
48             <name>global-netconf-processing-executor-threadfactory</name>
49           </threadFactory>
50         </module>
51       </modules>
52
53       <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
54         <service>
55           <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:config:netconf">prefix:netconf-client-dispatcher</type>
56           <instance>
57             <name>global-netconf-dispatcher</name>
58             <provider>/modules/module[type='netconf-client-dispatcher'][name='global-netconf-dispatcher']</provider>
59           </instance>
60         </service>
61         <service>
62           <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:threadfactory</type>
63           <instance>
64             <name>global-netconf-processing-executor-threadfactory</name>
65             <provider>/modules/module[type='threadfactory-naming'][name='global-netconf-processing-executor-threadfactory']</provider>
66           </instance>
67         </service>
68         <service>
69           <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:threadpool</type>
70           <instance>
71             <name>global-netconf-processing-executor</name>
72             <provider>/modules/module[type='threadpool-flexible'][name='global-netconf-processing-executor']</provider>
73           </instance>
74             <instance>
75             <name>global-netconf-ssh-scheduled-executor</name>
76             <provider>/modules/module[type='threadpool-scheduled'][name='global-netconf-ssh-scheduled-executor']</provider>
77           </instance>
78         </service>
79           <service>
80               <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:threadpool">prefix:scheduled-threadpool</type>
81               <instance>
82                   <name>global-netconf-ssh-scheduled-executor</name>
83                   <provider>/modules/module[type='threadpool-scheduled'][name='global-netconf-ssh-scheduled-executor']</provider>
84               </instance>
85           </service>
86       </services>
87
88     </data>
89   </configuration>
90   <required-capabilities>
91       <capability>urn:opendaylight:params:xml:ns:yang:controller:config:netconf:client:dispatcher?module=odl-netconfig-client-cfg&amp;revision=2014-04-08</capability>
92       <capability>urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup?module=threadgroup&amp;revision=2013-11-07</capability>
93       <capability>urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl?module=threadpool-impl&amp;revision=2013-04-05</capability>
94       <capability>urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:flexible?module=threadpool-impl-flexible&amp;revision=2013-12-01</capability>
95       <capability>urn:opendaylight:params:xml:ns:yang:controller:threadpool:impl:scheduled?module=threadpool-impl-scheduled&amp;revision=2013-12-01</capability>
96   </required-capabilities>
97 </snapshot>