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; }
12 import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
15 "Config definition for Netconf Connector modules";
17 revision "2015-08-03" {
19 "Non-mandatory keepalive executor";
22 revision "2013-10-28" {
27 identity sal-netconf-connector {
28 base config:module-type;
29 config:java-name-prefix NetconfConnector;
42 augment "/config:modules/config:module/config:configuration" {
43 case sal-netconf-connector {
44 when "/config:modules/config:module/config:type = 'sal-netconf-connector'";
51 type inet:port-number;
66 leaf concurrent-rpc-limit {
69 description "Limit of concurrent messages that can be send before reply messages are received.
70 If value less than 1 is provided, no limit will be enforced";
73 leaf schema-cache-directory {
76 description "The destination schema repository for yang files relative to the cache directory. This may be specified per netconf mount
77 so that the loaded yang files are stored to a distinct directory to avoid potential conflict.";
80 container yang-module-capabilities {
84 description "Whether to override or merge this list of capabilities with capabilities from device";
87 leaf-list capability {
89 description "Set a list of capabilities to override capabilities provided in device's hello message.
90 Can be used for devices that do not report any yang modules in their hello message";
94 leaf reconnect-on-changed-schema {
97 description "If true, the connector would auto disconnect/reconnect when schemas are changed in the remote device.
98 The connector subscribes (right after connect) to base netconf notifications and listens for netconf-capability-change notification";
101 container dom-registry {
102 uses config:service-ref {
105 config:required-identity dom:dom-broker-osgi-registry;
110 container binding-registry {
111 uses config:service-ref {
114 config:required-identity md-sal-binding:binding-broker-osgi-registry;
119 container event-executor {
120 uses config:service-ref {
123 config:required-identity netty:netty-event-executor;
128 container processing-executor {
129 uses config:service-ref {
132 config:required-identity th:threadpool;
136 description "Makes up for flaws in netty threading design";
139 container client-dispatcher {
140 uses config:service-ref {
143 config:required-identity cfg-net:netconf-client-dispatcher;
148 leaf connection-timeout-millis {
149 description "Specifies timeout in milliseconds after which connection must be established.";
154 leaf default-request-timeout-millis {
155 description "Timeout for blocking operations within transactions.";
160 leaf max-connection-attempts {
161 description "Maximum number of connection retries. Non positive value or null is interpreted as infinity.";
163 default 0; // retry forever
166 leaf between-attempts-timeout-millis {
167 description "Initial timeout in milliseconds to wait between connection attempts. Will be multiplied by sleep-factor with every additional attempt";
179 // Keepalive configuration
180 leaf keepalive-delay {
183 description "Netconf connector sends keepalive RPCs while the session is idle, this delay specifies the delay between keepalive RPC in seconds
184 If a value less than 1 is provided, no keepalives will be sent";
187 container keepalive-executor {
188 uses config:service-ref {
191 config:required-identity th:scheduled-threadpool;
198 description "Dedicated solely to keepalive execution";
201 container yang-library {
202 leaf yang-library-url {
205 description "Yang library to be plugged as additional source provider into the shared schema repository";
208 // credentials for basic http authentication for get request for yanglib data