Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bump odlparent to 7.0.6
[yangtools.git]
/
yang
/
yang-data-codec-xml
/
src
/
test
/
resources
/
foo.yang
1
module foo {
2
namespace "foo-namespace";
3
prefix "f";
4
5
identity ident-base;
6
identity ident-one {
7
base ident-base;
8
}
9
10
typedef union-type {
11
type union {
12
type uint8;
13
type identityref {
14
base ident-base;
15
}
16
}
17
}
18
19
container parent-container {
20
21
container leaf-container {
22
23
leaf union-identityref-leaf {
24
type union-type;
25
}
26
27
leaf int32-leaf {
28
type int32;
29
}
30
31
leaf decimal64-leaf {
32
type decimal64 {
33
fraction-digits 2;
34
}
35
}
36
37
leaf string-leaf {
38
type string;
39
}
40
41
leaf leafref-leaf {
42
type leafref {
43
path "../string-leaf";
44
}
45
}
46
47
leaf empty-leaf {
48
type empty;
49
}
50
51
leaf boolean-leaf {
52
type boolean;
53
}
54
55
leaf enum-leaf {
56
type enumeration {
57
enum zero;
58
enum one;
59
enum five {
60
value 5;
61
}
62
}
63
}
64
}
65
66
container anyxml-container {
67
anyxml my-anyxml;
68
}
69
}
70
71
72
}