hiroki | 4ecc871 | 2018-05-08 13:23:37 -0700 | [diff] [blame] | 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-extensions { |
| 11 | prefix oc-ext; |
| 12 | revision-date "2015-10-09"; |
| 13 | } |
| 14 | |
| 15 | // meta |
| 16 | organization "OpenConfig working group"; |
| 17 | |
| 18 | contact |
| 19 | "OpenConfig working group |
| 20 | www.openconfig.net"; |
| 21 | |
| 22 | description |
| 23 | "This module defines data types (e.g., YANG identities) |
| 24 | to support the OpenConfig component inventory model."; |
| 25 | |
| 26 | oc-ext:openconfig-version "0.4.0"; |
| 27 | |
| 28 | revision "2016-06-06" { |
| 29 | description |
| 30 | "Public release"; |
| 31 | reference "0.4.0"; |
| 32 | } |
| 33 | |
| 34 | // identity statements |
| 35 | |
| 36 | identity OPENCONFIG_HARDWARE_COMPONENT { |
| 37 | description |
| 38 | "Base identity for hardware related components in a managed |
| 39 | device. Derived identities are partially based on contents |
| 40 | of the IANA Entity MIB."; |
| 41 | reference |
| 42 | "IANA Entity MIB and RFC 6933"; |
| 43 | } |
| 44 | |
| 45 | |
| 46 | identity OPENCONFIG_SOFTWARE_COMPONENT { |
| 47 | description |
| 48 | "Base identity for software-related components in a managed |
| 49 | device"; |
| 50 | } |
| 51 | |
| 52 | // hardware types |
| 53 | |
| 54 | identity CHASSIS { |
| 55 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 56 | description |
| 57 | "Chassis component, typically with multiple slots / shelves"; |
| 58 | } |
| 59 | |
| 60 | identity BACKPLANE { |
| 61 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 62 | description |
| 63 | "Backplane component for aggregating traffic, typically |
| 64 | contained in a chassis component"; |
| 65 | } |
| 66 | |
| 67 | identity POWER_SUPPLY { |
| 68 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 69 | description |
| 70 | "Component that is supplying power to the device"; |
| 71 | } |
| 72 | |
| 73 | identity FAN { |
| 74 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 75 | description |
| 76 | "Cooling fan, or could be some other heat-reduction component"; |
| 77 | } |
| 78 | |
| 79 | identity SENSOR { |
| 80 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 81 | description |
| 82 | "Physical sensor, e.g., a temperature sensor in a chassis"; |
| 83 | } |
| 84 | |
| 85 | identity MODULE { |
| 86 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 87 | description |
| 88 | "Replaceable hardware module, e.g., a daughtercard"; |
| 89 | } |
| 90 | |
| 91 | identity LINECARD { |
| 92 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 93 | description |
| 94 | "Linecard component, typically inserted into a chassis slot"; |
| 95 | } |
| 96 | |
| 97 | identity PORT { |
| 98 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 99 | description |
| 100 | "Physical port, e.g., for attaching pluggables and networking |
| 101 | cables"; |
| 102 | } |
| 103 | |
| 104 | identity TRANSCEIVER { |
| 105 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 106 | description |
| 107 | "Pluggable module present in a port"; |
| 108 | } |
| 109 | |
| 110 | identity CPU { |
| 111 | base OPENCONFIG_HARDWARE_COMPONENT; |
| 112 | description |
| 113 | "Processing unit, e.g., a management processor"; |
| 114 | } |
| 115 | |
| 116 | identity OPERATING_SYSTEM { |
| 117 | base OPENCONFIG_SOFTWARE_COMPONENT; |
| 118 | description |
| 119 | "Operating system running on a component"; |
| 120 | } |
| 121 | |
| 122 | |
| 123 | } |