dell_storagecenter_driver/dell_storagecenter_api.py
def _add_hba(self, scserver, wwnoriscsiname, isfc=False):
        """This adds a server HBA to the Dell server object.

        The HBA is taken from the connector provided in initialize_connection.
        The Dell server object is largely a container object for the list of
        HBAs associated with a single server (or vm or cluster) for the
        purposes of mapping volumes.

        :param scserver: Dell server object.
        :param wwnoriscsiname: The WWN or IQN to add to this server.
        :param isfc: Boolean indicating whether this is an FC HBA or not.
        :returns: Boolean indicating success or failure.
        """
        payload = {}
        if isfc is True:
            payload['HbaPortType'] = 'FibreChannel'
        else:
            payload['HbaPortType'] = 'Iscsi'
        payload['WwnOrIscsiName'] = wwnoriscsiname
        payload['AllowManual'] = True
        r = self.client.post('StorageCenter/ScPhysicalServer/%s/AddHba'
                             % self._get_id(scserver),
                             payload)
        if not self._check_result(r):
            LOG.error('AddHba error: '
                      '%(wwn)s to %(srvname)s : %(code)d %(reason)s',
                      {'wwn': wwnoriscsiname,
                       'srvname': scserver['name'],
                       'code': r.status_code,
                       'reason': r.reason})
            return False
        return True
This adds a server HBA to the Dell server object.

        The HBA is taken from the connector provided in initialize_connection.
        The Dell server object is largely a container object for the list of
        HBAs associated with a single server (or vm or cluster) for the
        purposes of mapping volumes.

        :param scserver: Dell server object.
        :param wwnoriscsiname: The WWN or IQN to add to this server.
        :param isfc: Boolean indicating whether this is an FC HBA or not.
        :returns: Boolean indicating success or failure.
        
This adds a server HBA to the Dell server object.
The HBA is taken from the connector provided in initialize_connection.
The Dell server object is largely a container object for the list of
HBAs associated with a single server (or vm or cluster) for the
purposes of mapping volumes.
This adds a server HBA to the Dell server object . The HBA is taken from the connector provided in initialize_connection . The Dell server object is largely a container object for the list of HBAs associated with a single server ( or vm or cluster ) for the purposes of mapping volumes .
def _add_hba(self, scserver, wwnoriscsiname, isfc=False):
        payload = {}
        if isfc is True:
            payload['HbaPortType'] = 'FibreChannel'
        else:
            payload['HbaPortType'] = 'Iscsi'
        payload['WwnOrIscsiName'] = wwnoriscsiname
        payload['AllowManual'] = True
        r = self.client.post('StorageCenter/ScPhysicalServer/%s/AddHba'
                             % self._get_id(scserver),
                             payload)
        if not self._check_result(r):
            LOG.error('AddHba error: '
                      '%(wwn)s to %(srvname)s : %(code)d %(reason)s',
                      {'wwn': wwnoriscsiname,
                       'srvname': scserver['name'],
                       'code': r.status_code,
                       'reason': r.reason})
            return False
        return True
def _add_hba ( self , scserver , wwnoriscsiname , isfc = False ) : payload = { } if isfc is True : payload [ 'HbaPortType' ] = 'FibreChannel' else : payload [ 'HbaPortType' ] = 'Iscsi' payload [ 'WwnOrIscsiName' ] = wwnoriscsiname payload [ 'AllowManual' ] = True r = self . client . post ( 'StorageCenter/ScPhysicalServer/%s/AddHba' % self . _get_id ( scserver ) , payload ) if not self . _check_result ( r ) : LOG . error ( 'AddHba error: ' '%(wwn)s to %(srvname)s : %(code)d %(reason)s' , { 'wwn' : wwnoriscsiname , 'srvname' : scserver [ 'name' ] , 'code' : r . status_code , 'reason' : r . reason } ) return False return True
This adds a server HBA to the Dell server object.
This adds a server HBA to the Dell server object .
"""This adds a server HBA to the Dell server object.

        The HBA is taken from the connector provided in initialize_connection.
        The Dell server object is largely a container object for the list of
        HBAs associated with a single server (or vm or cluster) for the
        purposes of mapping volumes.

        :param scserver: Dell server object.
        :param wwnoriscsiname: The WWN or IQN to add to this server.
        :param isfc: Boolean indicating whether this is an FC HBA or not.
        :returns: Boolean indicating success or failure.
        """
Boolean indicating success or failure.
Boolean indicating success or failure .
self
scserver
Dell server object.
Dell server object .
wwnoriscsiname
The WWN or IQN to add to this server.
The WWN or IQN to add to this server .
isfc
Boolean indicating whether this is an FC HBA or not.
Boolean indicating whether this is an FC HBA or not .