@staticmethod
def _should_config(node_name, dst_node_name, configuration):
    """Syntax sugar for configuration entries that accept lists/booleans.

        :param node_name: node name
        :param dst_node_name: destination node to which configuration should be propagated
        :param configuration: configuration that should be checked
        :return: true if node_name satisfies configuration
        """
    if configuration[node_name] is True:
        return True
    if isinstance(configuration[node_name], list):
        return dst_node_name in configuration[node_name]
    return False
