@classmethod
def _check_depends_on_nova_network(cls):
    if (not getattr(cls, 'depends_on_nova_network', False)):
        return
    versions = cls.versions_client.list_versions()['versions']
    for version in versions:
        if (version['id'] == 'v2.1'):
            max_version = api_version_request.APIVersionRequest(version['version'])
            break
    else:
        LOG.warning('Unable to determine max v2.1 compute API version: %s', versions)
        return
    queens = api_version_request.APIVersionRequest('2.60')
    if (max_version > queens):
        raise cls.skipException('nova-network is gone')
@classmethod
def _check_depends_on_nova_network(cls):
    if (not getattr(cls, 'depends_on_nova_network', False)):
        return
    versions = cls.versions_client.list_versions()['versions']
    for version in versions:
        if (version['id'] == 'v2.1'):
            max_version = api_version_request.APIVersionRequest(version['version'])
            break
    else:
        LOG.warning('Unable to determine max v2.1 compute API version: %s', versions)
        return
    queens = api_version_request.APIVersionRequest('2.60')
    if (max_version > queens):
        raise cls.skipException('nova-network is gone')