def openconfig_to_eos_af(value):
    """Translate openconfig AF name to EOS AFI name."""
    if ":" in value:
        value = value.split(":")[1]

    mapd = {
        'IPV4_UNICAST':               "ipv4",
        'IPV6_UNICAST':               "ipv6",
    }
    return mapd[value]