public interface Hardware extends ChildOf<IetfHardwareData>, Augmentable<Hardware>
This class represents the following YANG schema fragment defined in module ietf-hardware
container hardware { leaf last-change { type yang:date-and-time; config false; } list component { key name; leaf name { type string; } leaf class { type identityref { base ianahw:hardware-class; } } leaf physical-index { if-feature entity-mib; type int32 { range 1..2147483647; } config false; } leaf description { type string; config false; } leaf parent { type leafref { path ../../component/name; require-instance false; } } leaf parent-rel-pos { type int32 { range "0 .. 2147483647"; } } leaf-list contains-child { type leafref { path ../../component/name; } config false; } leaf hardware-rev { type string; config false; } leaf firmware-rev { type string; config false; } leaf software-rev { type string; config false; } leaf serial-num { type string; config false; } leaf mfg-name { type string; config false; } leaf model-name { type string; config false; } leaf alias { type string; } leaf asset-id { type string; } leaf is-fru { type boolean; config false; } leaf mfg-date { type yang:date-and-time; config false; } leaf-list uri { type inet:uri; } leaf uuid { type yang:uuid; config false; } container state { if-feature hardware-state; leaf state-last-changed { type yang:date-and-time; config false; } leaf admin-state { type admin-state; } leaf oper-state { type oper-state; config false; } leaf usage-state { type usage-state; config false; } leaf alarm-state { type alarm-state; config false; } leaf standby-state { type standby-state; config false; } } container sensor-data { when "derived-from-or-self(../class, \"ianahw:sensor\")" { } if-feature hardware-sensor; config false; leaf value { type sensor-value; } leaf value-type { type sensor-value-type; } leaf value-scale { type sensor-value-scale; } leaf value-precision { type sensor-value-precision; } leaf oper-status { type sensor-status; } leaf units-display { type string; } leaf value-timestamp { type yang:date-and-time; } leaf value-update-rate { type uint32; units milliseconds; } } } }The schema path to identify an instance is ietf-hardware/hardware
To create instances of this class use HardwareBuilder
.
HardwareBuilder
Modifier and Type | Field and Description |
---|---|
static org.opendaylight.yangtools.yang.common.QName |
QNAME |
Modifier and Type | Method and Description |
---|---|
@Nullable List<Component> |
getComponent()
List of components.When the server detects a new hardware component,
itinitializes a list entry in the operational state.If the server does not
support configuration of hardwarecomponents, list entries in the operational
state areinitialized with values for all nodes as detected by
theimplementation.Otherwise, this procedure is followed: 1.
|
@Nullable DateAndTime |
getLastChange()
The time the '/hardware/component' list changed in theoperational state.
|
default @NonNull List<Component> |
nonnullComponent() |
getImplementedInterface
augmentation
@Nullable DateAndTime getLastChange()
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
lastChange
, or null
if not present@Nullable List<Component> getComponent()
java.util.List
component
, or null
if not presentCopyright © 2019 OpenDaylight. All rights reserved.