Merge "Fixed validation bug of YANG import statement"
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / types / custom-types-test@2012-4-4.yang
index d52068a4ad265a929037b85d554ce1a59c25242a..0a06a30875e4c96457b6783f746c44a3098e96bb 100644 (file)
@@ -5,6 +5,8 @@ module custom-types-test {
     prefix "iit";
     
     organization "opendaylight";
+    revision 2012-04-16 {
+    }
     contact "WILL-BE-DEFINED-LATER";
     
     
@@ -64,5 +66,28 @@ module custom-types-test {
         }
         default "auto-sense-speed";
     }
+    
+   typedef ip-version {
+     type enumeration {
+       enum unknown {
+         description
+          "An unknown or unspecified version of the Internet protocol.";
+       }
+       enum ipv4 {
+         value "19";
+         description
+          "The IPv4 protocol as defined in RFC 791.";
+       }
+       enum ipv6 {
+         value "7";
+         description
+          "The IPv6 protocol as defined in RFC 2460.";
+       }
+       enum default {
+         description 
+          "default ip";
+       }
+     }
+   }
        
 }