BUG-4684: validate changes against effective state
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / StructuralContainerModificationStrategy.java
index be35b5aa673402019e2b2210365194577f223c42..55784e06b4577144d873f446cb6d48accfa5df5e 100644 (file)
@@ -89,12 +89,13 @@ final class StructuralContainerModificationStrategy extends ModificationApplyOpe
     }
 
     @Override
-    void checkApplicable(final YangInstanceIdentifier path, final NodeModification modification, final Optional<TreeNode> current) throws DataValidationFailedException {
+    void checkApplicable(final YangInstanceIdentifier path, final NodeModification modification,
+            final Optional<TreeNode> current, final Version version) throws DataValidationFailedException {
         if (modification.getOperation() == LogicalOperation.TOUCH && !current.isPresent()) {
             // Structural containers are created as needed, so we pretend this container is here
-            delegate.checkApplicable(path, modification, fakeMeta(FAKE_VERSION));
+            delegate.checkApplicable(path, modification, fakeMeta(FAKE_VERSION), version);
         } else {
-            delegate.checkApplicable(path, modification, current);
+            delegate.checkApplicable(path, modification, current, version);
         }
     }