Split Restconf implementations (draft02 and RFC) - Prepare modules
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / resources / ordered / by / user / ordered-by-user-example.yang
diff --git a/restconf/restconf-nb-bierman02/src/test/resources/ordered/by/user/ordered-by-user-example.yang b/restconf/restconf-nb-bierman02/src/test/resources/ordered/by/user/ordered-by-user-example.yang
new file mode 100644 (file)
index 0000000..2684336
--- /dev/null
@@ -0,0 +1,44 @@
+module ordered-example {
+  namespace "ordered:example";
+  prefix "oex";
+
+  revision 2016-11-13 {
+    description
+      "Initial revision.";
+  }
+
+    container cont {
+        list playlist {
+            key name;
+
+            leaf name {
+              type string;
+            }
+            list song {
+              key index;
+              ordered-by user;
+
+              leaf index {
+                type uint32;
+              }
+              leaf id {
+                type instance-identifier;
+                mandatory true;
+                description
+                  "Song identifier. Must identify an instance of
+                   /songs-cont/songs/song-name.";
+              }
+            }
+          }
+    }
+
+    container songs-cont{
+        list songs{
+            key song-name;
+
+            leaf song-name{
+                type string;
+            }
+        }
+    }
+}
\ No newline at end of file