def index_of_matching_route(route_spec, routes_to_match):
    for (i, route) in enumerate(routes_to_match):
        if route_spec_matches_route(route_spec, route):
            return ('exact', i)
        elif route_spec_matches_route_cidr(route_spec, route):
            return ('replace', i)
5b672da565d71a8be9bd0b10a711de3f8ab4716b
<mask token>

def index_of_matching_route(route_spec, routes_to_match):
    for i, route in enumerate(routes_to_match):
        if route_spec_matches_route(route_spec, route):
            return 'exact', i
        elif route_spec_matches_route_cidr(route_spec, route):
            return 'replace', i

def index_of_matching_route(route_spec, routes_to_match):
    for (i, route) in enumerate(routes_to_match):
        if route_spec_matches_route(route_spec, route):
            return ('exact', i)
        elif route_spec_matches_route_cidr(route_spec, route):
            return ('replace', i)