HoneyNode Java 11 support for 221 devices
[transportpce.git] / tests / honeynode / 2.2.1 / honeynode-plugin-impl / src / main / resources / honeycomb-minimal-resources / config / yang / openconfig / openconfig-platform-types@2018-01-16.yang
1 module openconfig-platform-types {
2
3   yang-version "1";
4
5   // namespace
6   namespace "http://openconfig.net/yang/platform-types";
7
8   prefix "oc-platform-types";
9
10   import openconfig-types { prefix oc-types; }
11   import openconfig-extensions { prefix oc-ext; }
12
13
14   // meta
15   organization "OpenConfig working group";
16
17   contact
18     "OpenConfig working group
19     www.openconfig.net";
20
21   description
22     "This module defines data types (e.g., YANG identities)
23     to support the OpenConfig component inventory model.";
24
25   oc-ext:openconfig-version "0.8.0";
26
27   revision "2018-01-16" {
28     description
29       "Added new per-component common data; add temp alarm";
30     reference "0.8.0";
31   }
32
33   revision "2017-12-14" {
34     description
35       "Added anchor containers for component data, added new
36       component types";
37     reference "0.7.0";
38   }
39
40   revision "2017-08-16" {
41     description
42       "Added power state enumerated type";
43     reference "0.6.0";
44   }
45
46   revision "2016-12-22" {
47     description
48       "Added temperature state variable to component";
49     reference "0.5.0";
50   }
51
52   // grouping statements
53
54   grouping avg-min-max-instant-stats-precision1-celsius {
55     description
56       "Common grouping for recording temperature values in
57       Celsius with 1 decimal precision. Values include the
58       instantaneous, average, minimum, and maximum statistics";
59
60     leaf instant {
61       type decimal64 {
62         fraction-digits 1;
63       }
64       units celsius;
65       description
66         "The instantaneous value of the statistic.";
67     }
68
69     leaf avg {
70       type decimal64 {
71         fraction-digits 1;
72       }
73       units celsius;
74       description
75         "The arithmetic mean value of the statistic over the
76         sampling period.";
77     }
78
79     leaf min {
80       type decimal64 {
81         fraction-digits 1;
82       }
83       units celsius;
84       description
85         "The minimum value of the statistic over the sampling
86         period";
87     }
88
89     leaf max {
90       type decimal64 {
91         fraction-digits 1;
92       }
93       units celsius;
94       description
95         "The maximum value of the statistic over the sampling
96         period";
97     }
98
99     leaf interval {
100       type oc-types:stat-interval;
101       description
102         "The time interval over which the min/max/average statistics
103         are computed by the system.";
104     }
105   }
106
107   // identity statements
108
109   identity OPENCONFIG_HARDWARE_COMPONENT {
110     description
111       "Base identity for hardware related components in a managed
112       device.  Derived identities are partially based on contents
113       of the IANA Entity MIB.";
114     reference
115       "IANA Entity MIB and RFC 6933";
116   }
117
118
119   identity OPENCONFIG_SOFTWARE_COMPONENT {
120     description
121       "Base identity for software-related components in a managed
122       device";
123   }
124
125   // hardware types
126
127   identity CHASSIS {
128     base OPENCONFIG_HARDWARE_COMPONENT;
129     description
130       "Chassis component, typically with multiple slots / shelves";
131   }
132
133   identity BACKPLANE {
134     base OPENCONFIG_HARDWARE_COMPONENT;
135     description
136       "Backplane component for aggregating traffic, typically
137       contained in a chassis component";
138   }
139
140   identity FABRIC {
141     base OPENCONFIG_HARDWARE_COMPONENT;
142     description
143       "Interconnect between ingress and egress ports on the
144       device (e.g., a crossbar switch).";
145   }
146
147   identity POWER_SUPPLY {
148     base OPENCONFIG_HARDWARE_COMPONENT;
149     description
150       "Component that is supplying power to the device";
151   }
152
153   identity FAN {
154     base OPENCONFIG_HARDWARE_COMPONENT;
155     description
156       "Cooling fan, or could be some other heat-reduction component";
157   }
158
159   identity SENSOR {
160     base OPENCONFIG_HARDWARE_COMPONENT;
161     description
162       "Physical sensor, e.g., a temperature sensor in a chassis";
163   }
164
165   identity FRU {
166     base OPENCONFIG_HARDWARE_COMPONENT;
167     description
168       "Replaceable hardware component that does not have a more
169       specific defined schema.";
170   }
171
172   identity LINECARD {
173     base OPENCONFIG_HARDWARE_COMPONENT;
174     description
175       "Linecard component, typically inserted into a chassis slot";
176   }
177
178   identity PORT {
179     base OPENCONFIG_HARDWARE_COMPONENT;
180     description
181       "Physical port, e.g., for attaching pluggables and networking
182       cables";
183   }
184
185   identity TRANSCEIVER {
186     base OPENCONFIG_HARDWARE_COMPONENT;
187     description
188       "Pluggable module present in a port";
189   }
190
191   identity CPU {
192     base OPENCONFIG_HARDWARE_COMPONENT;
193     description
194       "Processing unit, e.g., a management processor";
195   }
196
197   identity STORAGE {
198     base OPENCONFIG_HARDWARE_COMPONENT;
199     description
200       "A storage subsystem on the device (disk, SSD, etc.)";
201   }
202
203   identity INTEGRATED_CIRCUIT {
204     base OPENCONFIG_HARDWARE_COMPONENT;
205     description
206       "A special purpose processing unit, typically for traffic
207       switching/forwarding (e.g., switching ASIC, NPU, forwarding
208       chip, etc.)";
209   }
210
211   identity OPERATING_SYSTEM {
212     base OPENCONFIG_SOFTWARE_COMPONENT;
213     description
214       "Operating system running on a component";
215   }
216
217
218   identity COMPONENT_OPER_STATUS {
219     description
220       "Current operational status of a platform component";
221   }
222
223   identity ACTIVE {
224     base COMPONENT_OPER_STATUS;
225     description
226       "Component is enabled and active (i.e., up)";
227   }
228
229   identity INACTIVE {
230     base COMPONENT_OPER_STATUS;
231     description
232       "Component is enabled but inactive (i.e., down)";
233   }
234
235   identity DISABLED {
236     base COMPONENT_OPER_STATUS;
237     description
238       "Component is administratively disabled.";
239   }
240
241   // typedef statements
242
243   typedef component-power-type {
244     type enumeration {
245       enum POWER_ENABLED {
246         description
247           "Enable power on the component";
248       }
249       enum POWER_DISABLED {
250         description
251           "Disable power on the component";
252       }
253     }
254     description
255       "A generic type reflecting whether a hardware component
256       is powered on or off";
257   }
258
259 }