Source code for imcsdk.mometa.compute.ComputeBoard

"""This module contains the general information for ComputeBoard ManagedObject."""

from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta


[docs]class ComputeBoardConsts: OPER_POWER_DEGRADED = "degraded" OPER_POWER_ERROR = "error" OPER_POWER_NOT_SUPPORTED = "not-supported" OPER_POWER_OFF = "off" OPER_POWER_OFFDUTY = "offduty" OPER_POWER_OFFLINE = "offline" OPER_POWER_ON = "on" OPER_POWER_ONLINE = "online" OPER_POWER_POWER_SAVE = "power-save" OPER_POWER_TEST = "test" OPER_POWER_UNKNOWN = "unknown" PERF_LOWER_CRITICAL = "lower-critical" PERF_LOWER_NON_CRITICAL = "lower-non-critical" PERF_LOWER_NON_RECOVERABLE = "lower-non-recoverable" PERF_NOT_SUPPORTED = "not-supported" PERF_OK = "ok" PERF_UNKNOWN = "unknown" PERF_UPPER_CRITICAL = "upper-critical" PERF_UPPER_NON_CRITICAL = "upper-non-critical" PERF_UPPER_NON_RECOVERABLE = "upper-non-recoverable" POWER_DEGRADED = "degraded" POWER_ERROR = "error" POWER_NOT_SUPPORTED = "not-supported" POWER_OFF = "off" POWER_OFFDUTY = "offduty" POWER_OFFLINE = "offline" POWER_ON = "on" POWER_ONLINE = "online" POWER_POWER_SAVE = "power-save" POWER_TEST = "test" POWER_UNKNOWN = "unknown" PRESENCE_EMPTY = "empty" PRESENCE_EQUIPPED = "equipped" PRESENCE_EQUIPPED_IDENTITY_UNESTABLISHABLE = "equipped-identity-unestablishable" PRESENCE_EQUIPPED_NOT_PRIMARY = "equipped-not-primary" PRESENCE_EQUIPPED_WITH_MALFORMED_FRU = "equipped-with-malformed-fru" PRESENCE_INACCESSIBLE = "inaccessible" PRESENCE_MISMATCH = "mismatch" PRESENCE_MISMATCH_IDENTITY_UNESTABLISHABLE = "mismatch-identity-unestablishable" PRESENCE_MISSING = "missing" PRESENCE_NOT_SUPPORTED = "not-supported" PRESENCE_UNAUTHORIZED = "unauthorized" PRESENCE_UNKNOWN = "unknown"
[docs]class ComputeBoard(ManagedObject): """This is ComputeBoard class.""" consts = ComputeBoardConsts() naming_props = set([]) mo_meta = MoMeta("ComputeBoard", "computeBoard", "board", VersionMeta.Version151f, "OutputOnly", 0xf, [], ["admin", "read-only", "user"], [u'computeRackUnit'], [u'biosVfResumeOnACPowerLoss', u'computeMbPowerStats', u'computeRackUnitMbTempStats', u'equipmentTpm', u'faultInst', u'memoryArray', u'pidCatalog', u'processorUnit', u'storageController', u'storageFlexFlashController', u'storageLocalDiskSlotEp'], ["Get"]) prop_meta = { "child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version151f, MoPropertyMeta.INTERNAL, None, None, None, None, [], []), "dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, 0x2, 0, 255, None, [], []), "id": MoPropertyMeta("id", "id", "uint", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []), "model": MoPropertyMeta("model", "model", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "oper_power": MoPropertyMeta("oper_power", "operPower", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["degraded", "error", "not-supported", "off", "offduty", "offline", "on", "online", "power-save", "test", "unknown"], []), "perf": MoPropertyMeta("perf", "perf", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["lower-critical", "lower-non-critical", "lower-non-recoverable", "not-supported", "ok", "unknown", "upper-critical", "upper-non-critical", "upper-non-recoverable"], []), "power": MoPropertyMeta("power", "power", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["degraded", "error", "not-supported", "off", "offduty", "offline", "on", "online", "power-save", "test", "unknown"], []), "presence": MoPropertyMeta("presence", "presence", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, None, None, None, ["empty", "equipped", "equipped-identity-unestablishable", "equipped-not-primary", "equipped-with-malformed-fru", "inaccessible", "mismatch", "mismatch-identity-unestablishable", "missing", "not-supported", "unauthorized", "unknown"], []), "rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, 0x4, 0, 255, None, [], []), "serial": MoPropertyMeta("serial", "serial", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "status": MoPropertyMeta("status", "status", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, 0x8, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []), "vendor": MoPropertyMeta("vendor", "vendor", "string", VersionMeta.Version151f, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), } prop_map = { "childAction": "child_action", "dn": "dn", "id": "id", "model": "model", "operPower": "oper_power", "perf": "perf", "power": "power", "presence": "presence", "rn": "rn", "serial": "serial", "status": "status", "vendor": "vendor", } def __init__(self, parent_mo_or_dn, **kwargs): self._dirty_mask = 0 self.child_action = None self.id = None self.model = None self.oper_power = None self.perf = None self.power = None self.presence = None self.serial = None self.status = None self.vendor = None ManagedObject.__init__(self, "ComputeBoard", parent_mo_or_dn, **kwargs)