Bug 6272 - support RESTCONF PATCH for mounted NETCONF nodes
[netconf.git] / opendaylight / restconf / sal-rest-connector / src / main / java / org / opendaylight / netconf / sal / restconf / impl / RestconfImpl.java
index 36efcfbe162f8b972bf7cc024b3258148d6a29e0..f4bad219d4bf84b1af8ed3548a8499691e2fba05 100644 (file)
@@ -1056,8 +1056,8 @@ public class RestconfImpl implements RestconfService {
             throw new RestconfDocumentedException("Input is required.", ErrorType.PROTOCOL, ErrorTag.MALFORMED_MESSAGE);
         }
         try {
-            return broker.patchConfigurationDataWithinTransaction(context, controllerContext.getGlobalSchema());
-        } catch (TransactionCommitFailedException e) {
+            return broker.patchConfigurationDataWithinTransaction(context);
+        } catch (Exception e) {
             LOG.debug("Patch transaction failed", e);
             throw new RestconfDocumentedException(e.getMessage());
         }
@@ -1069,8 +1069,8 @@ public class RestconfImpl implements RestconfService {
             throw new RestconfDocumentedException("Input is required.", ErrorType.PROTOCOL, ErrorTag.MALFORMED_MESSAGE);
         }
         try {
-            return broker.patchConfigurationDataWithinTransaction(context, controllerContext.getGlobalSchema());
-        } catch (TransactionCommitFailedException e) {
+            return broker.patchConfigurationDataWithinTransaction(context);
+        } catch (Exception e) {
             LOG.debug("Patch transaction failed", e);
             throw new RestconfDocumentedException(e.getMessage());
         }