Bug 8307: Add the option for activating deviation statements
[yangtools.git] / yang / yang-parser-impl / src / test / resources / deviation-resolution-test / deviation-delete / 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         units seconds;
11         default 100;
12         bar:custom-property-without-arg;
13     }
14
15     leaf-list my-leaf-list {
16         type string;
17         default "def-val-1";
18         default "def-val-2";
19         must "a = 1 or b = 2";
20         must "x != y";
21     }
22
23     list my-list {
24         key key-leaf;
25
26         unique "my-leaf-a my-leaf-b";
27         unique "my-leaf-c my-leaf-d";
28         bar:custom-property "arg";
29         bar:custom-property "another arg";
30
31         leaf key-leaf {
32             type string;
33         }
34
35         leaf my-leaf-a {
36             type string;
37         }
38
39         leaf my-leaf-b {
40             type string;
41         }
42
43         leaf my-leaf-c {
44             type string;
45         }
46
47         leaf my-leaf-d {
48             type string;
49         }
50     }
51
52     container my-cont {
53         uses my-grouping {
54             refine my-used-leaf {
55                 default "def-val-added-by-refine";
56                 bar:custom-property-without-arg;
57             }
58         }
59     }
60
61     augment "/my-cont" {
62         leaf my-aug-leaf {
63             type int32;
64             default "def-val";
65             units "minutes";
66             must "x = 1";
67             bar:custom-property-without-arg;
68         }
69     }
70
71     grouping my-grouping {
72         leaf my-used-leaf {
73             type int32;
74             units "days";
75             must "y = 5";
76         }
77     }
78
79     extension custom-property {
80         argument name;
81     }
82
83     extension custom-property-without-arg;
84 }