ba0c15eb4e7bd0b07d236f000840600423704dac
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-to-sources-plugin-it / src / test / resources / Correct / resources / model / testfile1.yang
1 module types1 {
2         yang-version 1;
3     namespace "urn:simple.container.demo";
4     prefix "t1";
5     
6     import types2 {
7          prefix "data";
8          revision-date 2013-02-27;
9      }
10     
11     organization "Cisco";
12     contact "WILL-BE-DEFINED-LATER";
13     
14     revision "2013-02-27" {
15         reference " WILL BE DEFINED LATER";
16     }
17     
18     container interfaces {
19          list ifEntry {
20              key "ifIndex";
21
22              leaf ifIndex {
23                  type uint32;
24                  units minutes;
25              }
26              
27              leaf ifMtu {
28                  type int32;
29              }
30          }
31      }
32      
33         leaf testleaf {
34                 type data:my-base-int32-type {
35                         range "min..max";
36                 }
37         }
38         
39         leaf test-string-leaf {
40                 type data:my-string-type-ext;
41         }
42         
43         leaf test-int-leaf {
44                 type data:my-int-type-ext;
45         }
46         
47         leaf test-decimal-leaf {
48                 type data:my-decimal-type {
49                         fraction-digits 4;
50                 }
51         }
52         
53         leaf test-decimal-leaf2 {
54                 type data:my-decimal-type-ext;
55         }
56
57 }