Merge "OF plugin classes must have a strict dependency on Connection Service"
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-generator-impl / src / test / resources / typedef_of_typedef.yang
1 module typedef_typedef {
2     
3     namespace "urn:typedef:typedef";
4     prefix "sbd";
5
6     organization "OPEN DAYLIGHT";
7     contact "http://www.opendaylight.org/";
8
9     revision 2013-07-09 {
10         
11     }
12
13    typedef byte-type {
14         type bits {
15             bit first-bit {
16                 position 10;
17             }
18             bit second-bit {
19                 position 20;
20             }
21          }
22     }    
23     
24     
25   typedef typedef-enum-fruit {
26     type enumeration {
27       enum "apple" {
28         value 1;
29         description "gold";
30       }
31       enum "pear" {
32         value 2;
33       }
34     }
35   }    
36     
37     typedef simple-typedef1 {
38         type uint8;
39     }
40     
41     typedef simple-typedef2 {
42         type simple-typedef1;
43     }
44     
45     typedef simple-typedef3 {
46         type simple-typedef2;
47     }
48     
49     typedef simple-typedef4 {
50         type simple-typedef3;
51     }
52     
53     typedef simple-typedef1-1 {
54         type uint16;
55     }
56
57     
58     typedef union-typedef {
59         type union {
60             type simple-typedef1;
61             type simple-typedef4;
62             type byte-type;
63             type typedef-enum-fruit;
64         }
65     }
66     
67     typedef extended-typedef-union {
68         type union-typedef;
69     }
70     
71     
72     typedef extended-typedef-simple {
73         type simple-typedef1;
74     }
75     
76     typedef extended-typedef-enum {
77         type typedef-enum-fruit;
78     }
79 }