Introduce top-level pom file.
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / base-yang-types.yang
1 module base-yang-types {
2     yang-version 1;
3     namespace "urn:opendaylight:org:test:base:yang:types";
4     prefix "tp";
5
6     organization "OPEN DAYLIGHT";
7     contact "http://www.opendaylight.org/";
8
9     description "This module contains definitions of all Yang base types.";
10
11     revision "2014-09-14" {
12         reference "Added yang-int8-restricted type.";
13      }
14
15     revision "2014-07-23" {
16         reference "Initial Revision.";
17     }
18
19     typedef yang-boolean {
20         type boolean;
21     }
22
23     typedef yang-empty {
24         type empty;
25     }
26
27     typedef yang-enumeration {
28         type enumeration {
29             enum a;
30             enum b;
31         }
32     }
33
34     typedef yang-int8 {
35         type int8;
36     }
37
38     typedef yang-int8-restricted {
39         type int8 {
40             range 1..100;
41         }
42     }
43
44     typedef yang-int16 {
45         type int16;
46     }
47
48     typedef yang-int32 {
49         type int32;
50     }
51
52     typedef yang-int64 {
53         type int64;
54     }
55
56     typedef yang-string {
57         type string;
58     }
59
60     typedef yang-decimal64 {
61         type decimal64 {
62             fraction-digits 2;
63         }
64     }
65
66     typedef yang-uint8 {
67         type uint8;
68     }
69
70     typedef yang-uint16 {
71         type uint16;
72     }
73
74     typedef yang-uint32 {
75         type uint32;
76     }
77
78     typedef yang-uint64 {
79         type uint64;
80     }
81
82     typedef yang-union {
83         type union {
84             type int32;
85             type int16;
86         }
87     }
88
89     typedef yang-binary {
90         type binary;
91     }
92
93     typedef yang-bits {
94         type bits {
95             bit disable-nagle {
96                 position 0;
97             }
98             bit auto-sense-speed {
99                 position 1;
100             }
101             bit 10-Mb-only {
102                 position 2;
103             }
104         }
105         default "auto-sense-speed";
106     }
107
108     typedef yang-instance-identifier {
109         type instance-identifier;
110     }
111 }