Use callbacks while parsing to NormalizedNodes.
[controller.git] / opendaylight / netconf / mdsal-netconf-connector / src / test / resources / yang / mdsal-netconf-mapping-test.yang
index dadeb694de9c064b8f2211072b122c07358a3311..399ae4b3bc423976353856de4eb2a9c8d9c92d2b 100644 (file)
@@ -25,6 +25,8 @@ module config {
 
             list user {
 
+                key "name";
+
                 leaf name {
                     type string;
                 }
@@ -54,6 +56,8 @@ module config {
 
             list module {
 
+                key "id";
+
                 leaf id {
                     type string;
                 }
@@ -119,4 +123,21 @@ module config {
             }
         }
     }
+
+    augment "/map:top" {
+        container mid-level {
+            container low-level {
+                container lowest-level {
+                    leaf-list note {
+                        type string;
+                    }
+                }
+            }
+            container low-level2 {
+                leaf-list note {
+                    type string;
+                }
+            }
+        }
+    }
 }
\ No newline at end of file