Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Improved generation of hashCode and equals.
[yangtools.git]
/
code-generator
/
binding-java-api-generator
/
src
/
test
/
resources
/
compilation
/
leaf-return-types
/
test.yang
1
module test {
2
yang-version 1;
3
namespace "urn:opendaylight:test";
4
prefix "t";
5
6
revision "2013-10-08" {
7
}
8
9
container nodes {
10
leaf id-binary {
11
type binary;
12
}
13
leaf id-bits {
14
type bits {
15
bit ctrl;
16
bit alt {
17
position 5;
18
}
19
bit delete;
20
}
21
}
22
leaf id-boolean {
23
type boolean;
24
}
25
leaf id-decimal64 {
26
type decimal64 {
27
fraction-digits 4;
28
}
29
}
30
leaf id-empty {
31
type empty;
32
}
33
leaf id-enumeration {
34
type enumeration {
35
enum zero;
36
enum one;
37
enum seven {
38
value 7;
39
}
40
}
41
}
42
leaf id-identityref {
43
type identityref {
44
base alg;
45
}
46
}
47
leaf id-instance-identifier {
48
type instance-identifier;
49
}
50
leaf id-8 {
51
type int8;
52
}
53
leaf id-16 {
54
type int16;
55
}
56
leaf id-32 {
57
type int32;
58
}
59
leaf id-64 {
60
type int64;
61
}
62
leaf id-leafref {
63
type leafref {
64
path "/nodes/id-64";
65
}
66
}
67
leaf id-string {
68
type string;
69
}
70
leaf id-u8 {
71
type uint8;
72
}
73
leaf id-u16 {
74
type uint16;
75
}
76
leaf id-u32 {
77
type uint32;
78
}
79
leaf id-u64 {
80
type uint64;
81
}
82
leaf id-union {
83
type union {
84
type string;
85
type binary;
86
}
87
}
88
}
89
90
identity alg {
91
}
92
93
}