Eliminate LockChangeListener
[netconf.git] / netconf / sal-netconf-connector / src / main / yang / netconf-node-optional.yang
1 module netconf-node-optional {
2     namespace "urn:opendaylight:netconf-node-optional";
3     prefix "netnopt";
4
5     import network-topology { prefix nt; revision-date 2013-10-21; }
6     import yang-ext { prefix ext; revision-date "2013-07-09";}
7
8     revision 2022-12-25 {
9         description "Datastore locking moved to odl-netconf-device.";
10     }
11
12     revision "2019-06-14" {
13         description "Initial revision of Node Optional model";
14     }
15
16     grouping netconf-node-augmented-optional-fields {
17         container ignore-missing-schema-sources {
18             description "Allows mount point to reconnect on the 'missing schema sources' error.
19                 WARNING - enabling the reconnection on the 'missing schema sources' error can lead
20                 to unexpected errors at runtime.";
21             leaf allowed {
22                 type boolean;
23                 default false;
24                 description "Allows reconnection of the mount point. Default false.";
25             }
26             leaf reconnect-time {
27                 type uint32;
28                 default 5000;
29                 description "Time for reconnection - in units milliseconds. Default 5000 ms.";
30             }
31         }
32     }
33
34     augment "/nt:network-topology/nt:topology/nt:node/" {
35         when "../../nt:topology-types/topology-netconf";
36         ext:augment-identifier "netconf-node-augmented-optional";
37         uses netconf-node-augmented-optional-fields;
38     }
39 }