Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-generator-impl / src / test / resources / simple-container-demo.yang
1 module simple-container-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 "2012-02-08" {
18         reference " WILL BE DEFINED LATER";
19     }
20
21     revision "2010-02-08" {
22         reference " WILL BE DEFINED LATER";
23     }
24
25     container simple-container {
26
27         leaf foo {
28                 type int32;
29         }
30
31         leaf bar {
32                 type string;
33                 config true;
34         }
35
36         container nested-container {
37                 leaf foo {
38                         type uint8;
39                 }
40
41                 leaf bar {
42                         type string;
43                 }
44         }
45     }
46 }