Bug 5481: When condition of augment added in constraints of augment target
[yangtools.git] / yang / yang-parser-impl / src / test / resources / bugs / bug5481 / module2.yang
1 module module2 {
2     yang-version 1;
3
4     namespace "http://example.com/module2";
5     prefix "module2";
6
7     import module1 { prefix "module1"; }
8
9     description "Module 2";
10
11     revision "2016-03-09" {
12         description "Initial version.";
13     }
14
15     augment "module1:top" {
16         when "module1:top = 'extended'";
17         description "text";
18         status deprecated;
19         reference "ref";
20         leaf extended-leaf {
21             when "module1:top = 'extended'";
22             description "text";
23             status deprecated;
24             reference "ref";
25             type string;
26         }
27     }
28 }