Skip to content

Commit

Permalink
Update openconfig-system-logging.yang
Browse files Browse the repository at this point in the history
  • Loading branch information
rszarecki authored Jul 20, 2023
1 parent a26a495 commit 45b03d3
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions release/models/system/openconfig-system-logging.yang
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,112 @@ module openconfig-system-logging {
}
}

grouping logging-file-config {
description
"Configuration data for logfile";

leaf filename-prefix {
type string {
length 0..255;
}
description
"filename prefix. It is expected that implementation may append to it timestamp, serial-number or other type of identifier";
}

leaf path {
type string {
length 0..255;
}
description
"path to the folder where logfile is stored. May include drive identifier is implementation requires";
}

leaf count {
type uint32;
default 1;
description
"Used for logfile rotation. maximum number of files of given filename-prefix stored. Default value: 1. ";
}

leaf max-size {
type uint32;
default 1000;
description
"Maximum size logfile may grow to. When logfile reach this size it need to be closed, save, and new file open or future log storage. If needed oldest logfile of same prefix shall be deleted to";
}

leaf max-open-time {
type uint32;
default 1440;
description
"Maximum time, in minutes, the logfile can be open. When expires, it need to be closed, save, and new file open or future log storage. If needed oldest logfile of same prefix shall be deleted to ";
}
}

grouping logging-file-state {
description
"Operational state data for logfile";
leaf open-logfile {
type string{
length 0..511;
}
description
"the currently active/open filename prepended by folder path and including suffix appended to filename-prefix by system";
}
}

grouping logging-files-top {
description
"Top-level grouping for local log files";

container files {
description
"Enclosing container for the list of log files";

list file {
key "filename-prefix";
key "path";
description
"List of logfiles";

leaf filename-prefix {
type leafref {
path "../config/filename-prefix";
}
description
"Reference to the logfiles list key";
}

leaf path {
type leafref {
path "../config/path";
}
description
"Reference to the logfiles list key";
}

container config {
description
"Configuration data for logfile";

uses logging-file-config;
}

container state {

config false;

description
"Operational state data for logfile servers";

uses logging-file-config;
uses logging-file-state;
}
uses logging-selectors-top;
}
}
}

grouping logging-top {
description
"Top-level grouping for logging data";
Expand All @@ -483,6 +589,8 @@ module openconfig-system-logging {

uses logging-console-top;
uses logging-remote-top;
uses loffing-files-top;

}
}
// data definition statements
Expand Down

0 comments on commit 45b03d3

Please sign in to comment.