Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Added tests for yang.model.util"
[yangtools.git]
/
yang
/
yang-data-codec-gson
/
src
/
test
/
resources
/
complexjson
/
yang
/
complexjson.yang
1
module complexjson {
2
namespace "ns:complex:json";
3
prefix cj;
4
5
revision "2014-08-11" {
6
}
7
8
9
identity ident;
10
11
container cont1 {
12
13
anyxml lf12-any;
14
anyxml lf13-any;
15
anyxml lf14-any;
16
17
leaf lf11 {
18
type int32;
19
}
20
21
leaf-list lflst11 {
22
type string;
23
}
24
25
list lst11 {
26
key "key111 lf111";
27
leaf key111 {
28
type string;
29
}
30
leaf lf111 {
31
type string;
32
}
33
leaf lf112 {
34
type instance-identifier;
35
}
36
leaf lf113 {
37
type string;
38
}
39
}
40
41
list lst12 {
42
leaf lf121 {
43
type string;
44
}
45
leaf lf122 {
46
type string;
47
}
48
}
49
50
51
choice choc11 {
52
case c11A {
53
leaf lf13 {
54
type string;
55
}
56
}
57
leaf lf16 {
58
type string;
59
}
60
}
61
62
choice choc12 {
63
case c12A {
64
}
65
}
66
}
67
68
augment "/cont1/choc12" {
69
case c12B {
70
leaf lf17 {
71
type string;
72
}
73
}
74
}
75
76
augment "/cont1" {
77
container cont11 {
78
leaf lf111 {
79
type string;
80
}
81
}
82
}
83
84
augment "/cont1" {
85
leaf lf12_1 {
86
type string;
87
}
88
leaf lf12_2 {
89
type string;
90
}
91
}
92
93
augment "/cont1" {
94
leaf lf12_3 {
95
type string;
96
}
97
}
98
99
augment "/cont1/choc11" {
100
case c11B {
101
leaf lf14_1 {
102
type string;
103
}
104
}
105
}
106
107
augment "/cont1/choc11" {
108
case c11C {
109
leaf lf14_2 {
110
type string;
111
}
112
}
113
}
114
115
augment "/cont1/choc11/c11A" {
116
leaf lf15_11 {
117
type bits {
118
bit one;
119
bit two;
120
bit three;
121
}
122
}
123
leaf lf15_12 {
124
type identityref {
125
base ident;
126
}
127
}
128
129
}
130
131
augment "/cont1/choc11/c11A" {
132
leaf lf15_21 {
133
type string;
134
}
135
}
136
137
}