1 module odl-sal-netconf-connector-cfg {
3 namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf";
6 import config { prefix config; revision-date 2013-04-05; }
7 import threadpool {prefix th;}
8 import netty {prefix netty;}
9 import opendaylight-md-sal-dom {prefix dom;}
10 import opendaylight-md-sal-binding {prefix md-sal-binding; revision-date 2013-10-28;}
11 import odl-netconf-cfg { prefix cfg-net; revision-date 2014-04-08; }
14 "Service definition for Binding Aware MD-SAL.";
16 revision "2013-10-28" {
21 identity sal-netconf-connector {
22 base config:module-type;
23 config:java-name-prefix NetconfConnector;
36 augment "/config:modules/config:module/config:configuration" {
37 case sal-netconf-connector {
38 when "/config:modules/config:module/config:type = 'sal-netconf-connector'";
60 container dom-registry {
61 uses config:service-ref {
64 config:required-identity dom:dom-broker-osgi-registry;
69 container binding-registry {
70 uses config:service-ref {
72 // FIXME BUG-944 make mandatory (remove backwards compatibility)
74 config:required-identity md-sal-binding:binding-broker-osgi-registry;
79 // FIXME BUG-944 remove backwards compatibility
80 // Deprecated, replaced by client dispatcher.
81 // This dependency will be removed in near future and all configurations of netconf-connector need to be changed to use dispatcher dependency.
82 container boss-thread-group {
83 uses config:service-ref {
86 config:required-identity netty:netty-threadgroup;
91 // FIXME BUG-944 remove backwards compatibility
92 // Deprecated, replaced by client dispatcher.
93 // This dependency will be removed in near future and all configurations of netconf-connector need to be changed to use dispatcher dependency.
94 container worker-thread-group {
95 uses config:service-ref {
98 config:required-identity netty:netty-threadgroup;
103 container event-executor {
104 uses config:service-ref {
106 config:required-identity netty:netty-event-executor;
111 container processing-executor {
112 uses config:service-ref {
114 // FIXME BUG-944 make mandatory (remove backwards compatibility)
116 config:required-identity th:threadpool;
120 description "Makes up for flaws in netty threading design";
123 // Replaces thread group dependencies
124 container client-dispatcher {
125 uses config:service-ref {
128 config:required-identity cfg-net:netconf-client-dispatcher;
133 leaf connection-timeout-millis {
134 description "Specifies timeout in milliseconds after which connection must be established.";
139 leaf max-connection-attempts {
140 description "Maximum number of connection retries. Non positive value or null is interpreted as infinity.";
142 default 0; // retry forever
145 leaf between-attempts-timeout-millis {
146 description "Initial timeout in milliseconds to wait between connection attempts. Will be multiplied by sleep-factor with every additional attempt";