Comment to binding-generator source code (partially) + bug fixing
[yangtools.git] / code-generator / samples / maven-code-gen-sample / src / main / yang / typedef_of_typedef.yang
index 3aa67705cc3787d06e2ecd83aa455fc4762ef049..b8558b342615d58f97ce727e1ffb605451960260 100644 (file)
@@ -3,6 +3,12 @@ module typedef_typedef {
     namespace "urn:typedef:typedef";
     prefix "sbd";
 
+    import ietf-inet-types {
+        prefix "inet";
+        revision-date 2010-09-24;
+    }    
+
+
     organization "OPEN DAYLIGHT";
     contact "http://www.opendaylight.org/";
 
@@ -10,6 +16,12 @@ module typedef_typedef {
         
     }
 
+
+    typedef typedef-from-import {
+       type inet:ipv4-address;
+    }
+
+
    typedef byte-type {
         type bits {
             bit first-bit {
@@ -35,7 +47,7 @@ module typedef_typedef {
   }    
     
     typedef simple-typedef1 {
-       type uint8;
+        type uint8;
     }
     
     typedef simple-typedef2 {
@@ -52,7 +64,7 @@ module typedef_typedef {
     
     typedef simple-typedef1-1 {
         type uint16;
-    }    
+    }
 
     
     typedef union-typedef {
@@ -62,7 +74,7 @@ module typedef_typedef {
             type byte-type;
             type typedef-enum-fruit;
         }
-    }    
+    }
     
     typedef extended-typedef-union {
         type union-typedef;