Merge "Resolve Bug:853 - remove groovy from config code generator."
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / resources / leafref / yang / leafref-module.yang
1 module leafref-module {
2   namespace "leafref:module";  
3
4
5   prefix "lfrfmodule";
6
7   import referenced-module { prefix refmod; revision-date 2014-04-17;} 
8
9   
10   revision 2014-04-17 {    
11   }
12   
13
14     container cont {
15         leaf lf1 {
16             type instance-identifier;
17         }
18
19         leaf lf2 {
20             type leafref {
21                 path "../lf1";
22             }
23         }
24
25         leaf lf3 {
26             type leafref {
27                 path "/refmod:cont/refmod:lf1";
28             }
29         }
30
31         leaf lf4 {
32             type leafref {
33                 path "/cont/lf1";
34             }
35         }
36
37         leaf lf5 {
38             type leafref {
39                 path "../lf1";
40             }
41         }
42         
43     }
44 }