Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Adjust test suite parser update to conform with API changes
[yangtools.git]
/
yang
/
yang-parser-impl
/
src
/
test
/
resources
/
semantic-statement-parser
/
types2.yang
1
module types2 {
2
namespace "types2";
3
prefix "t2";
4
5
leaf lf-decimal {
6
type decimal64 {
7
fraction-digits 2;
8
range "1 .. 3.14 | 10 | 15..16 | 20..max";
9
}
10
}
11
12
leaf lf-my-string {
13
type string {
14
length "1..255 | 320..max";
15
pattern "[0-9a-fA-F]*";
16
pattern "aa*";
17
}
18
}
19
20
leaf my-bits {
21
type bits {
22
bit disable-nagle {
23
position 0;
24
status current;
25
}
26
bit auto-sense-speed {
27
position 1;
28
}
29
bit 10-Mb-only {
30
position 2;
31
}
32
}
33
default "auto-sense-speed";
34
}
35
36
grouping grp1 {
37
leaf myenum {
38
type enumeration {
39
enum zero;
40
enum one;
41
enum seven {
42
value 7;
43
}
44
}
45
default zero;
46
}
47
}
48
49
container uses-cont {
50
uses t2:grp1 {
51
refine myenum {
52
default one;
53
}
54
}
55
}
56
57
leaf lf-int8 {
58
type int8;
59
}
60
61
leaf lf-int16 {
62
type int16;
63
}
64
65
leaf lf-int32 {
66
type int32;
67
}
68
69
leaf lf-int64 {
70
type int64;
71
}
72
73
leaf lf-uint8 {
74
type uint8;
75
}
76
77
leaf lf-uint16 {
78
type uint16;
79
}
80
81
leaf lf-uint32 {
82
type uint32;
83
}
84
85
leaf lf-uint64 {
86
type uint64;
87
}
88
89
leaf lf-bool {
90
type boolean;
91
}
92
}