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

    mapd = {
        'IPV4_UNICAST':               "ipv4 unicast",
        'IPV6_UNICAST':               "ipv6 unicast",
        'IPV4_LABELED_UNICAST':       "ipv4 unicast",
        'IPV6_LABELED_UNICAST':       "ipv6 unicast",
        'L3VPN_IPV4_UNICAST':         "vpnv4",
        'L3VPN_IPV6_UNICAST':         "vpnv6",
    }
    return mapd[value]