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
/
leafref-stmt
/
foo.yang
1
module foo {
2
namespace foo-ns;
3
prefix foo-prfx;
4
yang-version 1.1;
5
6
revision 2016-12-20;
7
8
leaf leafref-a {
9
type leafref {
10
path "../leaf-a";
11
require-instance true;
12
}
13
}
14
15
leaf leaf-a {
16
type string;
17
}
18
19
leaf leafref-b {
20
type leafref-typedef;
21
}
22
23
leaf leaf-b {
24
type string;
25
}
26
27
typedef leafref-typedef {
28
type leafref {
29
path "../leaf-b";
30
require-instance true;
31
}
32
}
33
34
leaf leafref-c {
35
type leafref {
36
path "../leaf-c";
37
}
38
}
39
40
leaf leaf-c {
41
type string;
42
}
43
}