Add DataSchemaNode.effectiveConfig()
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / SchemaAwareApplyOperation.java
index bc7dd85056dd979aad5c39798ccd550c47ece7a3..c9ff42e2cdca7b16f1462134eccad2bdd8c61cdb 100644 (file)
@@ -315,6 +315,6 @@ abstract class SchemaAwareApplyOperation<T extends WithStatus> extends Modificat
      * @return {@code true} if the node matches the tree type, {@code false} otherwise.
      */
     static final boolean belongsToTree(final TreeType treeType, final DataSchemaNode node) {
-        return treeType == TreeType.OPERATIONAL || node.isConfiguration();
+        return treeType == TreeType.OPERATIONAL || node.effectiveConfig().orElse(Boolean.TRUE);
     }
 }