77 lines
1.4 KiB
YANG
77 lines
1.4 KiB
YANG
module openconfig-platform-fan {
|
|
|
|
yang-version "1";
|
|
|
|
// namespace
|
|
namespace "http://openconfig.net/yang/platform/fan";
|
|
|
|
prefix "oc-fan";
|
|
|
|
import openconfig-platform { prefix oc-platform; }
|
|
import openconfig-extensions { prefix oc-ext; }
|
|
|
|
|
|
// meta
|
|
organization "OpenConfig working group";
|
|
|
|
contact
|
|
"OpenConfig working group
|
|
www.openconfig.net";
|
|
|
|
description
|
|
"This module defines data related to FAN components in the
|
|
OpenConfig platform model.";
|
|
|
|
oc-ext:openconfig-version "0.1.1";
|
|
|
|
revision "2018-11-21" {
|
|
description
|
|
"Add OpenConfig module metadata extensions.";
|
|
reference "0.1.1";
|
|
}
|
|
|
|
revision "2018-01-18" {
|
|
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 fan-state {
|
|
description
|
|
"Operational state data for fan components";
|
|
|
|
leaf speed {
|
|
type uint32;
|
|
units rpm;
|
|
description
|
|
"Current (instantaneous) fan speed";
|
|
}
|
|
}
|
|
|
|
|
|
// data definition statements
|
|
|
|
// augment statements
|
|
|
|
augment "/oc-platform:components/oc-platform:component/" +
|
|
"oc-platform:fan/oc-platform:state" {
|
|
description
|
|
"Adding fan data to component model";
|
|
|
|
uses fan-state;
|
|
}
|
|
|
|
}
|
|
|