update deprecated transform and addCallback methods
[groupbasedpolicy.git] / neutron-ovsdb / src / main / java / org / opendaylight / groupbasedpolicy / neutron / ovsdb / OvsdbNodeListener.java
index 14f953c5d9b86c17a25734008fad2cfc6a00c5c9..18018fe1c03c77ea27d45669da52b7a1525f08dc 100644 (file)
@@ -22,6 +22,7 @@ import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
 import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.MoreExecutors;
 
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.controller.md.sal.binding.api.DataObjectModification;
@@ -126,7 +127,7 @@ public class OvsdbNodeListener extends DataTreeChangeHandler<Node> {
                         LOG.error("Failed to write bridge {}. Message: {}" + bridge.getNodeId().getValue(),
                                 t.getMessage());
                     }
-                });
+                }, MoreExecutors.directExecutor());
             }
         }
         OvsdbBridgeAugmentation ovsdbBridge = node.getAugmentation(OvsdbBridgeAugmentation.class);