aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/yang/openconfig/openconfig-platform-ext.yang
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2018-12-21 04:48:35 +0000
committerGerrit Code Review <gerrit@fd.io>2018-12-21 04:48:35 +0000
commit8791f3211bd61d213e4ea4a0af66a14bb2e3a239 (patch)
tree846a89e6ca81d639d024e5509654766d3581b7ea /src/plugins/yang/openconfig/openconfig-platform-ext.yang
parentde7bb8f2b0cdd2dfeba0586213bd415c9bb3fd18 (diff)
parent639509ad42f8bd6baf9b6f5b668a9bbfb05108d4 (diff)
Merge "Add Openconfig YANG modules."
Diffstat (limited to 'src/plugins/yang/openconfig/openconfig-platform-ext.yang')
-rw-r--r--src/plugins/yang/openconfig/openconfig-platform-ext.yang72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/plugins/yang/openconfig/openconfig-platform-ext.yang b/src/plugins/yang/openconfig/openconfig-platform-ext.yang
new file mode 100644
index 0000000..f47293e
--- /dev/null
+++ b/src/plugins/yang/openconfig/openconfig-platform-ext.yang
@@ -0,0 +1,72 @@
+module openconfig-platform-ext {
+
+ yang-version "1";
+
+ // namespace
+ namespace "http://openconfig.net/yang/platform/extension";
+
+ prefix "oc-platform-ext";
+
+ 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 optional extensions to 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 platform-component-ext-state {
+ description
+ "Operational state data for platform components";
+
+ leaf entity-id {
+ type uint32;
+ description
+ "A unique numeric identifier assigned by the system to the
+ component. This identifier may be used to represent the
+ corresponding SNMP Entity MIB identifier.";
+ }
+ }
+
+
+ // data definition statements
+
+ // augment statements
+
+ augment "/oc-platform:components/oc-platform:component/" +
+ "oc-platform:state" {
+ description
+ "Adding extension state data to components";
+
+ uses platform-component-ext-state;
+ }
+
+ // rpc statements
+
+ // notification statements
+
+}
+