MRI version bumpup for Aluminium
[netvirt.git] / dhcpservice / impl / src / main / java / org / opendaylight / netvirt / dhcpservice / DhcpNeutronPortListener.java
index a242c1d35043e86d700d6dd40930466d2e5c0afa..027cf0c55c2eb22fa6a0625b243f11e13f1be95d 100644 (file)
@@ -138,9 +138,9 @@ public class DhcpNeutronPortListener extends AbstractClusteredAsyncDataTreeChang
         //With Ipv6 changes we can get ipv4 subnets later. The below check is to support such scenario.
         if (original.nonnullFixedIps().size() < update.nonnullFixedIps().size()) {
             final String interfaceName = update.getUuid().getValue();
-            List<FixedIps> updatedFixedIps = new ArrayList<>(update.nonnullFixedIps());
+            List<FixedIps> updatedFixedIps = new ArrayList<>(update.nonnullFixedIps().values());
             // Need to check only the newly added fixed ip.
-            updatedFixedIps.removeAll(original.nonnullFixedIps());
+            updatedFixedIps.removeAll(original.nonnullFixedIps().values());
             Subnet subnet = dhcpManager.getNeutronSubnet(updatedFixedIps);
             if (null == subnet || !subnet.isEnableDhcp()) {
                 LOG.trace("Subnet is null/not ipv4 or not enabled {}", subnet);