Code Review
/
yangtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git]
/
yang
/
yang-parser-rfc7950
/
src
/
test
/
resources
/
rfc7950
/
list-keys-test
/
correct-list-keys-test.yang
1
module correct-list-keys-test {
2
yang-version 1;
3
namespace "correct-list-keys-test";
4
prefix "test";
5
6
list valid-list-a {
7
leaf a1 {
8
type string;
9
}
10
leaf a2 {
11
when "../a1 = 'key-a1'";
12
type int32;
13
}
14
key "a1 test:a2";
15
}
16
17
list valid-list-b {
18
key "b";
19
leaf b {
20
if-feature feature-b;
21
type string;
22
}
23
}
24
25
grouping d {
26
leaf d1 {
27
type int32;
28
if-feature feature-d;
29
}
30
leaf d2 {
31
when "../d1 = '2'";
32
type string;
33
}
34
}
35
36
list valid-list-d1 {
37
key d1;
38
uses d;
39
}
40
41
list valid-list-d2 {
42
key test:d2;
43
uses d;
44
}
45
}