def get_iscsi_initiator_info(self):
        """Give iSCSI initiator information of iLO.

        :returns: iSCSI initiator information.
        :raises: IloError, on an error from iLO.
        :raises: IloCommandNotSupportedError, if the system is
                 in the bios boot mode.
        """
        headers, bios_uri, bios_settings = self._check_bios_resource()
        if('links' in bios_settings and 'iScsi' in bios_settings['links']):
            iscsi_uri = bios_settings['links']['iScsi']['href']
            status, headers, iscsi_settings = self._rest_get(iscsi_uri)

            if status != 200:
                msg = self._get_extended_error(iscsi_settings)
                raise exception.IloError(msg)
            return iscsi_settings['iSCSIInitiatorName']
        else:
            msg = ('"links/iScsi" section in bios '
                   'does not exist')
            raise exception.IloCommandNotSupportedError(msg)
def get_iscsi_initiator_info ( self ) : headers , bios_uri , bios_settings = self . _check_bios_resource ( ) if ( 'links' in bios_settings and 'iScsi' in bios_settings [ 'links' ] ) : iscsi_uri = bios_settings [ 'links' ] [ 'iScsi' ] [ 'href' ] status , headers , iscsi_settings = self . _rest_get ( iscsi_uri ) if status != 200 : msg = self . _get_extended_error ( iscsi_settings ) raise exception . IloError ( msg ) return iscsi_settings [ 'iSCSIInitiatorName' ] else : msg = ( '"links/iScsi" section in bios ' 'does not exist' ) raise exception . IloCommandNotSupportedError ( msg )
Give iSCSI initiator information of iLO.

        :returns: iSCSI initiator information.
        :raises: IloError, on an error from iLO.
        :raises: IloCommandNotSupportedError, if the system is
                 in the bios boot mode.