YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / deviation-resolution-test / deviation-delete / foo.yang
1 module foo {
2     namespace foo;
3     prefix foo;
4     yang-version 1.1;
5
6     import bar {
7         prefix bar;
8         revision-date 2017-01-20;
9     }
10
11     revision 2017-01-20;
12
13     deviation "/bar:my-leaf" {
14         deviate delete {
15             units seconds;
16             default 100;
17             bar:custom-property-without-arg;
18         }
19     }
20
21     deviation "/bar:my-leaf-list" {
22         deviate delete {
23             default "def-val-1";
24             default "def-val-2";
25             must "a = 1 or b = 2";
26             must "x != y";
27         }
28     }
29
30     deviation "/bar:my-list" {
31         deviate delete {
32             unique "my-leaf-a my-leaf-b";
33             unique "my-leaf-c my-leaf-d";
34             bar:custom-property "arg";
35             bar:custom-property "another arg";
36         }
37     }
38
39     deviation "/bar:my-cont/bar:my-aug-leaf" {
40         deviate delete {
41             default "def-val";
42             units "minutes";
43             must "x = 1";
44             bar:custom-property-without-arg;
45         }
46     }
47
48     deviation "/bar:my-cont/bar:my-used-leaf" {
49         deviate delete {
50             default "def-val-added-by-refine";
51             bar:custom-property-without-arg;
52             units "days";
53             must "y = 5";
54         }
55     }
56 }