5375af4d3bc917f523b471a877e580ad4eefc275
[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         revision-date 2017-01-20;
8     }
9
10     revision 2017-01-20;
11
12     deviation "/bar:my-leaf" {
13         deviate replace {
14             type uint32;
15             default 10;
16             units bytes;
17         }
18     }
19
20     deviation "/bar:my-leaf-list-test" {
21         deviate replace {
22             min-elements 3;
23             max-elements 6;
24             config true;
25         }
26     }
27
28     deviation "/bar:my-choice" {
29         deviate replace {
30             mandatory false;
31             bar:custom-property "new arg";
32         }
33     }
34
35     deviation "/bar:my-cont/bar:my-aug-leaf" {
36         deviate replace {
37             type uint32;
38             default "new-def-val";
39             units "seconds";
40             bar:custom-property "new arg";
41         }
42     }
43
44     deviation "/bar:my-cont/bar:my-used-leaf" {
45         deviate replace {
46             type uint32;
47             default "new-def-val";
48             bar:custom-property "new arg";
49             units "weeks";
50         }
51     }
52 }