Migrate netconf users of submit() to commit()
[netconf.git] / netconf / callhome-provider / src / main / java / org / opendaylight / netconf / callhome / mount / IetfZeroTouchCallHomeServerProvider.java
index 982ec0c6f631abbe2c4fde470f2b58d28c99bfc2..b71e423c4a9d97b6ca85c8d5626a0f3189b1412e 100644 (file)
@@ -185,7 +185,7 @@ public class IetfZeroTouchCallHomeServerProvider implements AutoCloseable, DataT
         }
 
         if (numRemoved > 0) {
-            opTx.submit();
+            opTx.commit();
         }
     }
 
@@ -213,6 +213,6 @@ public class IetfZeroTouchCallHomeServerProvider implements AutoCloseable, DataT
                 .setSshHostKey(cfgDevice.getSshHostKey()).setUniqueId(cfgDevice.getUniqueId()).build();
 
         tx.merge(LogicalDatastoreType.OPERATIONAL, deviceIID, cfgDevice);
-        tx.submit();
+        tx.commit();
     }
 }