blob: f57fa6b0e5f3db0fb4cceecdc9bee8c955c90501 [file] [log] [blame]
janani be18b5342016-07-13 21:06:41 +05301module syslog {
2 yang-version 1;
3 namespace http://huawei.com;
4 prefix "sys";
5 feature local-storage {
6 description
7 "This feature means the device supports local
8 storage (memory, flash or disk) that can be used to
9 store syslog messages.";
10 }
11 feature main-storage {
12 description
13 "This feature means the device supports main
14 storage that can be used to
15 store syslog messages.";
16 }
17
18 container speed {
19 leaf local-storage-limit {
20 if-feature local-storage;
21 type leafref {
22 path "/value";
23 }
24 units "kilobyte";
25 config false;
26 description
27 "The amount of local storage that can be
28 used to hold syslog messages.";
29 }
30 }
31 leaf storage-value {
32 type leafref {
33 path "/speed/local-storage-limit";
34 }
35 }
36 leaf value {
37 if-feature main-storage;
38 type uint64;
39 }
40}