Interface podInterfaceAfter = dataObjectModification.getDataAfter();
switch (dataObjectModification.getModificationType()) {
case DELETE:
- remove(rootIdentifier, podsBefore, podInterfaceBefore);
+ remove(podsBefore, podInterfaceBefore);
break;
case SUBTREE_MODIFIED:
update(rootIdentifier, pods, podsBefore, podInterfaceBefore, podInterfaceAfter);
}
}
- private void remove(InstanceIdentifier<Pods> instanceIdentifier,
- Pods pods, Interface podInterface) {
+ private void remove(Pods pods, Interface podInterface) {
LOG.trace("Pod removed {}", pods);
if (pods.getNetworkNS() == null || pods.getHostIpAddress() == null) {
- LOG.warn("pod {} deletion without a valid network id {}", podInterface.getUid().getValue());
+ LOG.warn("pod {} deletion without a valid network id", podInterface.getUid().getValue());
return;
}