

def delete_vpn_connection_route(context, vpn_connection_id, destination_cidr_block):
    vpn_connection = ec2utils.get_db_item(context, vpn_connection_id)
    if (destination_cidr_block not in vpn_connection['cidrs']):
        raise exception.InvalidRouteNotFound((_('The specified route %(destination_cidr_block)s does not exist') % {
            'destination_cidr_block': destination_cidr_block,
        }))
    neutron = clients.neutron(context)
    vpn_gateway = db_api.get_item_by_id(context, vpn_connection['vpn_gateway_id'])
    with common.OnCrashCleaner() as cleaner:
        _remove_cidr_from_vpn_connection_item(context, vpn_connection, destination_cidr_block)
        cleaner.addCleanup(_add_cidr_to_vpn_connection_item, context, vpn_connection, destination_cidr_block)
        _reset_vpn_connections(context, neutron, cleaner, vpn_gateway, vpn_connections=[vpn_connection])
    return True

dataset/ETHPy150Open openstack/ec2-api/ec2api/api/vpn_connection.py delete_vpn_connection_route/original