dell_storagecenter_driver/iscsi_utils.py
def _manage_session(ip_addr, port, do_login=True):
    """Manage iSCSI sessions for all ports in a portal."""
    if ip_addr == '0.0.0.0':
        return
    output = _exec('iscsiadm -m discovery -t st -p %s %s' %
                   (ip_addr, port))
    lines = output.split('\n')
    for line in lines:
        if ':' not in line:
            continue
        target = line.split(' ')
        iqn = target[1]
        ip = target[0].split(',')[0]
        _do_login_logout(iqn, ip, do_login)
Manage iSCSI sessions for all ports in a portal.
Manage iSCSI sessions for all ports in a portal.
Manage iSCSI sessions for all ports in a portal .
def _manage_session(ip_addr, port, do_login=True):
    if ip_addr == '0.0.0.0':
        return
    output = _exec('iscsiadm -m discovery -t st -p %s %s' %
                   (ip_addr, port))
    lines = output.split('\n')
    for line in lines:
        if ':' not in line:
            continue
        target = line.split(' ')
        iqn = target[1]
        ip = target[0].split(',')[0]
        _do_login_logout(iqn, ip, do_login)
def _manage_session ( ip_addr , port , do_login = True ) : if ip_addr == '0.0.0.0' : return output = _exec ( 'iscsiadm -m discovery -t st -p %s %s' % ( ip_addr , port ) ) lines = output . split ( '\n' ) for line in lines : if ':' not in line : continue target = line . split ( ' ' ) iqn = target [ 1 ] ip = target [ 0 ] . split ( ',' ) [ 0 ] _do_login_logout ( iqn , ip , do_login )
Manage iSCSI sessions for all ports in a portal.
Manage iSCSI sessions for all ports in a portal .
"""Manage iSCSI sessions for all ports in a portal."""
ip_addr
port
do_login