Source code for ucsmsdk.mometa.firmware.FirmwareDependency

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

from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta


[docs]class FirmwareDependencyConsts: EP_ADAPTOR = "adaptor" EP_BLADE_BIOS = "blade-bios" EP_BLADE_CONTROLLER = "blade-controller" EP_BOARD_CONTROLLER = "board-controller" EP_CATALOG = "catalog" EP_CHASSIS_BOARD_CONTROLLER = "chassis-board-controller" EP_CMC = "cmc" EP_DEBUG_PLUG_IN = "debug-plug-in" EP_DIAG = "diag" EP_FEX = "fex" EP_FLEXFLASH_CONTROLLER = "flexflash-controller" EP_GRAPHICS_CARD = "graphics-card" EP_HOST_HBA = "host-hba" EP_HOST_HBA_OPTIONROM = "host-hba-optionrom" EP_HOST_NIC = "host-nic" EP_HOST_NIC_OPTIONROM = "host-nic-optionrom" EP_IOCARD = "iocard" EP_LOCAL_DISK = "local-disk" EP_MGMT_EXT = "mgmt-ext" EP_PSU = "psu" EP_SAS_EXP_REG_FW = "sas-exp-reg-fw" EP_SAS_EXPANDER = "sas-expander" EP_STORAGE_CONTROLLER = "storage-controller" EP_STORAGE_CONTROLLER_ONBOARD_DEVICE = "storage-controller-onboard-device" EP_STORAGE_CONTROLLER_ONBOARD_DEVICE_CPLD = "storage-controller-onboard-device-cpld" EP_STORAGE_DEV_BRIDGE = "storage-dev-bridge" EP_STORAGE_NODE_CONTROLLER = "storage-node-controller" EP_SWITCH = "switch" EP_SWITCH_KERNEL = "switch-kernel" EP_SWITCH_SOFTWARE = "switch-software" EP_SYSTEM = "system" EP_UNSPECIFIED = "unspecified" RELATIONSHIP_ANCESTOR = "ancestor" RELATIONSHIP_DESCENDENT = "descendent" RELATIONSHIP_SPECIAL = "special" SCOPE_BLADE = "blade" SCOPE_CHASSIS = "chassis" SCOPE_GLOBAL = "global" SCOPE_SWITCH = "switch" SCOPE_SYSTEM = "system" SCOPE_UNKNOWN = "unknown" SENSITIVITY_FABRIC = "fabric" SENSITIVITY_GLOBAL = "global" SENSITIVITY_PATH = "path"
[docs]class FirmwareDependency(ManagedObject): """This is FirmwareDependency class.""" consts = FirmwareDependencyConsts() naming_props = set([u'ep', u'invTag', u'hwVendor', u'hwModel', u'hwRevision']) mo_meta = MoMeta("FirmwareDependency", "firmwareDependency", "dep-[ep]-[inv_tag]-[hw_vendor]|[hw_model]|[hw_revision]", VersionMeta.Version101e, "InputOutput", 0x3ff, [], [""], [u'firmwareType'], [], ["Get"]) prop_meta = { "child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version101e, MoPropertyMeta.INTERNAL, 0x2, None, None, r"""((deleteAll|ignore|deleteNonPresent),){0,2}(deleteAll|ignore|deleteNonPresent){0,1}""", [], []), "dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, 0x4, 0, 256, None, [], []), "ep": MoPropertyMeta("ep", "ep", "string", VersionMeta.Version101e, MoPropertyMeta.NAMING, 0x8, None, None, None, ["adaptor", "blade-bios", "blade-controller", "board-controller", "catalog", "chassis-board-controller", "cmc", "debug-plug-in", "diag", "fex", "flexflash-controller", "graphics-card", "host-hba", "host-hba-optionrom", "host-nic", "host-nic-optionrom", "iocard", "local-disk", "mgmt-ext", "psu", "sas-exp-reg-fw", "sas-expander", "storage-controller", "storage-controller-onboard-device", "storage-controller-onboard-device-cpld", "storage-dev-bridge", "storage-node-controller", "switch", "switch-kernel", "switch-software", "system", "unspecified"], []), "hw_model": MoPropertyMeta("hw_model", "hwModel", "string", VersionMeta.Version101e, MoPropertyMeta.NAMING, 0x10, 1, 510, None, [], []), "hw_revision": MoPropertyMeta("hw_revision", "hwRevision", "string", VersionMeta.Version101e, MoPropertyMeta.NAMING, 0x20, 1, 510, None, [], []), "hw_vendor": MoPropertyMeta("hw_vendor", "hwVendor", "string", VersionMeta.Version101e, MoPropertyMeta.NAMING, 0x40, 1, 510, None, [], []), "inv_tag": MoPropertyMeta("inv_tag", "invTag", "string", VersionMeta.Version101e, MoPropertyMeta.NAMING, 0x80, 1, 510, None, [], []), "max_ver": MoPropertyMeta("max_ver", "maxVer", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "min_ver": MoPropertyMeta("min_ver", "minVer", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "relationship": MoPropertyMeta("relationship", "relationship", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["ancestor", "descendent", "special"], []), "rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, 0x100, 0, 256, None, [], []), "sacl": MoPropertyMeta("sacl", "sacl", "string", VersionMeta.Version302a, MoPropertyMeta.READ_ONLY, None, None, None, r"""((none|del|mod|addchild|cascade),){0,4}(none|del|mod|addchild|cascade){0,1}""", [], []), "scope": MoPropertyMeta("scope", "scope", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["blade", "chassis", "global", "switch", "system", "unknown"], []), "sensitivity": MoPropertyMeta("sensitivity", "sensitivity", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["fabric", "global", "path"], []), "status": MoPropertyMeta("status", "status", "string", VersionMeta.Version101e, MoPropertyMeta.READ_WRITE, 0x200, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []), } prop_map = { "childAction": "child_action", "dn": "dn", "ep": "ep", "hwModel": "hw_model", "hwRevision": "hw_revision", "hwVendor": "hw_vendor", "invTag": "inv_tag", "maxVer": "max_ver", "minVer": "min_ver", "relationship": "relationship", "rn": "rn", "sacl": "sacl", "scope": "scope", "sensitivity": "sensitivity", "status": "status", } def __init__(self, parent_mo_or_dn, ep, inv_tag, hw_vendor, hw_model, hw_revision, **kwargs): self._dirty_mask = 0 self.ep = ep self.inv_tag = inv_tag self.hw_vendor = hw_vendor self.hw_model = hw_model self.hw_revision = hw_revision self.child_action = None self.max_ver = None self.min_ver = None self.relationship = None self.sacl = None self.scope = None self.sensitivity = None self.status = None ManagedObject.__init__(self, "FirmwareDependency", parent_mo_or_dn, **kwargs)