summaryrefslogtreecommitdiffstats
path: root/src/plugins/yang/openconfig/openconfig-platform-fan.yang
diff options
context:
space:
mode:
authorAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2018-12-20 17:49:33 +0100
committerAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2018-12-20 17:51:10 +0100
commit639509ad42f8bd6baf9b6f5b668a9bbfb05108d4 (patch)
tree83de866d2e47bd71dae0c6ff9e03f51c3269413b /src/plugins/yang/openconfig/openconfig-platform-fan.yang
parentba089324594f450a1b549906ec7fde1ba63a1e89 (diff)
Add Openconfig YANG modules.
Change-Id: I7e98bf1ca7196cff042a35b8bf096d2ea9d80028 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'src/plugins/yang/openconfig/openconfig-platform-fan.yang')
-rw-r--r--src/plugins/yang/openconfig/openconfig-platform-fan.yang65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/plugins/yang/openconfig/openconfig-platform-fan.yang b/src/plugins/yang/openconfig/openconfig-platform-fan.yang
new file mode 100644
index 0000000..92b5dbe
--- /dev/null
+++ b/src/plugins/yang/openconfig/openconfig-platform-fan.yang
@@ -0,0 +1,65 @@
+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.0";
+
+ revision "2018-01-18" {
+ description
+ "Initial revision";
+ reference "0.1.0";
+ }
+
+ // 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;
+ }
+
+}
+