Nest id-ints list inside a container
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / odl-mdsal-lowlevel-target.yang
index b4f9c25843e2ebf3aac6ba198a6448776b5e14b1..8b799536a0f3562b07e461d402ef0d37d3a1b6c9 100644 (file)
@@ -65,27 +65,28 @@ module odl-mdsal-lowlevel-target {
         }
     }
 
-    list id-ints {
-        description "A list of integers nested in list of ids.
-            Ids are there to avoid OptimisticLockFailures from different writers.
-            Typical use of the int list is to generate data change notifications.
-            Config is true, in order to allow Restconf to reset content at will.
-            Expected writes should create and delete items at random, values 0 .. 2^20.";
-        ordered-by system;
-        config true;
-        key "id";
-        uses llc:id-grouping;
-        list item {
-            description "Unsorted keyed list item. One write should create or delete up to one item.";
+    container id-ints {
+        list id-int {
+            description "A list of integers nested in list of ids.
+                Ids are there to avoid OptimisticLockFailures from different writers.
+                Typical use of the int list is to generate data change notifications.
+                Config is true, in order to allow Restconf to reset content at will.
+                Expected writes should create and delete items at random, values 0 .. 2^20.";
             ordered-by system;
             config true;
-            key "number";
-            leaf number {
-                description "The integer value of this item.
-                    Not range restricted, to allow more scenarios.";
-                type int32;
+            key "id";
+            uses llc:id-grouping;
+            list item {
+                description "Unsorted keyed list item. One write should create or delete up to one item.";
+                ordered-by system;
+                config true;
+                key "number";
+                leaf number {
+                    description "The integer value of this item.
+                        Not range restricted, to allow more scenarios.";
+                    type int32;
+                }
             }
         }
     }
-
 }