Fixup Augmentable and Identifiable methods changing
[netvirt.git] / vpnmanager / impl / src / main / java / org / opendaylight / netvirt / vpnmanager / VpnFootprintService.java
index 453a4b83b719fea8ca87d5ff56fb96a6470ad3b2..c6e0d8f7fb692539fe41d11e0f022d77b66f47d3 100644 (file)
@@ -197,7 +197,7 @@ public class VpnFootprintService implements IVpnFootprintService {
             Optional<VpnToDpnList> dpnInVpn = VpnUtil.read(dataBroker, LogicalDatastoreType.OPERATIONAL, id);
             IpAddressesBuilder ipAddressesBldr = new IpAddressesBuilder()
                     .setIpAddressSource(ipAddressSourceValuePair.getKey());
-            ipAddressesBldr.setKey(new IpAddressesKey(ipAddressSourceValuePair.getValue()));
+            ipAddressesBldr.withKey(new IpAddressesKey(ipAddressSourceValuePair.getValue()));
             ipAddressesBldr.setIpAddress(ipAddressSourceValuePair.getValue());
 
             ListenableFuture<Void> future = txRunner.callWithNewWriteOnlyTransactionAndSubmit(tx -> {
@@ -329,7 +329,7 @@ public class VpnFootprintService implements IVpnFootprintService {
             }
 
             IpAddresses currIpAddress = new IpAddressesBuilder()
-                    .setKey(new IpAddressesKey(ipAddressSourceValuePair.getValue()))
+                    .withKey(new IpAddressesKey(ipAddressSourceValuePair.getValue()))
                     .setIpAddressSource(ipAddressSourceValuePair.getKey()).build();
             if (ipAddresses.remove(currIpAddress)) {
                 try {