def get_route_table_output_interface(device,
    table, route):
    """Get route table output interface

    Args:
        device (obj): Device object
        table (str): Table name
        route (str): Route IP address
    
    Returns:
        output_interface (str)
    """

    # Example Dictionary
    # {'table_name': {'inet.3': {'active_route_count': 5001,
    #                        'destination_count': 5001,
    #                        'hidden_route_count': 0,
    #                        'holddown_route_count': 0,
    #                        'routes': {'200.0.0.0/32': {'active_tag': '*',
    #                                                    'age': '00:01:29',
    #                                                    'metric': '1',
    #                                                    'next_hop': {'next_hop_list': {1: {'best_route': '>',
    #                                                                                       'mpls_label': 'Push '
    #                                                                                                     '574',
    #                                                                                       'to': '106.187.14.121',
    #                                                                                       'via': 'ge-0/0/1.0'}}},
    #                                                    'preference': '9',
    #                                                    'protocol_name': 'LDP'}},
    #                        'total_route_count': 5001}}}

    out = device.parse('show route table {table} {route}'.format(
        table=table,
        route=route
    ))


    output_interface = out.q.contains('.*{route}.*'.format(route=route),
        regex=True).get_values('via', 0)

    if not output_interface:
        return None

    return output_interface