Code Review
/
controller.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4ad0983e0422ffe7523e408c2337ff634ac91679
[controller.git]
/
opendaylight
/
md-sal
/
sal-rest-connector
/
src
/
test
/
resources
/
yang-to-json-conversion
/
simple-data-types
/
simple-data-types.yang
1
module simple-data-types {
2
namespace "simple:data:types";
3
4
prefix "smpdtp";
5
revision 2013-11-12 {
6
}
7
8
container cont {
9
leaf lfnint8Min {
10
type int8;
11
}
12
leaf lfnint8Max {
13
type int8;
14
}
15
leaf lfnint16Min {
16
type int16;
17
}
18
leaf lfnint16Max {
19
type int16;
20
}
21
leaf lfnint32Min {
22
type int32;
23
}
24
leaf lfnint32Max {
25
type int32;
26
}
27
leaf lfnint64Min {
28
type int64;
29
}
30
leaf lfnint64Max {
31
type int64;
32
}
33
34
leaf lfnuint8Max {
35
type uint8;
36
}
37
leaf lfnuint16Max {
38
type uint16;
39
}
40
leaf lfnuint32Max {
41
type uint32;
42
}
43
leaf lfuint64Max {
44
type uint64;
45
}
46
leaf lfstr {
47
type string;
48
}
49
leaf lfbool1 {
50
type boolean;
51
}
52
leaf lfbool2 {
53
type boolean;
54
}
55
leaf lfbool3 {
56
type boolean;
57
}
58
leaf lfdecimal1 {
59
type decimal64 {
60
fraction-digits 2;
61
}
62
}
63
leaf lfdecimal2 {
64
type decimal64 {
65
fraction-digits 2;
66
}
67
}
68
leaf lfdecimal3 {
69
type decimal64 {
70
fraction-digits 2;
71
}
72
}
73
74
leaf lfdecimal4 {
75
type decimal64 {
76
fraction-digits 2;
77
}
78
}
79
80
81
leaf lfdecimal6 {
82
type decimal64 {
83
fraction-digits 2;
84
}
85
}
86
87
leaf lfenum {
88
type enumeration {
89
enum enum1;
90
enum enum2;
91
enum enum3;
92
enum enum4;
93
}
94
}
95
96
leaf lfbits {
97
type bits {
98
bit bit1;
99
bit bit2;
100
bit bit3;
101
bit bit4;
102
}
103
}
104
105
leaf lfbinary {
106
type binary;
107
}
108
109
leaf lfref1 { //reference to string type
110
type leafref {
111
path "../lfstr";
112
}
113
}
114
115
leaf lfref2 { //reference to number type
116
type leafref {
117
path "../lfnint8Max";
118
}
119
}
120
121
leaf lfempty {
122
type empty;
123
}
124
125
leaf-list lflstunion {
126
type union {
127
type uint16;
128
type string;
129
}
130
}
131
132
133
}
134
}