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