Fix mandatory enforcer failure on augmented nodes
[yangtools.git] / data / yang-data-impl / src / test / resources / yt1276.yang
1 module foo {
2   namespace foo;
3   prefix foo;
4
5   container foo {
6     presence blah;
7   }
8
9   augment /foo {
10     leaf bar {
11       type string;
12       mandatory true;
13     }
14   }
15
16   container bar {
17     presence blah;
18
19     choice baz {
20       case xyzzy-case {
21         leaf xyzzy-leaf {
22           type string;
23           mandatory true;
24         }
25       }
26     }
27   }
28
29   augment /bar/baz/xyzzy-case {
30     leaf xyzzy-augment {
31       type string;
32       mandatory true;
33     }
34   }
35 }
36