Renamed yang-to-sources-plugin to maven-yang-plugin.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / yang1.yang
1 module types1 {
2         yang-version 1;
3     namespace "urn:simple.container.demo";
4     prefix "t1";
5     
6
7     organization "Cisco";
8
9     contact "WILL-BE-DEFINED-LATER";
10     
11     
12     container interfaces {
13          list ifEntry {
14              key "ifIndex";
15
16              leaf ifIndex {
17                  type uint32;
18              }
19              leaf ifDescr {
20                  type string;
21              }
22              leaf ifType {
23                  type uint8;
24              }
25              leaf ifMtu {
26                  type int32;
27              }
28          }
29      }
30     
31     
32     
33     
34     
35 //    leaf name {
36 //              type my-string;
37 //      }
38         
39 //      typedef my-string {
40 //              type string {
41 //                      length "0..4";
42 //              pattern "[0-9a-fA-F]*";
43 //              }
44 //      }
45
46
47 //      leaf completed {
48 //              type types2:percent;
49 //  }
50
51 //      leaf testleaf {
52 //              type data:my-base-int32-type;
53 //      }
54
55 //      leaf-list domain-search {
56 //              type string;
57 //              description "List of domain names to search";
58 //      }
59         
60 }