Attempt netconf remount regardless of error-type
[netconf.git] / netconf / sal-netconf-connector / src / main / yang / netconf-node-optional.yang
index 0bcf0374ca7b372244acf524e7b4d38801d780cd..8e9d632a54cec54ab370355ba81b26308dc932c0 100644 (file)
@@ -3,9 +3,28 @@ module netconf-node-optional {
     prefix "netnopt";
 
     import network-topology { prefix nt; revision-date 2013-10-21; }
+    import yang-ext { prefix ext; revision-date "2013-07-09";}
 
     revision "2019-06-14" {
-        description "Initial revision of Node Locking model";
+        description "Initial revision of Node Optional model";
+    }
+
+    grouping netconf-node-augmented-optional-fields {
+        container ignore-missing-schema-sources {
+            description "Allows mount point to reconnect on the 'missing schema sources' error.
+                WARNING - enabling the reconnection on the 'missing schema sources' error can lead
+                to unexpected errors at runtime.";
+            leaf allowed {
+                type boolean;
+                default false;
+                description "Allows reconnection of the mount point. Default false.";
+            }
+            leaf reconnect-time {
+                type uint32;
+                default 5000;
+                description "Time for reconnection - in units milliseconds. Default 5000 ms.";
+            }
+        }
     }
 
     container netconf-node-fields-optional {
@@ -41,4 +60,10 @@ module netconf-node-optional {
             }
         }
     }
+
+    augment "/nt:network-topology/nt:topology/nt:node/" {
+        when "../../nt:topology-types/topology-netconf";
+        ext:augment-identifier "netconf-node-augmented-optional";
+        uses netconf-node-augmented-optional-fields;
+    }
 }