X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=dhcpservice%2Fimpl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetvirt%2Fdhcpservice%2FDhcpNeutronPortListener.java;h=027cf0c55c2eb22fa6a0625b243f11e13f1be95d;hb=cf1ea9172b94fc17e45391b62bf4ca24ac5c5fe0;hp=a242c1d35043e86d700d6dd40930466d2e5c0afa;hpb=84a7d0a360f0d5f9b588e269840a92158d1be7d2;p=netvirt.git diff --git a/dhcpservice/impl/src/main/java/org/opendaylight/netvirt/dhcpservice/DhcpNeutronPortListener.java b/dhcpservice/impl/src/main/java/org/opendaylight/netvirt/dhcpservice/DhcpNeutronPortListener.java index a242c1d350..027cf0c55c 100644 --- a/dhcpservice/impl/src/main/java/org/opendaylight/netvirt/dhcpservice/DhcpNeutronPortListener.java +++ b/dhcpservice/impl/src/main/java/org/opendaylight/netvirt/dhcpservice/DhcpNeutronPortListener.java @@ -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 updatedFixedIps = new ArrayList<>(update.nonnullFixedIps()); + List 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);