Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / yang1.yang
diff --git a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/yang1.yang b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/yang1.yang
new file mode 100644 (file)
index 0000000..16d6087
--- /dev/null
@@ -0,0 +1,60 @@
+module types1 {
+       yang-version 1;
+    namespace "urn:simple.container.demo";
+    prefix "t1";
+    
+
+    organization "Cisco";
+
+    contact "WILL-BE-DEFINED-LATER";
+    
+    
+    container interfaces {
+         list ifEntry {
+             key "ifIndex";
+
+             leaf ifIndex {
+                 type uint32;
+             }
+             leaf ifDescr {
+                 type string;
+             }
+             leaf ifType {
+                 type uint8;
+             }
+             leaf ifMtu {
+                 type int32;
+             }
+         }
+     }
+    
+    
+    
+    
+    
+//    leaf name {
+//             type my-string;
+//     }
+       
+//     typedef my-string {
+//             type string {
+//                     length "0..4";
+//             pattern "[0-9a-fA-F]*";
+//             }
+//     }
+
+
+//     leaf completed {
+//             type types2:percent;
+//  }
+
+//     leaf testleaf {
+//             type data:my-base-int32-type;
+//     }
+
+//     leaf-list domain-search {
+//             type string;
+//             description "List of domain names to search";
+//     }
+       
+}