def normalize_protocol(raw_protocol):
    """
    A function to normalize protocol names between IOS and NXOS.  For example, IOS uses 'C' and NXOS uses 'direct" for
    connected routes.  This function will return 'connected' in both cases.

    :param raw_protocol: <str> The protocol value found in the route table output
    :return: A normalized name for that type of route.
    """
    if raw_protocol[0] == 'S' or "static" in raw_protocol:
        return 'static'
    elif raw_protocol[0] == 'C' or 'direct' in raw_protocol:
        return 'connected'
    elif raw_protocol[0] == 'L' or 'local' in raw_protocol:
        return 'local'
    elif raw_protocol[0] == 'D':
        return 'eigrp'
    elif raw_protocol[0] == 'O':
        return 'ospf'
    elif raw_protocol[0] == 'B':
        return 'bgp'
    elif raw_protocol[0] == 'i':
        return 'isis'
    elif raw_protocol[0] == 'R':
        return 'rip'
    else:
        return raw_protocol