def policy_name_as_regex(policy_name):
    'Get the correct policy name as a regex\n    (e.g. OOF_HAS_vCPE.cloudAttributePolicy ends up in policy as OOF_HAS_vCPE.Config_MS_cloudAttributePolicy.1.xml\n    So, for now, we query it as OOF_HAS_vCPE..*aicAttributePolicy.*)\n    :param policy_name: Example: OOF_HAS_vCPE.aicAttributePolicy\n    :return: regexp for policy: Example: OOF_HAS_vCPE..*aicAttributePolicy.*\n    '
    p = policy_name.partition('.')
    return ((((p[0] + p[1]) + '.*') + p[2]) + '.*')
Get the correct policy name as a regex
(e.g. OOF_HAS_vCPE.cloudAttributePolicy ends up in policy as OOF_HAS_vCPE.Config_MS_cloudAttributePolicy.1.xml
So, for now, we query it as OOF_HAS_vCPE..*aicAttributePolicy.*)
:param policy_name: Example: OOF_HAS_vCPE.aicAttributePolicy
:return: regexp for policy: Example: OOF_HAS_vCPE..*aicAttributePolicy.*
def policy_name_as_regex(policy_name):
    'Get the correct policy name as a regex\n    (e.g. OOF_HAS_vCPE.cloudAttributePolicy ends up in policy as OOF_HAS_vCPE.Config_MS_cloudAttributePolicy.1.xml\n    So, for now, we query it as OOF_HAS_vCPE..*aicAttributePolicy.*)\n    :param policy_name: Example: OOF_HAS_vCPE.aicAttributePolicy\n    :return: regexp for policy: Example: OOF_HAS_vCPE..*aicAttributePolicy.*\n    '
    p = policy_name.partition('.')
    return ((((p[0] + p[1]) + '.*') + p[2]) + '.*')