def vfc_mappings(self): """Returns a WrapperElemList of the VFCMapping objects.""" def_attrib = self.xags.FC_MAPPING.attrs es = ewrap.WrapperElemList( self._find_or_seed(_VIO_VFC_MAPPINGS, attrib=def_attrib), VFCMapping) return es
def ssh_authorized_keys(self): """Returns a list of keys. The returned tuple contains the keys as plain strings. """ return tuple(key_w.key for key_w in ewrap.WrapperElemList( self._find_or_seed(_AUTH_KEYS), AuthorizedKey))
def io_slots(self): """The physical I/O Slots. Each slot will have hardware associated with it. """ es = ewrap.WrapperElemList(self._find_or_seed(IO_SLOTS_ROOT), IOSlot) return es
def phys_vols(self): """Returns a list of the Physical Volumes that back this repo.""" # TODO(efried): parent_entry=self not needed once VIOS supports pg83 # descriptor in Events es = ewrap.WrapperElemList(self._find_or_seed(_VG_PHS_VOLS), PV, parent_entry=self) return es
def scsi_mappings(self): """Returns a WrapperElemList of the VSCSIMapping objects.""" # TODO(efried): remove parent_entry once VIOS has pg83 in Events es = ewrap.WrapperElemList( self._find_or_seed(_VIO_VSCSI_MAPPINGS, attrib=u.xag_attrs(c.XAG.VIO_SMAP)), VSCSIMapping, parent_entry=self) return es
def fc_ports(self): """The set of PhysFCPort's that are attached to this adapter. The data on this should be considered read only. """ es = ewrap.WrapperElemList(self._find_or_seed(PFC_PORTS_ROOT), PhysFCPort) return es
def trunk_adapters(self): """Returns the Trunk Adapters for the Load Group. There is either one (no redundancy/wrap balancing) or two (typically the case in a multi VIOS scenario). :return: list of TrunkAdapter objects. """ return ewrap.WrapperElemList(self.element.find(_LG_TRUNKS), TrunkAdapter)
def phys_vols(self): """Will return a list of physical volumes attached to this VIOS. This list is READ-ONLY. """ # TODO(efried): remove parent_entry once VIOS has pg83 in Events es = ewrap.WrapperElemList( self._find_or_seed(stor.PVS, attrib=u.xag_attrs(c.XAG.VIO_STOR)), stor.PV, parent_entry=self) es_list = [es_val for es_val in es] return tuple(es_list)
def back_devs(self): return ewrap.WrapperElemList(self._find_or_seed(_VNIC_BACK_DEVS), child_class=VNICBackDev, indirect=_VNICBD_CHOICE)
def physical_volumes(self): """WrapperElemList of PV wrappers.""" return ewrap.WrapperElemList(self._find_or_seed(_SSP_PVS), PV)
def vfc_mappings(self): """Returns a WrapperElemList of the VFCMapping objects.""" es = ewrap.WrapperElemList(self._find_or_seed( _VIO_VFC_MAPPINGS, attrib=u.xag_attrs(c.XAG.VIO_FMAP)), VFCMapping) return es
def optical_media(self): """Returns a list of the VirtualOpticalMedia devices in the repo.""" seed = self._find_or_seed(_VREPO_OPTICAL_MEDIA_ROOT) return ewrap.WrapperElemList(seed, VOptMedia)
def logical_units(self): """WrapperElemList of LU wrappers.""" return ewrap.WrapperElemList(self._find_or_seed(_SSP_LUS), LU)
def _convergedphysicalports(self): """Retrieve all Converged physical ports.""" elem = self._find(_SRIOV_CONVERGED_ETHERNET_PHYSICAL_PORTS) if elem is None: return None return ewrap.WrapperElemList(elem, child_class=SRIOVConvPPort)
def virtual_disks(self): """Returns a list of the Virtual Disks that are in the repo.""" es = ewrap.WrapperElemList(self._find_or_seed(_VG_VDISKS), VDisk) return es
def nodes(self): """WrapperElemList of Node wrappers.""" return ewrap.WrapperElemList(self._find_or_seed(_CL_NODES), Node)
def vmedia_repos(self): """Returns a list of wrappers.""" es = ewrap.WrapperElemList(self._find_or_seed(_VG_MEDIA_REPOS), VMediaRepos) return es
def _rocephysicalports(self): """Retrieve all RoCE adapter physical ethernet ports.""" elem = self._find(_ROCE_SRIOV_PHYSICAL_PORTS) if elem is None: return None return ewrap.WrapperElemList(elem, child_class=SRIOVRoCEPPort)
def mappings(self): return ewrap.WrapperElemList(self._find_or_seed( _BUS_ASSOC_MAPS), STDev)
def seas(self): es = ewrap.WrapperElemList(self._find_or_seed( _VIO_SEAS, attrib=u.xag_attrs(c.XAG.VIO_NET)), net.SEA) return es
def sriov_adapters(self): es = ewrap.WrapperElemList(self._find_or_seed(_ASIO_SRIOVS), child_class=card.SRIOVAdapter, indirect='IOAdapterChoice') return es
def io_slots(self): es = ewrap.WrapperElemList(self._find_or_seed(_ASIO_IOSLOTS), IOSlot) return es
def mgmt_consoles(self): """Returns a WrapperElemList of PoolMgmtConsole's.""" elem = self._find_or_seed(_MGMT_CONSOLES) return entry_wrapper.WrapperElemList(elem, PoolMgmtConsole)
def _ethernetphysicalports(self): """Retrieve all Ethernet physical ports.""" elem = self._find(_SRIOV_ETHERNET_PHYSICAL_PORTS) if elem is None: return None return ewrap.WrapperElemList(elem, child_class=SRIOVEthPPort)
def trunk_adapters(self): es = ewrap.WrapperElemList( self._find_or_seed(_VIO_TRUNK_ADPTS, attrib=u.xag_attrs(c.XAG.VIO_NET)), net.TrunkAdapter) return es
def seas(self): def_attrib = self.xags.NETWORK.attrs es = ewrap.WrapperElemList( self._find_or_seed(net.NB_SEAS, attrib=def_attrib), net.SEA) return es
def io_adpts_for_link_agg(self): es = ewrap.WrapperElemList( self._find_or_seed(_VIO_FREE_IO_ADPTS_FOR_LNAGG, attrib=u.xag_attrs(c.XAG.VIO_NET)), LinkAggrIOAdapterChoice) return es
def trunk_adapters(self): def_attrib = self.xags.NETWORK.attrs es = ewrap.WrapperElemList( self._find_or_seed(net.SEA_TRUNKS, attrib=def_attrib), net.TrunkAdapter) return es
def io_adpts_for_link_agg(self): es = ewrap.WrapperElemList( self._find_or_seed(_VIO_FREE_IO_ADPTS_FOR_LNAGG, attrib=self.xags.NETWORK.attrs), LinkAggrIOAdapterChoice) return es
def seas(self): """Returns a list of SEA wrappers.""" return ewrap.WrapperElemList(self.entry.element.find(NB_SEAS), SEA)