Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / code-generator / code-generator-demo / src / main / resources / demo / types2.yang
1 module types2 {
2         yang-version 1;
3     namespace "urn:simple.types.data.demo";
4     prefix "t2";
5     
6     import types1 {
7          prefix "t1";
8      }
9
10     organization "Cisco";
11
12     contact "WILL-BE-DEFINED-LATER";
13
14     description "This is types-data test description";
15
16     revision "2013-02-27" {
17         reference " WILL BE DEFINED LATER";
18     }
19     
20     
21      augment "/t1:interfaces/t1:ifEntry" {
22          when "t1:ifType='ds0'";
23          leaf ds0ChannelNumber {
24              type string;
25          }
26      }
27      
28      typedef my-leaf-ref {
29                 type leafref {
30                         path "/t1:topology/t1:name";
31                 }
32                 description "This type is used for leafs that reference network node instance.";
33         }
34      
35 }