def gen_node_name_filter(node_names):
    """Generates a drydock compatible node filter using only node names

    :param node_names: the nodes with which to create a filter
    """
    return {
        'filter_set_type': 'union',
        'filter_set': [
            {
                'filter_type': 'union',
                'node_names': node_names
            }
        ]
    }