Convert yang-data-impl to a JPMS module
[yangtools.git] / yang / yang-data-impl / src / test / resources / bug-5830 / foo-multiple.yang
1 module foo-multiple {
2     yang-version 1;
3     namespace "foo";
4     prefix foo;
5
6     revision 2016-05-17 {
7         description "test";
8     }
9
10     container task-container {
11         list task {
12             key "task-id";
13
14             leaf task-id {
15                 type string;
16             }
17             leaf task-mandatory-leaf {
18                 type string;
19                 mandatory true;
20             }
21
22             container task-data {
23                 presence "Task data";
24                 leaf mandatory-data {
25                     type string;
26                     mandatory true;
27                 }
28                 leaf other-data {
29                     type string;
30                 }
31                 container non-presence-container {
32                     container presence-container {
33                         presence "presence container";
34                         leaf mandatory-leaf {
35                             mandatory true;
36                             type string;
37                         }
38                     }
39                     container non-presence-container-2 {
40                         leaf mandatory-leaf-2 {
41                             mandatory true;
42                             type string;
43                         }
44                     }
45                     container presence-container-2 {
46                         presence "presence container";
47                         leaf mandatory-leaf-3 {
48                             mandatory true;
49                             type string;
50                         }
51                     }
52                 }
53             }
54         }
55     }
56 }