dell_storagecenter_driver/iscsi_utils.py
def _do_login_logout(iqn, ip, do_login):
    """Perform the iSCSI login or logout."""
    try:
        action = "-u"
        if do_login:
            action = "-l"
        _exec('iscsiadm -m node %s -T %s -p %s' %
              (action,
               iqn,
               ip))
        LOG.info('Performed %s to %s at %s', action, iqn, ip)
        return True
    except subprocess.CalledProcessError:
        LOG.info('Error logging in.')
    return False
Perform the iSCSI login or logout.
Perform the iSCSI login or logout.
Perform the iSCSI login or logout .
def _do_login_logout(iqn, ip, do_login):
    try:
        action = "-u"
        if do_login:
            action = "-l"
        _exec('iscsiadm -m node %s -T %s -p %s' %
              (action,
               iqn,
               ip))
        LOG.info('Performed %s to %s at %s', action, iqn, ip)
        return True
    except subprocess.CalledProcessError:
        LOG.info('Error logging in.')
    return False
def _do_login_logout ( iqn , ip , do_login ) : try : action = "-u" if do_login : action = "-l" _exec ( 'iscsiadm -m node %s -T %s -p %s' % ( action , iqn , ip ) ) LOG . info ( 'Performed %s to %s at %s' , action , iqn , ip ) return True except subprocess . CalledProcessError : LOG . info ( 'Error logging in.' ) return False
Perform the iSCSI login or logout.
Perform the iSCSI login or logout .
"""Perform the iSCSI login or logout."""
iqn
ip
do_login