Validate cross-revision imports and includes
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / resources / deviation-resolution-test / deviation-replace / foo.yang
1 module foo {
2     namespace foo;
3     prefix foo;
4
5     import bar {
6         prefix bar;
7     }
8
9     revision 2017-01-20;
10
11     deviation "/bar:my-leaf" {
12         deviate replace {
13             type uint32;
14             default 10;
15             units bytes;
16         }
17     }
18
19     deviation "/bar:my-leaf-list-test" {
20         deviate replace {
21             min-elements 3;
22             max-elements 6;
23             config true;
24         }
25     }
26
27     deviation "/bar:my-choice" {
28         deviate replace {
29             mandatory false;
30             bar:custom-property "new arg";
31         }
32     }
33
34     deviation "/bar:my-cont/bar:my-aug-leaf" {
35         deviate replace {
36             type uint32;
37             default "new-def-val";
38             units "seconds";
39             bar:custom-property "new arg";
40         }
41     }
42
43     deviation "/bar:my-cont/bar:my-used-leaf" {
44         deviate replace {
45             type uint32;
46             default "new-def-val";
47             bar:custom-property "new arg";
48             units "weeks";
49         }
50     }
51 }