Merge "Add test for generated code checking list of dependencies."
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / resources / cnsn-to-xml / yang / basic-module.yang
1 module basic-module {
2   namespace "basic:module";  
3
4   prefix "basmod";
5   
6   import referenced-module {prefix refmo; revision-date 2013-12-2;}
7    
8   revision 2013-12-2 {    
9   }
10   
11         container cont {
12            container cont1 {
13                 leaf lf11 {
14                         type identityref {
15                                 base "refmo:iden";
16                         }
17                 }
18                 }
19                 leaf lfStr {
20                   type string;
21                 }
22                 leaf lfInt8 {
23                   type int8;
24                 }
25                 
26                 leaf lfInt16 {
27                   type int16;
28                 }
29                 
30                 leaf lfInt32 {
31                   type int32;
32                 }
33                 
34                 leaf lfInt64 {
35                   type int64;
36                 }
37                 
38                 leaf lfUint8 {
39                   type uint8;
40                 }
41                 
42                 leaf lfUint16 {
43                   type uint16;
44                 }
45                 
46                 leaf lfUint32 {
47                   type uint32;
48                 }
49                 
50                 leaf lfUint64 {
51                   type uint64;
52                 }
53                 
54                 leaf lfBinary {
55                   type binary;
56                 }
57                 
58                 leaf lfBits {
59                   type bits {
60                       bit one;
61                       bit two;
62                       bit three;
63                   }
64                 }
65                 
66                 leaf lfEnumeration {
67                   type enumeration {
68                       enum enum1;
69                       enum enum2;
70                       enum enum3;
71                   }
72                 }
73                 
74                 leaf lfEmpty {
75                   type empty;
76                 }
77                 
78                 leaf lfBoolean {
79                   type boolean;
80                 }
81                 
82                 leaf lfUnion {
83                   type union {
84                       type int8;
85                       type string;
86                       type bits {
87                           bit first;
88                           bit second;
89                       }
90                       type boolean;
91                   }
92                 }
93                 
94                 leaf lfLfref {
95                   type leafref {
96                       path "/cont/lfBoolean";
97                   }    
98                 }
99                 
100         }
101           
102 }