Merge from development repository.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile2.yang
1 module types2 {
2         yang-version 1;
3     namespace "urn:simple.types.data.demo";
4     prefix "t2";
5     
6     import types1 {
7          prefix "if";
8          revision-date 2013-02-27;
9      }
10
11     organization "Cisco";
12     contact "WILL-BE-DEFINED-LATER";
13     description "This is types-data test description";
14
15     revision "2013-02-27" {
16         reference " WILL BE DEFINED LATER";
17     }
18     
19     
20      augment "/if:interfaces/if:ifEntry" {
21          when "if:ifType='ds0'";
22          leaf ds0ChannelNumber {
23              type string;
24          }
25      }
26      
27      leaf if-name {
28         type leafref {
29                 path "/interface/name";
30         }
31      }
32      
33      leaf name {
34         type string;
35      }
36      
37      typedef my-base-int32-type {
38                 type int32 {
39                 range "0..32";
40         }
41         }
42
43 }