Source code for ucsmsdk.mometa.fabric.FabricPath

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

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


[docs]class FabricPathConsts: C_TYPE_MUX = "mux" C_TYPE_MUX_ACCESS = "mux-access" C_TYPE_MUX_FABRIC = "mux-fabric" C_TYPE_MUX_FABRICPC = "mux-fabricpc" C_TYPE_MUX_FABRICPC_TO_CHPC = "mux-fabricpc-to-chpc" C_TYPE_MUX_FABRICPC_TO_HOSTPC = "mux-fabricpc-to-hostpc" C_TYPE_MUX_FABRICPC_TO_HOSTPORT = "mux-fabricpc-to-hostport" C_TYPE_MUX_FABRICPORT_TO_HOSTPC = "mux-fabricport-to-hostpc" C_TYPE_MUX_HOSTPC_TO_ADAPTORPC = "mux-hostpc-to-adaptorpc" C_TYPE_MUX_TO_APPLIANCE = "mux-to-appliance" C_TYPE_MUX_TO_CHASSIS = "mux-to-chassis" C_TYPE_MUX_TO_HOST = "mux-to-host" C_TYPE_SWITCH_ACCESS = "switch-access" C_TYPE_SWITCH_FABRIC = "switch-fabric" C_TYPE_SWITCH_FABRICPC = "switch-fabricpc" C_TYPE_SWITCH_TO_HOST = "switch-to-host" C_TYPE_SWITCH_TO_MUX = "switch-to-mux" C_TYPE_SWITCHPC_TO_HOSTPC = "switchpc-to-hostpc" CHASSIS_ID_N_A = "N/A" ENACP_CONSOLIDATED = "consolidated" ENACP_VIRTUAL = "virtual" ENACP_VIRTUAL_CE = "virtual-ce" SIDE_LEFT = "left" SIDE_RIGHT = "right" SWITCH_ID_A = "A" SWITCH_ID_B = "B" SWITCH_ID_NONE = "NONE"
[docs]class FabricPath(ManagedObject): """This is FabricPath class.""" consts = FabricPathConsts() naming_props = set([u'id']) mo_meta = MoMeta("FabricPath", "fabricPath", "path-[id]", VersionMeta.Version101e, "InputOutput", 0x7f, [], ["read-only"], [u'fabricLocale'], [u'dcxVc', u'fabricPathConn', u'fabricPathEp'], ["Get"]) prop_meta = { "c_type": MoPropertyMeta("c_type", "cType", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["mux", "mux-access", "mux-fabric", "mux-fabricpc", "mux-fabricpc-to-chpc", "mux-fabricpc-to-hostpc", "mux-fabricpc-to-hostport", "mux-fabricport-to-hostpc", "mux-hostpc-to-adaptorpc", "mux-to-appliance", "mux-to-chassis", "mux-to-host", "switch-access", "switch-fabric", "switch-fabricpc", "switch-to-host", "switch-to-mux", "switchpc-to-hostpc"], ["0-4294967295"]), "chassis_id": MoPropertyMeta("chassis_id", "chassisId", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["N/A"], ["0-255"]), "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, [], []), "enacp": MoPropertyMeta("enacp", "enacp", "string", VersionMeta.Version111j, MoPropertyMeta.READ_ONLY, None, None, None, None, ["consolidated", "virtual", "virtual-ce"], ["0-4294967295"]), "id": MoPropertyMeta("id", "id", "byte", VersionMeta.Version101e, MoPropertyMeta.NAMING, 0x8, None, None, None, [], []), "locale": MoPropertyMeta("locale", "locale", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, r"""((defaultValue|unknown|server|chassis|internal|external),){0,5}(defaultValue|unknown|server|chassis|internal|external){0,1}""", [], []), "name": MoPropertyMeta("name", "name", "string", VersionMeta.Version101e, MoPropertyMeta.READ_WRITE, 0x10, None, None, r"""[\-\.:_a-zA-Z0-9]{0,16}""", [], []), "ns_size": MoPropertyMeta("ns_size", "nsSize", "ushort", VersionMeta.Version111j, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []), "retimer_hif_port_list": MoPropertyMeta("retimer_hif_port_list", "retimerHifPortList", "string", VersionMeta.Version311e, MoPropertyMeta.READ_ONLY, None, 0, 510, None, [], []), "rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, 0x20, 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}""", [], []), "side": MoPropertyMeta("side", "side", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["left", "right"], []), "status": MoPropertyMeta("status", "status", "string", VersionMeta.Version101e, MoPropertyMeta.READ_WRITE, 0x40, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []), "switch_id": MoPropertyMeta("switch_id", "switchId", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, None, ["A", "B", "NONE"], []), "transport": MoPropertyMeta("transport", "transport", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, r"""((defaultValue|unknown|ether|dce|fc),){0,4}(defaultValue|unknown|ether|dce|fc){0,1}""", [], []), "type": MoPropertyMeta("type", "type", "string", VersionMeta.Version101e, MoPropertyMeta.READ_ONLY, None, None, None, r"""((defaultValue|unknown|lan|san|ipc),){0,4}(defaultValue|unknown|lan|san|ipc){0,1}""", [], []), } prop_map = { "cType": "c_type", "chassisId": "chassis_id", "childAction": "child_action", "dn": "dn", "enacp": "enacp", "id": "id", "locale": "locale", "name": "name", "nsSize": "ns_size", "retimerHifPortList": "retimer_hif_port_list", "rn": "rn", "sacl": "sacl", "side": "side", "status": "status", "switchId": "switch_id", "transport": "transport", "type": "type", } def __init__(self, parent_mo_or_dn, id, **kwargs): self._dirty_mask = 0 self.id = id self.c_type = None self.chassis_id = None self.child_action = None self.enacp = None self.locale = None self.name = None self.ns_size = None self.retimer_hif_port_list = None self.sacl = None self.side = None self.status = None self.switch_id = None self.transport = None self.type = None ManagedObject.__init__(self, "FabricPath", parent_mo_or_dn, **kwargs)