Migrate ListenableFutures.addErrorLogging() callers
[genius.git] / ipv6util / impl / src / main / java / org / opendaylight / genius / ipv6util / nd / Ipv6NsHelper.java
index d863946f9346adb8837acff052fb621343bd7f35..8981726b0c60e9168fe02343f4ba1f55028eb51f 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.genius.ipv6util.nd;
 
 import java.net.InetAddress;
@@ -24,7 +23,7 @@ import org.opendaylight.genius.mdsalutil.MDSALUtil;
 import org.opendaylight.genius.mdsalutil.NwConstants;
 import org.opendaylight.genius.mdsalutil.actions.ActionGroup;
 import org.opendaylight.genius.mdsalutil.packet.IPProtocols;
-import org.opendaylight.infrautils.utils.concurrent.ListenableFutures;
+import org.opendaylight.infrautils.utils.concurrent.LoggingFutures;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.packet.rev160620.NeighborSolicitationPacket;
@@ -131,7 +130,7 @@ public class Ipv6NsHelper {
 
         // Tx the packet out of the controller.
         LOG.debug("Transmitting the Neighbor Solicitation packet out on {}", dpnId);
-        ListenableFutures.addErrorLogging(packetService.transmitPacket(input), LOG, "transmitPacket");
+        LoggingFutures.addErrorLogging(packetService.transmitPacket(input), LOG, "transmitPacket");
         return true;
     }
 
@@ -147,6 +146,6 @@ public class Ipv6NsHelper {
                 "Transmitting Neighbor Solicitation packet out. srcMacAddress={}, srcIpv6Address={}, "
                         + "targetIpv6Address={}, dpId={}, ofGroupId={}",
                 srcMacAddress.getValue(), srcIpv6Address.getValue(), targetIpv6Address.getValue(), dpId, ofGroupId);
-        ListenableFutures.addErrorLogging(packetService.transmitPacket(input), LOG, "transmitPacket");
+        LoggingFutures.addErrorLogging(packetService.transmitPacket(input), LOG, "transmitPacket");
     }
 }