Handle empty type in NormalizedNode streaming
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / test / resources / odl-datastore-test.yang
index 246cc682cd7ae277f36e152392209c8577c3785d..294b001a8509c7469c8714e630b9488baff6440e 100644 (file)
@@ -35,27 +35,67 @@ module odl-datastore-test {
         leaf desc {
             type string;
         }
+
+        leaf short-leaf {
+            type uint16;
+        }
+
+        leaf biginteger-leaf {
+            type uint64;
+        }
+
+        leaf bigdecimal-leaf {
+            type decimal64 {
+                fraction-digits 2;
+            }
+        }
+
+        leaf boolean-leaf {
+            type boolean;
+        }
+
+        leaf byte-leaf {
+            type uint8;
+        }
+
+        list unkeyed-list {
+            leaf name {
+                type string;
+            }
+        }
+
+        choice outer-choice {
+             case one {
+                leaf one {
+                    type string;
+                }
+             }
+             case two-three {
+                 leaf two {
+                     type string;
+                 }
+                 leaf three {
+                     type string;
+                 }
+             }
+        }
+
+        list ordered-list {
+            key ordered-list-leaf;
+            ordered-by user;
+
+            leaf ordered-list-leaf {
+                type string;
+            }
+        }
+
         list outer-list {
             key id;
             leaf id {
                 type uint16;
             }
-            choice outer-choice {
-                case one {
-                    leaf one {
-                        type string;
-                    }
-                }
-                case two-three {
-                    leaf two {
-                        type string;
-                    }
-                    leaf three {
-                        type string;
-                    }
-               }
-           }
-           list inner-list {
+
+            list inner-list {
                 key name;
                 leaf name {
                     type string;
@@ -63,6 +103,9 @@ module odl-datastore-test {
                 leaf value {
                     type string;
                 }
+
+                container inner-container {
+                }
             }
         }
 
@@ -74,6 +117,10 @@ module odl-datastore-test {
             type uint8;
         }
 
+        leaf-list binary_leaf_list {
+            type binary;
+        }
+
         leaf pointer {
             type leafref {
                 path "/network-topology/topology/node/termination-point/tp-id";
@@ -107,6 +154,15 @@ module odl-datastore-test {
             }
         }
 
+        leaf some-binary-data {
+            type binary;
+        }
+
+        anyxml any {
+        }
 
+        leaf empty-leaf {
+            type empty;
+        }
     }
 }