Checks the CIDR to see if it falls into any CIDRs specified via the
    ignore_routes parameter.

    This is used mostly to protect special routes to specific instances (for
    example proxies, etc.), so that the vpc-router does not clean those up.

    Only used to govern cleanup of routes, is not consulted when creating
    routes.

def _is_cidr_in_ignore_routes(cidr):
    """
    Checks the CIDR to see if it falls into any CIDRs specified via the
    ignore_routes parameter.

    This is used mostly to protect special routes to specific instances (for
    example proxies, etc.), so that the vpc-router does not clean those up.

    Only used to govern cleanup of routes, is not consulted when creating
    routes.

    """
    for ignore_cidr in CURRENT_STATE.ignore_routes:
        if is_cidr_in_cidr(cidr, ignore_cidr):
            return True
    return False