dell_storagecenter_driver/dell_storagecenter_api.py
def find_server(self, wwnoriscsiname):
        """Hunts for a server on the Dell backend by instance_name.

        The instance_name is the same as the server's HBA.  This is the  IQN or
        WWN listed in the connector.  If found, the server the HBA is attached
        to, if any, is returned.

        :param instance_name: instance_name is a FC WWN or iSCSI IQN from
                              the connector.  In cinder a server is identified
                              by its HBA.
        :returns: Dell server object or None.
        """
        scserver = None
        # We search for our server by first finding our HBA
        hba = self._find_serverhba(wwnoriscsiname)
        # Once created hbas stay in the system.  So it isn't enough
        # that we found one it actually has to be attached to a
        # server.
        if hba is not None and hba.get('server') is not None:
            pf = self._get_payload_filter()
            pf.append('scSerialNumber', self.ssn)
            pf.append('instanceId', self._get_id(hba['server']))
            r = self.client.post('StorageCenter/ScServer/GetList',
                                 pf.payload)
            if self._check_result(r):
                scserver = self._first_result(r)
        if scserver is None:
            LOG.debug('Server (%s) not found.', wwnoriscsiname)
        return scserver
Hunts for a server on the Dell backend by instance_name.

        The instance_name is the same as the server's HBA.  This is the  IQN or
        WWN listed in the connector.  If found, the server the HBA is attached
        to, if any, is returned.

        :param instance_name: instance_name is a FC WWN or iSCSI IQN from
                              the connector.  In cinder a server is identified
                              by its HBA.
        :returns: Dell server object or None.
        
Hunts for a server on the Dell backend by instance_name.
The instance_name is the same as the server's HBA.  This is the  IQN or
WWN listed in the connector.  If found, the server the HBA is attached
to, if any, is returned.
Hunts for a server on the Dell backend by instance_name . The instance_name is the same as the server ' s HBA . This is the IQN or WWN listed in the connector . If found the server the HBA is attached to if any is returned .
def find_server(self, wwnoriscsiname):
        scserver = None
        hba = self._find_serverhba(wwnoriscsiname)
        if hba is not None and hba.get('server') is not None:
            pf = self._get_payload_filter()
            pf.append('scSerialNumber', self.ssn)
            pf.append('instanceId', self._get_id(hba['server']))
            r = self.client.post('StorageCenter/ScServer/GetList',
                                 pf.payload)
            if self._check_result(r):
                scserver = self._first_result(r)
        if scserver is None:
            LOG.debug('Server (%s) not found.', wwnoriscsiname)
        return scserver
def find_server ( self , wwnoriscsiname ) : scserver = None hba = self . _find_serverhba ( wwnoriscsiname ) if hba is not None and hba . get ( 'server' ) is not None : pf = self . _get_payload_filter ( ) pf . append ( 'scSerialNumber' , self . ssn ) pf . append ( 'instanceId' , self . _get_id ( hba [ 'server' ] ) ) r = self . client . post ( 'StorageCenter/ScServer/GetList' , pf . payload ) if self . _check_result ( r ) : scserver = self . _first_result ( r ) if scserver is None : LOG . debug ( 'Server (%s) not found.' , wwnoriscsiname ) return scserver
Hunts for a server on the Dell backend by instance_name.
Hunts for a server on the Dell backend by instance_name .
"""Hunts for a server on the Dell backend by instance_name.

        The instance_name is the same as the server's HBA.  This is the  IQN or
        WWN listed in the connector.  If found, the server the HBA is attached
        to, if any, is returned.

        :param instance_name: instance_name is a FC WWN or iSCSI IQN from
                              the connector.  In cinder a server is identified
                              by its HBA.
        :returns: Dell server object or None.
        """ # We search for our server by first finding our HBA # Once created hbas stay in the system.  So it isn't enough # that we found one it actually has to be attached to a # server.
Dell server object or None.
Dell server object or None .
self
wwnoriscsiname
instance_name
instance_name is a FC WWN or iSCSI IQN from
the connector.  In cinder a server is identified
by its HBA.
instance_name is a FC WWN or iSCSI IQN from the connector . In cinder a server is identified by its HBA .