Merge "Leafref and identityref types to Json"
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / resources / yang-to-json-conversion / leafref / main-module.yang
1 module main-module {
2   namespace "main:module";  
3
4   prefix "mainmod";
5   revision 2013-12-2 {    
6   }
7   
8         container cont {
9                 leaf lf1 {
10                         type uint32;
11                 }
12                 
13                 container cont1 {
14                         leaf lf11 {
15                                 type boolean;
16                         }
17                 }
18                 
19                 leaf lf2 {
20                         type leafref {
21                                 path "../lf1";
22                         }
23                 }
24                 
25                 leaf lf3 {
26                         type leafref {
27                                 path "/cont/cont1/lf11";
28                         }
29                 }
30                 
31                 /* reference to nonexisting leaf */
32                 leaf lf5 {
33                         type leafref {
34                                 path "/cont/lf";
35                         }
36                 }
37                 
38                 
39         }
40         
41
42           
43 }