Bug 8307: Add the option for activating deviation statements
[yangtools.git] / yang / yang-parser-impl / src / test / resources / deviation-resolution-test / deviation-replace / bar.yang
1 module bar {
2     namespace bar;
3     prefix bar;
4     yang-version 1.1;
5
6     revision 2017-01-20;
7
8     leaf my-leaf {
9         type int32;
10         default 100;
11         units kilobytes;
12     }
13
14     leaf-list my-leaf-list-test {
15         type string;
16         min-elements 5;
17         max-elements 10;
18         config false;
19     }
20
21     choice my-choice {
22         mandatory true;
23         bar:custom-property "original arg";
24         case c1 {
25             leaf c1-leaf {
26                 type string;
27             }
28         }
29
30         case c2 {
31             leaf c2-leaf {
32                 type string;
33             }
34         }
35     }
36
37     augment "/my-cont" {
38         leaf my-aug-leaf {
39             type int32;
40             default "def-val";
41             units "minutes";
42             bar:custom-property "arg";
43         }
44     }
45
46     container my-cont {
47         uses my-grouping {
48             refine my-used-leaf {
49                 default "def-val-added-by-refine";
50                 bar:custom-property "arg";
51             }
52         }
53     }
54
55     grouping my-grouping {
56         leaf my-used-leaf {
57             type int32;
58             units "days";
59         }
60     }
61
62     extension custom-property {
63         argument name;
64     }
65 }