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 "Service definition for Binding Aware MD-SAL.";
17 revision "2013-10-28" {
22 identity sal-netconf-connector {
23 base config:module-type;
24 config:java-name-prefix NetconfConnector;
37 augment "/config:modules/config:module/config:configuration" {
38 case sal-netconf-connector {
39 when "/config:modules/config:module/config:type = 'sal-netconf-connector'";
46 type inet:port-number;
61 container yang-module-capabilities {
62 leaf-list capability {
64 description "Set a list of capabilities to override capabilities provided in device's hello message.
65 Can be used for devices that do not report any yang modules in their hello message";
69 container dom-registry {
70 uses config:service-ref {
73 config:required-identity dom:dom-broker-osgi-registry;
78 container binding-registry {
79 uses config:service-ref {
82 config:required-identity md-sal-binding:binding-broker-osgi-registry;
87 container event-executor {
88 uses config:service-ref {
91 config:required-identity netty:netty-event-executor;
96 container processing-executor {
97 uses config:service-ref {
100 config:required-identity th:threadpool;
104 description "Makes up for flaws in netty threading design";
107 container client-dispatcher {
108 uses config:service-ref {
111 config:required-identity cfg-net:netconf-client-dispatcher;
116 leaf connection-timeout-millis {
117 description "Specifies timeout in milliseconds after which connection must be established.";
122 leaf max-connection-attempts {
123 description "Maximum number of connection retries. Non positive value or null is interpreted as infinity.";
125 default 0; // retry forever
128 leaf between-attempts-timeout-millis {
129 description "Initial timeout in milliseconds to wait between connection attempts. Will be multiplied by sleep-factor with every additional attempt";