YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / deviation-stmt-test / foo.yang
1 module foo {
2     namespace "foo-namespace";
3     prefix "foo-prefix";
4
5     import foo-imp {
6         prefix fimp;
7         revision-date 2016-06-23;
8     }
9
10     revision "2016-06-23" {
11         description "Initial revision";
12     }
13
14     deviation "/fimp:test-container/fimp:test-leaf" {
15         description "test-leaf is not supported";
16         deviate not-supported;
17     }
18
19     deviation "/fimp:test-container/fimp:test-leaf-2" {
20         deviate add {
21             default "added-def-val";
22             config false;
23             mandatory true;
24         }
25     }
26
27     deviation "/fimp:test-container/fimp:test-leaf-list" {
28         deviate add {
29             max-elements 12;
30         }
31
32         deviate replace {
33             min-elements 5;
34             type uint32;
35         }
36
37         deviate delete {
38             must "daytime or time";
39             must "time or daytime";
40             units minutes;
41         }
42     }
43
44     deviation "/fimp:test-container/fimp:test-list" {
45         deviate delete {
46             unique "list-leaf-1 list-leaf-2";
47             unique "list-leaf-3 list-leaf-4";
48         }
49     }
50 }