Split out yang-data-tree-impl
[yangtools.git] / data / yang-data-tree-ri / 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     container xyzzy-augment-container {
36       container xyzzy-augment-container-inner {
37         leaf xyzzy-augment-container-leaf {
38           type string;
39           mandatory true;
40         }
41       }
42     }
43   }
44
45   augment /bar/baz {
46     case augmented-case {
47       leaf augmented-case-mandatory {
48         type string;
49         mandatory true;
50       }
51
52       leaf augmented-case-non-mandatory {
53         type string;
54       }
55     }
56   }
57
58   augment /bar/baz {
59     case case-nested-choice {
60       choice nested-baz {
61         case nested-xyz-case {
62           leaf nested-xyz-mandatory {
63             type string;
64             mandatory true;
65           }
66
67           leaf nested-xyz-non-mandatory {
68             type string;
69           }
70         }
71       }
72     }
73   }
74 }
75