def _is_valid(host_dict, filters):
    """Validates host.

    Args:
        host_dict (dict): Host
        filters (dict): Dict of re.match filters.

    Returns:
        bool: True if host is valid
    """
    for key, match in filters.items():
        if not match(host_dict[key]):
            return False
    return True