'Get connection parameters.
returns a tuple containing address list, user, password,
according to backend_id'

def _get_connection_params(self, backend_id=strings.PRIMARY_BACKEND_ID):

    if ((not backend_id) or (backend_id == strings.PRIMARY_BACKEND_ID)):
        if self._get_management_ips():
            address = [e.strip('    ') for e in self.storage_info[storage.FLAG_KEYS['management_ips']].split(',')]
        else:
            address = self.storage_info[storage.FLAG_KEYS['address']]
        user = self.storage_info[storage.FLAG_KEYS['user']]
        password = self.storage_info[storage.FLAG_KEYS['password']]
    else:
        params = self._get_target_params(backend_id)
        if (not params):
            msg = (_("Missing    target    information    for    target    '%(target)s'"), {'target': backend_id})
            LOG.error(msg)
            raise self.meta['exception'].VolumeBackendAPIException(data=msg)
        if params.get('management_ips', None):
            address = [e.strip('    ') for e in params['management_ips'].split(',')]
        else:
            address = params['san_ip']
        user = params['san_login']
        password = params['san_password']
    return (address, user, password)
