'Send requests to server.
If fail, try another RestURL.'

@utils.synchronized('huawei_cinder_call')
def call(self, url, data=None, method=None, log_filter_flag=False):

    device_id = None
    old_url = self.url
    result = self.do_call(url, data, method, log_filter_flag=log_filter_flag)
    error_code = result['error']['code']
    if ((error_code == constants.ERROR_CONNECT_TO_SERVER) or (error_code == constants.ERROR_UNAUTHORIZED_TO_SERVER)):
        LOG.error("Can't    open    the    recent    url,    relogin.")
        device_id = self.login()
    if (device_id is not None):
        LOG.debug('Replace    URL:    \nOld    URL:    %(old_url)s\n,New    URL:    %(new_url)s\n.', {'old_url': old_url, 'new_url': self.url})
        result = self.do_call(url, data, method, log_filter_flag=log_filter_flag)
        if (result['error']['code'] in constants.RELOGIN_ERROR_PASS):
            result['error']['code'] = 0
    return result
