import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.RpcDefinition;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack;
// FIXME: remove this class
operationsBuilder.withChild(ImmutableNodes.leafNode(leaf.getQName(), Empty.value()));
}
- return Map.entry(new InstanceIdentifierContext(null, operatationsSchema, mountPoint,
- new OperationsEffectiveModuleContext(ImmutableSet.copyOf(modules))), operationsBuilder.build());
+ final var opContext = new OperationsEffectiveModuleContext(ImmutableSet.copyOf(modules));
+ final var stack = SchemaInferenceStack.of(opContext);
+ stack.enterSchemaTree(operatationsSchema.getQName());
+
+ return Map.entry(InstanceIdentifierContext.ofStack(stack, mountPoint), operationsBuilder.build());
}
}