Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-java-api-generator / src / test / resources / simple-list-demo.yang
1 module simple-list-demo {
2         yang-version 1;
3     namespace "urn:simple.container.demo";
4     prefix "scd";
5
6     organization "Cisco";
7
8     contact "WILL-BE-DEFINED-LATER";
9
10     description "
11         This module contains the definitions of elements that creates network 
12         topology i.e. definition of network nodes and links. This module is
13         not designed to be used solely for network representation. This module
14         SHOULD be used as base module in defining the network topology.
15     ";
16
17     revision "2013-02-27" {
18         reference " WILL BE DEFINED LATER";
19     }
20
21     container list-parent-container {
22
23         list simple-list {
24                 key "list-key";
25
26                 leaf list-key {
27                         type int8;
28                 }
29             
30             container list-child-container {
31                 leaf foo {
32                     type uint8;
33                 }
34             }
35             
36                 leaf foo {
37                         type int32;
38                 }
39             
40             leaf-list simple-leaf-list {
41                 type int32;
42             }
43             
44                 leaf bar {
45                         type string;
46                         config true;
47                 }       
48         }
49     }
50 }