Enable coala checks
[netvirt.git] / dhcpservice / impl / src / main / java / org / opendaylight / netvirt / dhcpservice / jobs / DhcpInterfaceUpdateJob.java
index bd069d0147b69f15f02834ea41ac52e6dfd5f6ac..9290dad1a7e5366b8a7aaa19f7a59e67f1458b1f 100644 (file)
@@ -53,7 +53,7 @@ public class DhcpInterfaceUpdateJob implements Callable<List<ListenableFuture<Vo
             return Collections.emptyList();
         }
         if (Tunnel.class.equals(iface.getType())) {
-            IfTunnel tunnelInterface = iface.getAugmentation(IfTunnel.class);
+            IfTunnel tunnelInterface = iface.augmentation(IfTunnel.class);
             if (tunnelInterface != null && !tunnelInterface.isInternal()) {
                 IpAddress tunnelIp = tunnelInterface.getTunnelDestination();
                 List<BigInteger> dpns = DhcpServiceUtils.getListOfDpns(dataBroker);
@@ -68,4 +68,4 @@ public class DhcpInterfaceUpdateJob implements Callable<List<ListenableFuture<Vo
         }
         return Collections.emptyList();
     }
-}
\ No newline at end of file
+}