Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / code-generator / code-generator-demo / src / main / resources / demo / types3.yang
diff --git a/opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/resources/demo/types3.yang b/opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/resources/demo/types3.yang
new file mode 100644 (file)
index 0000000..0d09259
--- /dev/null
@@ -0,0 +1,35 @@
+module types3 {
+       yang-version 1;
+    namespace "urn:simple.types3.data.demo";
+    prefix "scd";
+
+    organization "Cisco";
+
+    contact "WILL-BE-DEFINED-LATER";
+
+    description "This is types-data test description";
+
+    revision "2013-02-27" {
+        reference " WILL BE DEFINED LATER";
+    }
+    
+    typedef my-decimal {
+         type decimal64 {
+               fraction-digits 2;
+         }
+    }
+
+       typedef my-base-int32-type {
+         type int32 {
+               range "0..32";
+         }
+    }
+    
+    typedef percent {
+         type uint8 {
+             range "0 .. 100";
+         }
+         description "Percentage";
+       }
+       
+}