import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification;
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataValidationFailedException;
-import org.opendaylight.yangtools.yang.data.api.schema.tree.ModificationType;
import org.opendaylight.yangtools.yang.data.api.schema.tree.spi.TreeNode;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.slf4j.Logger;
public synchronized void setSchemaContext(final SchemaContext newSchemaContext) {
Preconditions.checkNotNull(newSchemaContext);
- LOG.info("Attempting to install schema contexts");
LOG.debug("Following schema contexts will be attempted {}", newSchemaContext);
final SchemaAwareApplyOperation operation = SchemaAwareApplyOperation.from(newSchemaContext);
final InMemoryDataTreeModification m = (InMemoryDataTreeModification)modification;
final ModifiedNode root = m.getRootModification();
- if (root.getType() == ModificationType.UNMODIFIED) {
+ if (root.getOperation() == LogicalOperation.NONE) {
return new NoopDataTreeCandidate(PUBLIC_ROOT_PATH, root);
}