Merge branch 'master' of ../controller
[yangtools.git] / yang / yang-data-jaxen / src / test / resources / test / documentTest / test2.yang
1 module test2 {
2     yang-version 1;
3     namespace "urn:opendaylight.test2";
4     prefix "test2";
5
6     organization "opendaylight";
7     contact "urn:opendaylight.com";
8     description "test description";
9
10     revision "2015-08-08" {
11         reference "1st edit";
12     }
13
14     container root {
15         leaf leaf-c {
16             type string;
17         }
18
19         list list-a {
20             key "leaf-a";
21
22             leaf leaf-a {
23                 type string;
24             }
25
26             choice choice-a {
27                 case one {
28                     leaf one {
29                         type string;
30                     }
31                 }
32                 case two-three {
33                     leaf two {
34                         type string;
35                     }
36                     leaf three {
37                         type string;
38                     }
39                 }
40             }
41
42             list list-b {
43                 key "leaf-b";
44                 leaf leaf-b {
45                     type string;
46                 }
47             }
48         }
49
50         container container-a {
51             container container-b {
52                 leaf leaf-d {
53                     type string;
54                 }
55             }
56         }
57     }
58 }