'Find sid, cid for existing iscsi target'

def _find_sid_cid_for_target(self, tid, name, vol_id):

    try:
        with open(self.iet_sessions, 'r') as f:
            sessions = f.read()
    except Exception as e:
        LOG.info('Failed    to    open    iet    session    list    for    %(vol_id)s:    %(e)s', {'vol_id': vol_id, 'e': e})
        return None
    session_list = re.split('^tid:(?m)', sessions)[1:]
    for ses in session_list:
        m = re.match('(\\d+)    name:(\\S+)\\s+sid:(\\d+).+\\s+cid:(\\d+)', ses)
        if (m and (tid in m.group(1)) and (name in m.group(2))):
            return (m.group(3), m.group(4))
