Fix path namespace resolution
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / refine.yang
1 module module-refine {
2
3     namespace "urn:refine:module";
4     prefix "sbd";
5
6     organization "OPEN DAYLIGHT";
7     contact "http://www.opendaylight.org/";
8
9     revision 2013-9-11 {
10     }
11
12     grouping grp {
13         leaf-list lflst {
14             type string;
15             min-elements 16;
16             max-elements 32;
17             must "old = 44";
18         }
19         choice chc {
20             default second;
21             case first {
22                 leaf lf-of-case1 {
23                     type int32;
24                 }
25             }
26             case second {
27                 leaf lf-of-case2 {
28                     type int16;
29                 }
30             }
31         }
32         choice chc2 {
33             mandatory "true";
34             case first2 {
35             }
36             case second2 {
37             }
38         }
39         anyxml data {
40             mandatory "true";
41             must "something = 7";
42         }
43     }
44
45     uses grp {
46         refine lflst {
47             min-elements 32;
48             max-elements 64;
49             must "new = 57";
50             new-subnode "some value from lflst";
51         }
52         refine chc {
53             default first;
54             new-subnode-chc "some value from chc";
55         }
56         refine chc2 {
57             mandatory "false"; 
58         }            
59         refine data {
60             mandatory "false";
61             must "something-else = 9";
62             new-subnode-data "some value from data";
63         }
64     }
65 }