@property
def base_asn(self):
    base_asn = mf['base_asn']
    group_asn = ((k, v) for (k, v) in base_asn.items())
    for group_asn in itertools.combinations(group_asn, 2):
        (g1, g2) = group_asn
        if (g1[1] == g2[1]):
            msg = "duplicate AS: {}\nRefer to the errors below and check the 'master.yml' file.\n{}"
            x = {item[0]: item[1] for item in group_asn}
            raise AnsibleError(msg.format(g1[1], filter.yaml_format({'base_asn': x})))
    for (k, _) in base_asn.items():
        if (k not in inventory.group_names()):
            raise AnsibleError('Group not found: {}'.format(k))
    return base_asn
@property
def base_asn(self):
    base_asn = mf['base_asn']
    group_asn = ((k, v) for (k, v) in base_asn.items())
    for group_asn in itertools.combinations(group_asn, 2):
        (g1, g2) = group_asn
        if (g1[1] == g2[1]):
            msg = "duplicate AS: {}\nRefer to the errors below and check the 'master.yml' file.\n{}"
            x = {item[0]: item[1] for item in group_asn}
            raise AnsibleError(msg.format(g1[1], filter.yaml_format({'base_asn': x})))
    for (k, _) in base_asn.items():
        if (k not in inventory.group_names()):
            raise AnsibleError('Group not found: {}'.format(k))
    return base_asn