Code Review
/
mdsal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
62d8146ce8265f284a0c11cbb12fc152b5469c61
[mdsal.git]
/
binding
/
mdsal-binding-generator-impl
/
src
/
test
/
resources
/
leafref_typedef_union
/
bug8449.yang
1
module bug8449 {
2
yang-version 1;
3
namespace "bug8449";
4
prefix "tst";
5
6
revision "2017-16-05" {
7
}
8
9
typedef name1-ref {
10
type leafref {
11
path "/tst:top/tst:name1";
12
}
13
}
14
15
typedef name2-ref {
16
type leafref {
17
path "/tst:top/tst:name2";
18
}
19
}
20
21
typedef name3-ref {
22
type string;
23
}
24
25
container top {
26
leaf name1 {
27
type string;
28
}
29
leaf name2 {
30
type string;
31
}
32
}
33
34
container test {
35
leaf ref {
36
type name3-ref;
37
}
38
}
39
40
container cont {
41
leaf ref {
42
type union {
43
type name1-ref;
44
type name2-ref;
45
}
46
mandatory true;
47
}
48
}
49
}