Code Review
/
controller.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Adding another constructor to ContainerFlowConfig to take dlVlan. Being an...
[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 lfstr1 {
50
type string;
51
}
52
leaf lfbool1 {
53
type boolean;
54
}
55
leaf lfbool2 {
56
type boolean;
57
}
58
leaf lfbool3 {
59
type boolean;
60
}
61
leaf lfdecimal1 {
62
type decimal64 {
63
fraction-digits 2;
64
}
65
}
66
leaf lfdecimal2 {
67
type decimal64 {
68
fraction-digits 2;
69
}
70
}
71
leaf lfdecimal3 {
72
type decimal64 {
73
fraction-digits 2;
74
}
75
}
76
77
leaf lfdecimal4 {
78
type decimal64 {
79
fraction-digits 2;
80
}
81
}
82
83
84
leaf lfdecimal6 {
85
type decimal64 {
86
fraction-digits 2;
87
}
88
}
89
90
leaf lfenum {
91
type enumeration {
92
enum enum1;
93
enum enum2;
94
enum enum3;
95
enum enum4;
96
}
97
}
98
99
leaf lfbits {
100
type bits {
101
bit bit1;
102
bit bit2;
103
bit bit3;
104
bit bit4;
105
}
106
}
107
108
leaf lfbinary {
109
type binary;
110
}
111
112
leaf lfref1 { //reference to string type
113
type leafref {
114
path "../lfstr";
115
}
116
}
117
118
leaf lfref2 { //reference to number type
119
type leafref {
120
path "../lfnint8Max";
121
}
122
}
123
124
leaf lfempty {
125
type empty;
126
}
127
128
leaf-list lflstunion {
129
type union {
130
type uint16;
131
type string;
132
}
133
}
134
135
136
}
137
}