Code Review
/
mdsal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Rework BindingRuntimeTypes
[mdsal.git]
/
binding
/
mdsal-binding-generator
/
src
/
test
/
resources
/
bug6135.yang
1
module test-leafref {
2
3
namespace "odl:test:leafref";
4
prefix "tl";
5
revision 2015-04-09;
6
7
typedef my-enum {
8
type enumeration {
9
enum one {
10
value 1;
11
}
12
}
13
}
14
15
leaf my-inner-leaf {
16
type my-enum;
17
}
18
19
leaf my-leafref-inner {
20
type leafref {
21
path "/tl:my-inner-leaf";
22
}
23
}
24
25
leaf my-leaf {
26
type enumeration {
27
enum one {
28
value 1;
29
}
30
}
31
}
32
33
leaf my-leafref {
34
type leafref {
35
path "/tl:my-leaf";
36
}
37
}
38
39
leaf-list list-of-enums-inner {
40
type enumeration {
41
enum x;
42
enum y;
43
enum z;
44
}
45
}
46
47
leaf-list enums {
48
type leafref {
49
path "/tl:list-of-enums";
50
}
51
}
52
53
leaf-list list-of-enums {
54
type leafref {
55
path "/tl:my-leaf";
56
}
57
}
58
59
grouping my-group {
60
container my-cont {
61
leaf my-enum {
62
type my-enum;
63
mandatory true;
64
}
65
}
66
}
67
68
container my-cont2 {
69
uses my-group;
70
}
71
72
}