Bug 1073: Implemented Transaction chain on InMemoryDOMDataStore level.
[controller.git] / opendaylight / md-sal / sal-netconf-connector / src / main / yang / odl-sal-netconf-connector-cfg.yang
1 module odl-sal-netconf-connector-cfg {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf";
4     prefix "sal-netconf";
5
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 odl-netconf-cfg { prefix cfg-net; revision-date 2014-04-08; }
11
12     description
13         "Service definition for Binding Aware MD-SAL.";
14
15     revision "2013-10-28" {
16         description
17             "Initial revision";
18     }
19
20     identity sal-netconf-connector {
21         base config:module-type;
22         config:java-name-prefix NetconfConnector;
23     }
24
25
26     grouping server {
27         leaf address {
28             type string;
29         }
30
31         leaf port {
32             type uint32;
33         }
34     }
35
36
37     augment "/config:modules/config:module/config:configuration" {
38         case sal-netconf-connector {
39             when "/config:modules/config:module/config:type = 'sal-netconf-connector'";
40
41             leaf address {
42                 type string;
43             }
44
45             leaf port {
46                 type uint32;
47             }
48
49             leaf tcp-only {
50                 type boolean;
51             }
52
53             leaf username {
54                 type string;
55             }
56
57             leaf password {
58                 type string;
59             }
60
61             container dom-registry {
62                 uses config:service-ref {
63                     refine type {
64                         mandatory true;
65                         config:required-identity dom:dom-broker-osgi-registry;
66                     }
67                 }
68             }
69
70             // FIXME BUG-944 remove backwards compatibility
71             // Deprecated, replaced by client dispatcher.
72             // This dependency will be removed in near future and all configurations of netconf-connector need to be changed to use dispatcher dependency.
73             container boss-thread-group {
74                 uses config:service-ref {
75                     refine type {
76                         mandatory false;
77                         config:required-identity netty:netty-threadgroup;
78                     }
79                 }
80             }
81
82             // FIXME BUG-944 remove backwards compatibility
83             // Deprecated, replaced by client dispatcher.
84             // This dependency will be removed in near future and all configurations of netconf-connector need to be changed to use dispatcher dependency.
85             container worker-thread-group {
86                 uses config:service-ref {
87                     refine type {
88                         mandatory false;
89                         config:required-identity netty:netty-threadgroup;
90                     }
91                 }
92             }
93
94             container event-executor {
95                 uses config:service-ref {
96                     refine type {
97                         config:required-identity netty:netty-event-executor;
98                     }
99                 }
100             }
101
102             // Replaces thread group dependencies
103             container client-dispatcher {
104                 uses config:service-ref {
105                     refine type {
106                         mandatory false;
107                         config:required-identity cfg-net:netconf-client-dispatcher;
108                     }
109                 }
110             }
111
112             leaf connection-timeout-millis {
113                 description "Specifies timeout in milliseconds after which connection must be established.";
114                 type uint32;
115                 default 20000;
116             }
117
118             leaf max-connection-attempts {
119                 description "Maximum number of connection retries. Non positive value or null is interpreted as infinity.";
120                 type uint32;
121                 default 0; // retry forever
122             }
123
124             leaf between-attempts-timeout-millis {
125                 description "Timeout in milliseconds to wait between connection attempts.";
126                 type uint16;
127                 default 10000;
128             }
129         }
130     }
131 }