Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug 2366 - new parser API - implementation of declared statements
[yangtools.git]
/
yang
/
yang-parser-impl
/
src
/
test
/
resources
/
list-keys-test
/
correct-list-keys-test.yang
1
module correct-list-keys-test {
2
3
namespace "correct-list-keys-test";
4
prefix "test";
5
6
list test1 {
7
key "test1_key";
8
leaf test1_key {
9
type string;
10
}
11
}
12
13
list test2 {
14
key "test2_key1 test2_key2 test2_key3";
15
leaf test2_key1 {
16
type string;
17
}
18
leaf test2_key2 {
19
type string;
20
}
21
leaf test2_key3 {
22
type string;
23
}
24
}
25
26
grouping grp_leaf {
27
leaf grp_leaf {
28
type string;
29
}
30
}
31
32
list test3 {
33
key "grp_leaf";
34
uses grp_leaf;
35
}
36
37
list test4 {
38
key "test4_key1 grp_leaf test4_key2";
39
uses grp_leaf;
40
leaf test4_key1 {
41
type string;
42
}
43
leaf test4_key2 {
44
type string;
45
}
46
}
47
48
list test5 {
49
key "aug_leaf";
50
}
51
52
augment /test5 {
53
leaf aug_leaf {
54
type string;
55
}
56
}
57
58
list test6 {
59
key "aug_leaf grp_leaf test6_key1";
60
uses grp_leaf;
61
leaf test6_key1 {
62
type string;
63
}
64
}
65
66
augment /test6 {
67
leaf aug_leaf {
68
type string;
69
}
70
}
71
72
list test7 {
73
key "grp_leaf";
74
}
75
76
augment /test7 {
77
uses grp_leaf;
78
}
79
}