Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add storage counters related to errors #1091

Merged
merged 27 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions release/models/platform/.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- yang/platform/openconfig-platform-cpu.yang
- yang/platform/openconfig-platform-ext.yang
- yang/platform/openconfig-platform-software.yang
- yang/platform/openconfig-platform-storage.yang
- yang/platform/openconfig-platform-fabric.yang
- yang/platform/openconfig-platform-pipeline-counters.yang
- yang/platform/openconfig-platform-integrated-circuit.yang
Expand All @@ -31,6 +32,7 @@
- yang/platform/openconfig-platform-ext.yang
- yang/platform/openconfig-platform-cpu.yang
- yang/platform/openconfig-platform-software.yang
- yang/platform/openconfig-platform-storage.yang
- yang/platform/openconfig-platform-fabric.yang
- yang/platform/openconfig-platform-pipeline-counters.yang
- yang/platform/openconfig-platform-integrated-circuit.yang
Expand Down
8 changes: 7 additions & 1 deletion release/models/platform/openconfig-platform-common.yang
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ submodule openconfig-platform-common {
"This modules contains common groupings that are used in multiple
components within the platform module.";

oc-ext:openconfig-version "0.24.0";
oc-ext:openconfig-version "0.25.0";

revision "2024-04-24" {
description
"Add storage state io-errors.";
reference "0.25.0";
}

revision "2023-11-28" {
description
Expand Down
75 changes: 75 additions & 0 deletions release/models/platform/openconfig-platform-storage.yang
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
module openconfig-platform-storage {

yang-version "1";

// namespace
namespace "http://openconfig.net/yang/platform/storage";

prefix "oc-storage";

import openconfig-platform {
prefix oc-platform;
}
import openconfig-extensions {
prefix oc-ext;
}
import openconfig-yang-types {
prefix oc-yang;
}

// meta
organization
"OpenConfig working group";

contact
"OpenConfig working group
www.openconfig.net";

description
"This module defines data related to STORAGE components in the
OpenConfig platform model.";

oc-ext:openconfig-version "0.1.0";

revision "2024-04-24" {
description
"Initial revision.";
reference
"0.1.0";
}

// OpenConfig specific extensions for module metadata.
oc-ext:regexp-posix;
oc-ext:catalog-organization "openconfig";
oc-ext:origin "openconfig";

// identity statements
// typedef statements
// grouping statements
grouping storage-state {
description
"Storage component state. These counters are derived from the
linux kernel block layer statistics in /sys/block/<dev>/stat.";
dplore marked this conversation as resolved.
Show resolved Hide resolved
reference
"https://www.kernel.org/doc/Documentation/block/stat.txt";

leaf io-errors {
dplore marked this conversation as resolved.
Show resolved Hide resolved
type oc-yang:counter64;
description
"This values increments when an I/O request completes with a
failure. This value corresponds to 'discard I/Os' om the linux
dplore marked this conversation as resolved.
Show resolved Hide resolved
kernel block layer statistics.";
}
}

// data definition statements
// augment statements
augment "/oc-platform:components/oc-platform:component/" +
"oc-platform:storage/oc-platform:state" {
description
"Adding storage data to component model";

uses storage-state;
}
}

8 changes: 7 additions & 1 deletion release/models/platform/openconfig-platform.yang
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ module openconfig-platform {
(presence or absence of a component) and state (physical
attributes or status).";

oc-ext:openconfig-version "0.24.0";
oc-ext:openconfig-version "0.25.0";
dplore marked this conversation as resolved.
Show resolved Hide resolved

revision "2024-04-24" {
description
"Add storage state io-errors.";
reference "0.25.0";
}

revision "2023-11-28" {
description
Expand Down
Loading