'Get the network to be used in testing
:param credentials_type: The type of credentials for which to get the
tenant network
:return: network dict including \'id\' and \'name\''

@classmethod
def get_tenant_network(cls, credentials_type='primary'):

    if isinstance(credentials_type, six.string_types):
        manager = cls.get_client_manager(credential_type=credentials_type)
    elif isinstance(credentials_type, list):
        manager = cls.get_client_manager(roles=credentials_type[1:])
    else:
        manager = cls.get_client_manager()
    networks_client = manager.compute_networks_client
    cred_provider = cls._get_credentials_provider()
    if ((not CONF.service_available.neutron) and credentials.is_admin_available(identity_version=cls.get_identity_version())):
        admin_creds = cred_provider.get_admin_creds()
        admin_manager = clients.Manager(admin_creds.credentials)
        networks_client = admin_manager.compute_networks_client
    return fixed_network.get_tenant_network(cred_provider, networks_client, CONF.compute.fixed_network_name)
