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 schema-cache-directory {
69 description "The destination schema repository for yang files relative to the cache directory. This may be specified per netconf mount
70 so that the loaded yang files are stored to a distinct directory to avoid potential conflict.";
73 container yang-module-capabilities {
77 description "Whether to override or merge this list of capabilities with capabilities from device";
80 leaf-list capability {
82 description "Set a list of capabilities to override capabilities provided in device's hello message.
83 Can be used for devices that do not report any yang modules in their hello message";
87 leaf reconnect-on-changed-schema {
90 description "If true, the connector would auto disconnect/reconnect when schemas are changed in the remote device.
91 The connector subscribes (right after connect) to base netconf notifications and listens for netconf-capability-change notification";
94 container dom-registry {
95 uses config:service-ref {
98 config:required-identity dom:dom-broker-osgi-registry;
103 container binding-registry {
104 uses config:service-ref {
107 config:required-identity md-sal-binding:binding-broker-osgi-registry;
112 container event-executor {
113 uses config:service-ref {
116 config:required-identity netty:netty-event-executor;
121 container processing-executor {
122 uses config:service-ref {
125 config:required-identity th:threadpool;
129 description "Makes up for flaws in netty threading design";
132 container client-dispatcher {
133 uses config:service-ref {
136 config:required-identity cfg-net:netconf-client-dispatcher;
141 leaf connection-timeout-millis {
142 description "Specifies timeout in milliseconds after which connection must be established.";
147 leaf default-request-timeout-millis {
148 description "Timeout for blocking operations within transactions.";
153 leaf max-connection-attempts {
154 description "Maximum number of connection retries. Non positive value or null is interpreted as infinity.";
156 default 0; // retry forever
159 leaf between-attempts-timeout-millis {
160 description "Initial timeout in milliseconds to wait between connection attempts. Will be multiplied by sleep-factor with every additional attempt";
172 // Keepalive configuration
173 leaf keepalive-delay {
176 description "Netconf connector sends keepalive RPCs while the session is idle, this delay specifies the delay between keepalive RPC in seconds
177 If a value less than 1 is provided, no keepalives will be sent";
180 container keepalive-executor {
181 uses config:service-ref {
184 config:required-identity th:scheduled-threadpool;
191 description "Dedicated solely to keepalive execution";