示例#1
0
 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
示例#2
0
    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))
示例#3
0
    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
示例#4
0
 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
示例#5
0
 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
示例#6
0
    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
示例#7
0
    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)
示例#8
0
    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)
示例#9
0
 def back_devs(self):
     return ewrap.WrapperElemList(self._find_or_seed(_VNIC_BACK_DEVS),
                                  child_class=VNICBackDev,
                                  indirect=_VNICBD_CHOICE)
示例#10
0
 def physical_volumes(self):
     """WrapperElemList of PV wrappers."""
     return ewrap.WrapperElemList(self._find_or_seed(_SSP_PVS), PV)
示例#11
0
 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
示例#12
0
 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)
示例#13
0
 def logical_units(self):
     """WrapperElemList of LU wrappers."""
     return ewrap.WrapperElemList(self._find_or_seed(_SSP_LUS), LU)
示例#14
0
 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)
示例#15
0
 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
示例#16
0
 def nodes(self):
     """WrapperElemList of Node wrappers."""
     return ewrap.WrapperElemList(self._find_or_seed(_CL_NODES), Node)
示例#17
0
 def vmedia_repos(self):
     """Returns a list of  wrappers."""
     es = ewrap.WrapperElemList(self._find_or_seed(_VG_MEDIA_REPOS),
                                VMediaRepos)
     return es
示例#18
0
 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)
示例#19
0
 def mappings(self):
     return ewrap.WrapperElemList(self._find_or_seed(
         _BUS_ASSOC_MAPS), STDev)
示例#20
0
 def seas(self):
     es = ewrap.WrapperElemList(self._find_or_seed(
         _VIO_SEAS, attrib=u.xag_attrs(c.XAG.VIO_NET)), net.SEA)
     return es
示例#21
0
 def sriov_adapters(self):
     es = ewrap.WrapperElemList(self._find_or_seed(_ASIO_SRIOVS),
                                child_class=card.SRIOVAdapter,
                                indirect='IOAdapterChoice')
     return es
示例#22
0
 def io_slots(self):
     es = ewrap.WrapperElemList(self._find_or_seed(_ASIO_IOSLOTS), IOSlot)
     return es
示例#23
0
 def mgmt_consoles(self):
     """Returns a WrapperElemList of PoolMgmtConsole's."""
     elem = self._find_or_seed(_MGMT_CONSOLES)
     return entry_wrapper.WrapperElemList(elem, PoolMgmtConsole)
示例#24
0
 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)
示例#25
0
 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
示例#26
0
 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
示例#27
0
 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
示例#28
0
 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
示例#29
0
 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
示例#30
0
 def seas(self):
     """Returns a list of SEA wrappers."""
     return ewrap.WrapperElemList(self.entry.element.find(NB_SEAS), SEA)