"""This module contains the general information for MgmtEntity ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
[docs]class MgmtEntityConsts:
CHASSIS_DEVICE_IO_STATE1_OK = "ok"
CHASSIS_DEVICE_IO_STATE1_OPEN_ERROR = "openError"
CHASSIS_DEVICE_IO_STATE1_READ_ERROR = "readError"
CHASSIS_DEVICE_IO_STATE1_UNKNOWN = "unknown"
CHASSIS_DEVICE_IO_STATE1_WRITE_ERROR = "writeError"
CHASSIS_DEVICE_IO_STATE2_OK = "ok"
CHASSIS_DEVICE_IO_STATE2_OPEN_ERROR = "openError"
CHASSIS_DEVICE_IO_STATE2_READ_ERROR = "readError"
CHASSIS_DEVICE_IO_STATE2_UNKNOWN = "unknown"
CHASSIS_DEVICE_IO_STATE2_WRITE_ERROR = "writeError"
CHASSIS_DEVICE_IO_STATE3_OK = "ok"
CHASSIS_DEVICE_IO_STATE3_OPEN_ERROR = "openError"
CHASSIS_DEVICE_IO_STATE3_READ_ERROR = "readError"
CHASSIS_DEVICE_IO_STATE3_UNKNOWN = "unknown"
CHASSIS_DEVICE_IO_STATE3_WRITE_ERROR = "writeError"
HA_FAILURE_REASON_DB_VERSION_MISMATCH = "DbVersionMismatch"
HA_FAILURE_REASON_PEER_MGMT_SERVICES_UNRESPONSIVE = "PeerMgmtServicesUnresponsive"
HA_FAILURE_REASON_CHASSIS_CONFIG_INCOMPLETE = "chassisConfigIncomplete"
HA_FAILURE_REASON_MGMT_SERVICES_UNRESPONSIVE = "mgmtServicesUnresponsive"
HA_FAILURE_REASON_NETWORK_INTERFACE_DOWN = "networkInterfaceDown"
HA_FAILURE_REASON_NODE_DOWN = "nodeDown"
HA_FAILURE_REASON_NONE = "none"
HA_FAILURE_REASON_PEER_CHASSIS_CONFIG_INCOMPLETE = "peerChassisConfigIncomplete"
HA_FAILURE_REASON_PEER_NODE_DOWN = "peerNodeDown"
HA_READINESS_DOWNGRADED = "downgraded"
HA_READINESS_NOT_READY = "notReady"
HA_READINESS_READY = "ready"
HA_READINESS_UNKNOWN = "unknown"
HA_READY_FALSE = "false"
HA_READY_NO = "no"
HA_READY_TRUE = "true"
HA_READY_YES = "yes"
ID_A = "A"
ID_B = "B"
ID_NONE = "NONE"
LEADERSHIP_ELECTION_FAILED = "electionFailed"
LEADERSHIP_ELECTION_IN_PROGRESS = "electionInProgress"
LEADERSHIP_INAPPLICABLE = "inapplicable"
LEADERSHIP_PRIMARY = "primary"
LEADERSHIP_SUBORDINATE = "subordinate"
LEADERSHIP_UNKNOWN = "unknown"
MGMT_SERVICES_STATE_DOWN = "down"
MGMT_SERVICES_STATE_SWITCHOVER_IN_PROGRESS = "switchoverInProgress"
MGMT_SERVICES_STATE_UNKNOWN = "unknown"
MGMT_SERVICES_STATE_UNRESPONSIVE = "unresponsive"
MGMT_SERVICES_STATE_UP = "up"
SSH_KEY_STATUS_MATCHED = "matched"
SSH_KEY_STATUS_MISMATCHED = "mismatched"
SSH_KEY_STATUS_NONE = "none"
STATE_DOWN = "down"
STATE_UNKNOWN = "unknown"
STATE_UP = "up"
UMBILICAL_STATE_DEGRADED = "degraded"
UMBILICAL_STATE_FAILED = "failed"
UMBILICAL_STATE_FULL = "full"
UMBILICAL_STATE_UNKNOWN = "unknown"
VERSION_MISMATCH_FALSE = "false"
VERSION_MISMATCH_NO = "no"
VERSION_MISMATCH_TRUE = "true"
VERSION_MISMATCH_YES = "yes"
[docs]class MgmtEntity(ManagedObject):
"""This is MgmtEntity class."""
consts = MgmtEntityConsts()
naming_props = set([u'id'])
mo_meta = MoMeta("MgmtEntity", "mgmtEntity", "mgmt-entity-[id]", VersionMeta.Version101e, "InputOutput", 0x3f, [], ["read-only"], [u'topSystem'], [u'faultInst', u'mgmtPmonEntry'], ["Get"])
prop_meta = {
"chassis1": MoPropertyMeta("chassis1", "chassis1", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"chassis2": MoPropertyMeta("chassis2", "chassis2", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"chassis3": MoPropertyMeta("chassis3", "chassis3", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"chassis_device_io_state1": MoPropertyMeta("chassis_device_io_state1", "chassisDeviceIoState1", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["ok", "openError", "readError", "unknown", "writeError"], []),
"chassis_device_io_state2": MoPropertyMeta("chassis_device_io_state2", "chassisDeviceIoState2", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["ok", "openError", "readError", "unknown", "writeError"], []),
"chassis_device_io_state3": MoPropertyMeta("chassis_device_io_state3", "chassisDeviceIoState3", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["ok", "openError", "readError", "unknown", "writeError"], []),
"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, [], []),
"ha_failure_reason": MoPropertyMeta("ha_failure_reason", "haFailureReason", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["DbVersionMismatch", "PeerMgmtServicesUnresponsive", "chassisConfigIncomplete", "mgmtServicesUnresponsive", "networkInterfaceDown", "nodeDown", "none", "peerChassisConfigIncomplete", "peerNodeDown"], []),
"ha_readiness": MoPropertyMeta("ha_readiness", "haReadiness", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["downgraded", "notReady", "ready", "unknown"], []),
"ha_ready": MoPropertyMeta("ha_ready", "haReady", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["false", "no", "true", "yes"], []),
"id": MoPropertyMeta("id", "id", "string", VersionMeta.Version101e, MoPropertyMeta.NAMING, 0x8, None, None, None, ["A", "B", "NONE"], []),
"leadership": MoPropertyMeta("leadership", "leadership", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["electionFailed", "electionInProgress", "inapplicable", "primary", "subordinate", "unknown"], []),
"mgmt_services_state": MoPropertyMeta("mgmt_services_state", "mgmtServicesState", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["down", "switchoverInProgress", "unknown", "unresponsive", "up"], []),
"problems": MoPropertyMeta("problems", "problems", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []),
"rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, 0x10, 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}""", [], []),
"ssh_auth_keys_csum": MoPropertyMeta("ssh_auth_keys_csum", "sshAuthKeysCsum", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"ssh_auth_keys_size": MoPropertyMeta("ssh_auth_keys_size", "sshAuthKeysSize", "ulong", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []),
"ssh_key_status": MoPropertyMeta("ssh_key_status", "sshKeyStatus", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, None, ["matched", "mismatched", "none"], ["0-4294967295"]),
"ssh_root_pub_key_csum": MoPropertyMeta("ssh_root_pub_key_csum", "sshRootPubKeyCsum", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []),
"ssh_root_pub_key_size": MoPropertyMeta("ssh_root_pub_key_size", "sshRootPubKeySize", "ulong", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []),
"state": MoPropertyMeta("state", "state", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["down", "unknown", "up"], []),
"status": MoPropertyMeta("status", "status", "string", VersionMeta.Version101e, MoPropertyMeta.READ_WRITE, 0x20, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []),
"umbilical_state": MoPropertyMeta("umbilical_state", "umbilicalState", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["degraded", "failed", "full", "unknown"], []),
"version_mismatch": MoPropertyMeta("version_mismatch", "versionMismatch", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["false", "no", "true", "yes"], []),
}
prop_map = {
"chassis1": "chassis1",
"chassis2": "chassis2",
"chassis3": "chassis3",
"chassisDeviceIoState1": "chassis_device_io_state1",
"chassisDeviceIoState2": "chassis_device_io_state2",
"chassisDeviceIoState3": "chassis_device_io_state3",
"childAction": "child_action",
"dn": "dn",
"haFailureReason": "ha_failure_reason",
"haReadiness": "ha_readiness",
"haReady": "ha_ready",
"id": "id",
"leadership": "leadership",
"mgmtServicesState": "mgmt_services_state",
"problems": "problems",
"rn": "rn",
"sacl": "sacl",
"sshAuthKeysCsum": "ssh_auth_keys_csum",
"sshAuthKeysSize": "ssh_auth_keys_size",
"sshKeyStatus": "ssh_key_status",
"sshRootPubKeyCsum": "ssh_root_pub_key_csum",
"sshRootPubKeySize": "ssh_root_pub_key_size",
"state": "state",
"status": "status",
"umbilicalState": "umbilical_state",
"versionMismatch": "version_mismatch",
}
def __init__(self, parent_mo_or_dn, id, **kwargs):
self._dirty_mask = 0
self.id = id
self.chassis1 = None
self.chassis2 = None
self.chassis3 = None
self.chassis_device_io_state1 = None
self.chassis_device_io_state2 = None
self.chassis_device_io_state3 = None
self.child_action = None
self.ha_failure_reason = None
self.ha_readiness = None
self.ha_ready = None
self.leadership = None
self.mgmt_services_state = None
self.problems = None
self.sacl = None
self.ssh_auth_keys_csum = None
self.ssh_auth_keys_size = None
self.ssh_key_status = None
self.ssh_root_pub_key_csum = None
self.ssh_root_pub_key_size = None
self.state = None
self.status = None
self.umbilical_state = None
self.version_mismatch = None
ManagedObject.__init__(self, "MgmtEntity", parent_mo_or_dn, **kwargs)