Do not pretty-print body class
[yangtools.git] / data / yang-data-impl / src / test / resources / leafref-context-test / correct-modules / leafref-test2.yang
1 module leafref-test2 {
2     namespace "gz.test";
3     prefix "main";
4
5     revision 2015-02-13 {
6         description "Initial revision";
7     }
8
9     leaf leaf1 {
10         type int16;
11     }
12
13     leaf ref1 {
14         type leafref {
15             path "../leaf1";
16         }
17     }
18
19     typedef low_int {
20         type int8 {
21             range 1..100;
22         }
23     }
24
25     container cont1 {
26
27         list list1 {
28             leaf name {
29                 type string;
30             }
31             leaf id {
32                 type int32;
33             }
34             leaf value {
35                 type low_int;
36             }
37             leaf external {
38                 type leafref {
39                     path "../../../cont2/value";
40                 }
41             }
42         }
43     }
44
45     container cont2 {
46         leaf value {
47             type decimal64 {
48                 fraction-digits 4;
49             }
50         }
51     }
52
53     container cont3 {
54         container cont4 {
55             leaf l1 {
56                 type leafref {
57                     path "/cont1/list1/name";
58                 }
59             }
60             leaf l2 {
61                 type leafref {
62                     path "../../../cont1/list1/name";
63                 }
64             }
65         }
66         leaf l3 {
67             type leafref {
68                 path "/cont1/list1/name";
69             }
70         }
71         leaf l4 {
72             type int32;
73         }
74     }
75
76     container cont5 {
77         leaf l5 {
78             type leafref {
79                 path "/cont1/list1/name";
80             }
81         }
82     }
83 }