Esempio n. 1
0
 def list_LogicalPartition(self, ip, uuid, session_id):
     """
     returns the list of available logicalpartition objects
      Args:
        ip : ip address of HMC
        uuid : UUID of the Logical Partition
        session_id : session to be used
     """
     log_object.log_debug("list of Lpar started")
     listing_object = ListModule.ListModule()
     object_list = listing_object.listing("uom",ip,self.root,self.content_type,"LogicalPartition",session_id,uuid)
     log_object.log_debug("Returns Logical Partition objects to the main module")
     return object_list
Esempio n. 2
0
 def list_cluster(self, ip, x_api_session):
     """
     returns the List of available Cluster objects
     Args:
        ip : ip address of HMC
        x_api_session : session to be used
     """
     log.log_debug("cluster object list is started")
     list_object = ListModule.ListModule()
     object_list = list_object.listing("uom", ip, self.root,
                                       self.content_type, "Cluster",
                                       x_api_session)
     log.log_debug("cluster object list is returned")
     return object_list
 def list_volumegroup(self, ip, virtualioserver_id, x_api_session):
     """
     returns a list of volume group objects available in the given virtualioserver
     Args:
         ip : ip address of HMC
         virtualioserver_id : UUID of VirtualIOServer on which VolumeGroups are to be listed
         x_api_session : session to be used
     """
     log.log_debug("List of Volume Group started")
     list_object = ListModule.ListModule()
     volumegroup_list = list_object.listing("uom", ip, self.root,
                                            self.content_type,
                                            "VolumeGroup", x_api_session,
                                            virtualioserver_id)
     log.log_debug("List of Volume Group returned")
     return volumegroup_list
 def list_shared_storagepool(self, ip, cluster_id, x_api_session):
     """
     returns a  shared storage pool object of a given cluster
     Args:
        ip : ip address of HMC
        cluster_id : the UUID Of the Cluster to get ssp
        x_api_session : session to be used
     """
     log.log_debug("ssp object of a cluster is started")
     list_object = ListModule.ListModule()
     ssp_object_list = list_object.listing("uom", ip, self.root,
                                           self.content_type,
                                           "SharedStoragePool",
                                           x_api_session, cluster_id)
     log.log_debug("ssp object of a cluster is returned")
     return ssp_object_list
Esempio n. 5
0
 def list_virtualfibrechannel_clientadapter(self, ip, logicalpartition_id, x_api_session):
     """
     returns the list of virtual fibre channel adapter available in the
     client partition
     Args:
        ip : ip address of HMC
        logicalpartition_id : UUID of the Logical Partition
        x_api_session : session to be used
     """
     log.log_debug("fc adarpter object list is started")
     list_object = ListModule.ListModule()
     object_list = list_object.listing("uom", ip, self.root, self.content_type,
                         "VirtualFibreChannelClientAdapter", x_api_session,
                         logicalpartition_id)
     log.log_debug("fc adarpter object list is returned")
     return object_list
Esempio n. 6
0
 def list_ManagedSystem(self, ip, session_id):
     """
        collects the xml content of the managed system and
        returns a reference to it
     Args:
         ip : ip address of HMC
         session_id : session to be used
     """
     log_object.log_debug("List of ManagedSystem started")
     listing_object = ListModule.ListModule()
     #call to get the xml content of managed system #
     self.object_list = listing_object.listing("uom", ip, "ManagedSystem",
                                               self.content_type,
                                               "ManagedSystem", session_id)
     log_object.log_debug("Returns ManagedSystem objects to"
                          "the main module")
     return self.object_list
 def list_sriov_logical_port(self, ip, logicalpartition_uuid,
                             x_api_session):
     """
     returns a list of SRIOV Ethernet Logical Ports
     Args:
         ip : ip address of HMC
         logicalpartition_uuid : UUID of the Logical Partition
         x_api_session : session to be used
     """
     log.log_debug("list of SRIOVLogical Ports started")
     list_object = ListModule.ListModule()
     object_list = list_object.listing("uom", ip, self.root,
                                       self.content_type,
                                       "SRIOVEthernetLogicalPort",
                                       x_api_session, logicalpartition_uuid)
     log.log_debug("list of SRIOVLogical Ports returned")
     return object_list
    def list_VirtualNetwork(self, ip, managedsystem_uuid, session_id):
        """
        Accessed with ListVirtualNetwork object
        Args:
              ip:ip address of the hmc
              uuid:LogicalPartition uuid
              session_id:x-api-session id
        Returns:
              object_list containing the list of available virtual network Objects
        """

        listing_object = ListModule.ListModule()
        object_list = listing_object.listing("uom", ip, self.root,
                                             self.content_type,
                                             "VirtualNetwork", session_id,
                                             managedsystem_uuid)
        HMCClientLogger_object.log_debug("Returns VirtualNetwork" +
                                         "objects to the main module")
        return object_list
 def list_LogicalPartitionProfile(self,ip,uuid,session_id):
     """
     Accessed with ListLogicalPartitionProfile object
     Args:
           ip:ip address of the hmc
           uuid:vios uuid
           session_id:session to access the vios
     Returns:
           object_list containing the list of available LogicalPartitionProfile Objects
     """
     log_object.log_debug("List of Logical Partition Profile Started")
     listing_object = ListModule.ListModule()
     object_list = listing_object.listing("uom", ip,
                                               self.root,
                                               self.content_type, "LogicalPartitionProfile",
                                               session_id, uuid)
     log_object.log_debug("Returns Logical Partition Profile" +
                               "objects to the main module")
     return object_list
Esempio n. 10
0
    def list_networkbridge_attributes(self, ip, managedsystem_uuid,
                                      session_id):
        """
        Accessed with NetworkBridge object
        Args:
              ip:ip address of the hmc
              uuid:HMCClientLoggericalPartition uuid
              session_id:session to access the HMCClientLoggericalPartition
        Returns:
              object_list containing the list of available HMCClientLoggericalPartition Objects
        """

        listing_object = ListModule.ListModule()
        object_list = listing_object.listing("uom", ip, self.root,
                                             self.content_type,
                                             "NetworkBridge", session_id,
                                             managedsystem_uuid)

        return object_list
    def list_clientnetwork_adapter(self, ip, logicalpartition_id,
                                   x_api_session):
        """
        returns a list client network adapters available in the given logical partition
        Args:
          ip : ip address of HMC
          logicalpartition_object : object of Logical Partition in which client Network Adapter
                                    is to be created
          x_api_session : session to be used
        """
        log.log_debug("client network adapter object list is started")
        list_object_list = ListModule.ListModule()
        object_list = list_object_list.listing("uom", ip, self.root,
                                               self.content_type,
                                               "ClientNetworkAdapter",
                                               x_api_session,
                                               logicalpartition_id)
        log.log_debug("client network adapter object list is returned")

        return object_list
Esempio n. 12
0
 def list_VirtualIOServer(self, ip, uuid, session_id):
     """
     Accessed with VirtualIOServer object
     Args:
           ip:ip address of the hmc
           uuid:ManagedSystem uuid
           session_id:session to access the VirtualIOServer
     Returns:
           object_list containing the list of available
           VirtualIOServer Objects
     """
     log_object.log_debug("List of VIOS started")
     listing_object = ListModule.ListModule()
     object_list = listing_object.listing("uom", ip,
                                          "ManagedSystem",
                                          self.content_type,
                                          "VirtualIOServer",
                                          session_id, uuid)
     log_object.log_debug("Returns VirtualIOServer objects" +
                          "to the main module")
     return object_list