YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / deviation-stmt-test / bar.yang
1 module bar {
2     namespace bar-namespace;
3     prefix bar-prefix;
4
5     import bar-imp {
6         prefix bimp;
7         revision-date 2016-09-22;
8     }
9
10     revision "2016-09-22";
11
12     deviation "/bimp:bar-container-1" {
13         deviate add {
14             must "a != b";
15         }
16         bar-prefix:bar-extension;
17     }
18
19     deviation "/bimp:bar-container-2" {
20         deviate delete {
21             must "a = b";
22         }
23     }
24
25     deviation "/bimp:bar-container-2" {
26         deviate add {
27             config false;
28         }
29     }
30
31     deviation "/bimp:bar-container-1/bimp:bar-leaf-1" {
32         deviate add {
33             default "def-val";
34         }
35         description "desc";
36     }
37
38     deviation "/bimp:bar-container-1/bimp:bar-leaf-1" {
39         deviate add {
40             config false;
41         }
42         description "another desc";
43     }
44
45     deviation "/bimp:bar-container-2/bimp:bar-leaf-2" {
46         deviate add {
47             default "def-val";
48         }
49         reference "ref";
50     }
51
52     deviation "/bimp:bar-container-2/bimp:bar-leaf-2" {
53         deviate add {
54             config false;
55         }
56         reference "another ref";
57     }
58
59     extension bar-extension {}
60 }