'Get the Policies for a datacenter by calling the CLC API.
:param p: datacenter to get policies from
:return: policies in the datacenter'

def _get_policies_for_datacenter(self, p):

    response = {}
    policies = self.clc.v2.AntiAffinity.GetAll(location=p['location'])
    for policy in policies:
        response[policy.name] = policy
    return response
