Handle empty type in NormalizedNode streaming
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / test / resources / odl-datastore-test.yang
index e4eca7b71738df8e06ec7bde21f0344160c68b40..294b001a8509c7469c8714e630b9488baff6440e 100644 (file)
@@ -11,30 +11,91 @@ module odl-datastore-test {
     }
 
     container test {
+        leaf my-bits {
+            type bits {
+                bit ten-mb-hd;
+                bit ten-mb-fd;
+                bit hundred-mb-hd;
+                bit hundred-mb-fd;
+                bit one-gb-hd;
+                bit one-gb-fd;
+                bit ten-gb-fd;
+                bit forty-gb-fd;
+                bit hundred-gb-fd;
+                bit one-tb-fd;
+                bit other;
+                bit copper;
+                bit fiber;
+                bit autoeng;
+                bit pause;
+                bit pause-asym;
+            }
+        }
+
         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;
@@ -42,6 +103,9 @@ module odl-datastore-test {
                 leaf value {
                     type string;
                 }
+
+                container inner-container {
+                }
             }
         }
 
@@ -53,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";
@@ -86,6 +154,15 @@ module odl-datastore-test {
             }
         }
 
+        leaf some-binary-data {
+            type binary;
+        }
+
+        anyxml any {
+        }
 
+        leaf empty-leaf {
+            type empty;
+        }
     }
 }