SelfResolutionWhenLeafrefReferToMultipleLeafrefRelPath.yang
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
list valid {
key "define";
leaf define {
type string;
}
container standard {
container present {
leaf-list name {
type leafref {
path "../../../../transmitter/send";
}
}
}
}
}
container reference {
list found {
key "define";
leaf define {
type string;
}
container reciever {
leaf remove {
type leafref {
path "../../../../valid/standard/present/name";
}
}
}
}
}
list transmitter {
key "send";
leaf send {
type leafref {
path "../../invalid-interval";
}
}
}
leaf-list invalid-interval {
type enumeration {
enum 10m;
enum 100m;
enum auto;
}
}
}