Eliminate LockChangeListener
[netconf.git] / netconf / sal-netconf-connector / src / main / yang / netconf-node-optional.yang
index 9ecbe6e4b74e4077e59292193c58ccd5015c5e3c..815b6e9d1553acd0e8ea5fbc39befafee6a7a064 100644 (file)
@@ -5,6 +5,10 @@ module netconf-node-optional {
     import network-topology { prefix nt; revision-date 2013-10-21; }
     import yang-ext { prefix ext; revision-date "2013-07-09";}
 
+    revision 2022-12-25 {
+        description "Datastore locking moved to odl-netconf-device.";
+    }
+
     revision "2019-06-14" {
         description "Initial revision of Node Optional model";
     }
@@ -27,40 +31,6 @@ module netconf-node-optional {
         }
     }
 
-    container netconf-node-fields-optional {
-        description "Allows to create node's optional value with the path mapping according to
-            the network-topology -> topology -> node";
-        list topology {
-            key topology-id;
-            leaf topology-id {
-                type nt:topology-id;
-                description "The name of node's topology";
-            }
-            list node {
-                key node-id;
-                leaf node-id {
-                    type nt:node-id;
-                    description "The identifier of a node in the topology";
-                }
-                // Containers allow to create specific data-change-listener directly on a node's optional value.
-                // In the future, it'll be easy to extend the node by optional node fields in this way. Do not create
-                // direct leafs here, please.
-                container datastore-lock {
-                    description "Allows to ignore lock/unlock node's datastare.";
-                    leaf datastore-lock-allowed {
-                        type boolean;
-                        default true;
-                        description "The operation allows the client to lock the entire configuration datastore
-                            system of a device.
-                            WARNING - With blocking the lock/unlock operations, the user is coming to operate
-                            in a manner which is not supported. Concurrent access to the data store may interfere
-                            with data consistency.";
-                    }
-                }
-            }
-        }
-    }
-
     augment "/nt:network-topology/nt:topology/nt:node/" {
         when "../../nt:topology-types/topology-netconf";
         ext:augment-identifier "netconf-node-augmented-optional";