SelfFileLinkingWithFeatureReferredByMultiLeafref.yang
1.04 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
module syslog {
yang-version 1;
namespace http://huawei.com;
prefix "sys";
feature local-storage {
description
"This feature means the device supports local
storage (memory, flash or disk) that can be used to
store syslog messages.";
}
feature main-storage {
description
"This feature means the device supports main
storage that can be used to
store syslog messages.";
}
container speed {
leaf local-storage-limit {
if-feature local-storage;
type leafref {
path "/value";
}
units "kilobyte";
config false;
description
"The amount of local storage that can be
used to hold syslog messages.";
}
}
leaf storage-value {
type leafref {
path "/speed/local-storage-limit";
}
}
leaf value {
if-feature main-storage;
type uint64;
}
}