Migrate netconf users of submit() to commit()
[netconf.git] / netconf / callhome-provider / src / main / java / org / opendaylight / netconf / callhome / mount / CallhomeStatusReporter.java
index b315aeef989fc6b1b8cc55219e3eb76101311c2a..db43d0d39377e6cfc34a214422a52188ba3d2980 100644 (file)
@@ -224,7 +224,7 @@ class CallhomeStatusReporter implements DataTreeChangeListener<Node>, StatusReco
     private void writeDevice(final NodeId nodeId, final Device modifiedDevice) {
         ReadWriteTransaction opTx = dataBroker.newReadWriteTransaction();
         opTx.merge(LogicalDatastoreType.OPERATIONAL, buildDeviceInstanceIdentifier(nodeId), modifiedDevice);
-        opTx.submit();
+        opTx.commit();
     }
 
     private static InstanceIdentifier<Device> buildDeviceInstanceIdentifier(final NodeId nodeId) {
@@ -265,7 +265,7 @@ class CallhomeStatusReporter implements DataTreeChangeListener<Node>, StatusReco
                         .child(Device.class, device.key());
 
         tx.merge(LogicalDatastoreType.OPERATIONAL, deviceIId, device);
-        tx.submit();
+        tx.commit();
     }
 
     private AllowedDevices getDevices() {