Interface PlatformComponentState
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
State
@Generated("mdsal-binding-generator")
public interface PlatformComponentState
extends org.opendaylight.yangtools.yang.binding.DataObject
Operational state data for device components.
This class represents the following YANG schema fragment defined in module openconfig-platform
grouping platform-component-state {
leaf type {
type union {
type identityref {
base OPENCONFIG_HARDWARE_COMPONENT;
}
type identityref {
base OPENCONFIG_SOFTWARE_COMPONENT;
}
}
}
leaf id {
type string;
}
leaf location {
type string;
}
leaf description {
type string;
}
leaf mfg-name {
type string;
}
leaf mfg-date {
type oc-yang:date;
}
leaf hardware-version {
type string;
}
leaf firmware-version {
type string;
}
leaf software-version {
type string;
}
leaf serial-no {
type string;
}
leaf part-no {
type string;
}
leaf removable {
type boolean;
}
leaf oper-status {
type identityref {
base COMPONENT_OPER_STATUS;
}
}
leaf empty {
type boolean;
default false;
}
leaf parent {
type leafref {
path ../../../component/config/name;
}
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module openconfig-platform -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn description, ornullif it is not present.getEmpty()Return empty, ornullif it is not present.Return firmwareVersion, ornullif it is not present.Return hardwareVersion, ornullif it is not present.getId()Return id, ornullif it is not present.Return location, ornullif it is not present.Return mfgDate, ornullif it is not present.Return mfgName, ornullif it is not present.Return operStatus, ornullif it is not present.Return parent, ornullif it is not present.Return partNo, ornullif it is not present.Return removable, ornullif it is not present.Return serialNo, ornullif it is not present.Return softwareVersion, ornullif it is not present.getType()Return type, ornullif it is not present.Class<? extends PlatformComponentState>default @NonNull StringReturn description, guaranteed to be non-null.default @NonNull BooleanReturn empty, guaranteed to be non-null.default @NonNull StringReturn firmwareVersion, guaranteed to be non-null.default @NonNull StringReturn hardwareVersion, guaranteed to be non-null.default @NonNull StringReturn id, guaranteed to be non-null.default @NonNull StringReturn location, guaranteed to be non-null.default @NonNull DateReturn mfgDate, guaranteed to be non-null.default @NonNull StringReturn mfgName, guaranteed to be non-null.default @NonNull COMPONENTOPERSTATUSReturn operStatus, guaranteed to be non-null.default @NonNull ObjectReturn parent, guaranteed to be non-null.default @NonNull StringReturn partNo, guaranteed to be non-null.default @NonNull BooleanReturn removable, guaranteed to be non-null.default @NonNull StringReturn serialNo, guaranteed to be non-null.default @NonNull StringReturn softwareVersion, guaranteed to be non-null.default @NonNull PlatformComponentState.TypeReturn type, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends PlatformComponentState> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getType
PlatformComponentState.Type getType()Return type, ornullif it is not present.Type of component as identified by the system- Returns:
Typetype, ornullif it is not present.
-
requireType
Return type, guaranteed to be non-null.Type of component as identified by the system- Returns:
Typetype, guaranteed to be non-null.- Throws:
NoSuchElementException- if type is not present
-
getId
String getId()Return id, ornullif it is not present.Unique identifier assigned by the system for the component- Returns:
Stringid, ornullif it is not present.
-
requireId
Return id, guaranteed to be non-null.Unique identifier assigned by the system for the component- Returns:
Stringid, guaranteed to be non-null.- Throws:
NoSuchElementException- if id is not present
-
getLocation
String getLocation()Return location, ornullif it is not present.System-supplied description of the location of the component within the system. This could be a bay position, slot number, socket location, etc. For component types that have an explicit slot-id attribute, such as linecards, the system should populate the more specific slot-id.- Returns:
Stringlocation, ornullif it is not present.
-
requireLocation
Return location, guaranteed to be non-null.System-supplied description of the location of the component within the system. This could be a bay position, slot number, socket location, etc. For component types that have an explicit slot-id attribute, such as linecards, the system should populate the more specific slot-id.- Returns:
Stringlocation, guaranteed to be non-null.- Throws:
NoSuchElementException- if location is not present
-
getDescription
String getDescription()Return description, ornullif it is not present.System-supplied description of the component- Returns:
Stringdescription, ornullif it is not present.
-
requireDescription
Return description, guaranteed to be non-null.System-supplied description of the component- Returns:
Stringdescription, guaranteed to be non-null.- Throws:
NoSuchElementException- if description is not present
-
getMfgName
String getMfgName()Return mfgName, ornullif it is not present.System-supplied identifier for the manufacturer of the component. This data is particularly useful when a component manufacturer is different than the overall device vendor.- Returns:
StringmfgName, ornullif it is not present.
-
requireMfgName
Return mfgName, guaranteed to be non-null.System-supplied identifier for the manufacturer of the component. This data is particularly useful when a component manufacturer is different than the overall device vendor.- Returns:
StringmfgName, guaranteed to be non-null.- Throws:
NoSuchElementException- if mfgName is not present
-
getMfgDate
Date getMfgDate()Return mfgDate, ornullif it is not present.System-supplied representation of the component's manufacturing date.- Returns:
DatemfgDate, ornullif it is not present.
-
requireMfgDate
Return mfgDate, guaranteed to be non-null.System-supplied representation of the component's manufacturing date.- Returns:
DatemfgDate, guaranteed to be non-null.- Throws:
NoSuchElementException- if mfgDate is not present
-
getHardwareVersion
String getHardwareVersion()Return hardwareVersion, ornullif it is not present.For hardware components, this is the hardware revision of the component.- Returns:
StringhardwareVersion, ornullif it is not present.
-
requireHardwareVersion
Return hardwareVersion, guaranteed to be non-null.For hardware components, this is the hardware revision of the component.- Returns:
StringhardwareVersion, guaranteed to be non-null.- Throws:
NoSuchElementException- if hardwareVersion is not present
-
getFirmwareVersion
String getFirmwareVersion()Return firmwareVersion, ornullif it is not present.For hardware components, this is the version of associated firmware that is running on the component, if applicable.- Returns:
StringfirmwareVersion, ornullif it is not present.
-
requireFirmwareVersion
Return firmwareVersion, guaranteed to be non-null.For hardware components, this is the version of associated firmware that is running on the component, if applicable.- Returns:
StringfirmwareVersion, guaranteed to be non-null.- Throws:
NoSuchElementException- if firmwareVersion is not present
-
getSoftwareVersion
String getSoftwareVersion()Return softwareVersion, ornullif it is not present.For software components such as operating system or other software module, this is the version of the currently running software.- Returns:
StringsoftwareVersion, ornullif it is not present.
-
requireSoftwareVersion
Return softwareVersion, guaranteed to be non-null.For software components such as operating system or other software module, this is the version of the currently running software.- Returns:
StringsoftwareVersion, guaranteed to be non-null.- Throws:
NoSuchElementException- if softwareVersion is not present
-
getSerialNo
String getSerialNo()Return serialNo, ornullif it is not present.System-assigned serial number of the component.- Returns:
StringserialNo, ornullif it is not present.
-
requireSerialNo
Return serialNo, guaranteed to be non-null.System-assigned serial number of the component.- Returns:
StringserialNo, guaranteed to be non-null.- Throws:
NoSuchElementException- if serialNo is not present
-
getPartNo
String getPartNo()Return partNo, ornullif it is not present.System-assigned part number for the component. This should be present in particular if the component is also an FRU (field replaceable unit)- Returns:
StringpartNo, ornullif it is not present.
-
requirePartNo
Return partNo, guaranteed to be non-null.System-assigned part number for the component. This should be present in particular if the component is also an FRU (field replaceable unit)- Returns:
StringpartNo, guaranteed to be non-null.- Throws:
NoSuchElementException- if partNo is not present
-
getRemovable
Boolean getRemovable()Return removable, ornullif it is not present.If true, this component is removable or is a field replaceable unit- Returns:
Booleanremovable, ornullif it is not present.
-
requireRemovable
Return removable, guaranteed to be non-null.If true, this component is removable or is a field replaceable unit- Returns:
Booleanremovable, guaranteed to be non-null.- Throws:
NoSuchElementException- if removable is not present
-
getOperStatus
COMPONENTOPERSTATUS getOperStatus()Return operStatus, ornullif it is not present.If applicable, this reports the current operational status of the component.- Returns:
COMPONENTOPERSTATUSoperStatus, ornullif it is not present.
-
requireOperStatus
Return operStatus, guaranteed to be non-null.If applicable, this reports the current operational status of the component.- Returns:
COMPONENTOPERSTATUSoperStatus, guaranteed to be non-null.- Throws:
NoSuchElementException- if operStatus is not present
-
getEmpty
Boolean getEmpty()Return empty, ornullif it is not present.The empty leaf may be used by the device to indicate that a component position exists but is not populated. Using this flag, it is possible for the management system to learn how many positions are available (e.g., occupied vs. empty linecard slots in a chassis).- Returns:
Booleanempty, ornullif it is not present.
-
requireEmpty
Return empty, guaranteed to be non-null.The empty leaf may be used by the device to indicate that a component position exists but is not populated. Using this flag, it is possible for the management system to learn how many positions are available (e.g., occupied vs. empty linecard slots in a chassis).- Returns:
Booleanempty, guaranteed to be non-null.- Throws:
NoSuchElementException- if empty is not present
-
getParent
Object getParent()Return parent, ornullif it is not present.Reference to the name of the parent component. Note that this reference must be kept synchronized with the corresponding subcomponent reference from the parent component.- Returns:
Objectparent, ornullif it is not present.
-
requireParent
Return parent, guaranteed to be non-null.Reference to the name of the parent component. Note that this reference must be kept synchronized with the corresponding subcomponent reference from the parent component.- Returns:
Objectparent, guaranteed to be non-null.- Throws:
NoSuchElementException- if parent is not present
-