1 module netconf-node-topology {
2 namespace "urn:opendaylight:netconf-node-topology";
5 import network-topology { prefix nt; revision-date 2013-10-21; }
6 import yang-ext { prefix ext; revision-date "2013-07-09";}
7 import ietf-inet-types { prefix inet; revision-date "2010-09-24"; }
9 revision "2015-01-14" {
10 description "Initial revision of Topology model";
13 augment "/nt:network-topology/nt:topology/nt:topology-types" {
14 container topology-netconf {
18 grouping netconf-node-credentials {
34 grouping netconf-node-connection-parameters {
41 type inet:port-number;
54 container yang-module-capabilities {
59 description "Whether to override or merge this list of capabilities with capabilities from device";
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 leaf reconnect-on-changed-schema {
73 description "If true, the connector would auto disconnect/reconnect when schemas are changed in the remote device.
74 The connector subscribes (right after connect) to base netconf notifications and listens for netconf-capability-change notification";
77 leaf connection-timeout-millis {
78 description "Specifies timeout in milliseconds after which connection must be established.";
84 leaf default-request-timeout-millis {
85 description "Timeout for blocking operations within transactions.";
91 leaf max-connection-attempts {
92 description "Maximum number of connection retries. Non positive value or null is interpreted as infinity.";
95 default 0; // retry forever
98 leaf between-attempts-timeout-millis {
99 description "Initial timeout in milliseconds to wait between connection attempts. Will be multiplied by sleep-factor with every additional attempt";
113 // Keepalive configuration
114 leaf keepalive-delay {
118 description "Netconf connector sends keepalive RPCs while the session is idle, this delay specifies the delay between keepalive RPC in seconds
119 If a value <1 is provided, no keepalives will be sent";
123 grouping netconf-node-connection-status {
125 leaf connection-status {
130 enum unable-to-connect;
134 container clustered-connection-status {
150 leaf connected-message {
155 container available-capabilities {
157 leaf-list available-capability {
162 container unavailable-capabilities {
164 list unavailable-capability {
169 leaf failure-reason {
172 enum unable-to-resolve;
178 container pass-through {
179 when "../connection-status = connected";
181 "When the underlying node is connected, its NETCONF context
182 is available verbatim under this container through the
188 grouping netconf-schema-storage {
189 leaf schema-cache-directory {
193 description "The destination schema repository for yang files relative to the cache directory. This may be specified per netconf mount
194 so that the loaded yang files are stored to a distinct directory to avoid potential conflict.";
197 container yang-library {
198 leaf yang-library-url {
201 description "Yang library to be plugged as additional source provider into the shared schema repository";
204 // credentials for basic http authentication
217 grouping netconf-node-fields {
219 uses netconf-node-credentials;
221 uses netconf-node-connection-parameters;
223 uses netconf-node-connection-status;
225 uses netconf-schema-storage;
229 augment "/nt:network-topology/nt:topology/nt:node" {
230 when "../../nt:topology-types/topology-netconf";
231 ext:augment-identifier "netconf-node";
233 uses netconf-node-fields;