package org.opendaylight.genius.utils.hwvtep;
-import static org.opendaylight.mdsal.binding.api.WriteTransaction.CREATE_MISSING_PARENTS;
-
import com.google.common.util.concurrent.FluentFuture;
import java.util.ArrayList;
import java.util.List;
LogicalSwitches logicalSwitch) {
InstanceIdentifier<LogicalSwitches> iid = HwvtepSouthboundUtils.createLogicalSwitchesInstanceIdentifier(nodeId,
logicalSwitch.getHwvtepNodeName());
- tx.put(iid, logicalSwitch, CREATE_MISSING_PARENTS);
+ tx.mergeParentStructurePut(iid, logicalSwitch);
}
/**
final NodeId nodeId, final LogicalSwitches logicalSwitch) {
InstanceIdentifier<LogicalSwitches> iid = HwvtepSouthboundUtils.createLogicalSwitchesInstanceIdentifier(nodeId,
logicalSwitch.getHwvtepNodeName());
- transaction.put(logicalDatastoreType, iid, logicalSwitch, true);
+ transaction.mergeParentStructurePut(logicalDatastoreType, iid, logicalSwitch);
}
/**
.withKey(HwvtepSouthboundUtils.getTerminationPointKey(phyLocator))
.addAugmentation(HwvtepPhysicalLocatorAugmentation.class, phyLocator).build();
- transaction.put(LogicalDatastoreType.CONFIGURATION, iid, terminationPoint, true);
+ transaction.mergeParentStructurePut(LogicalDatastoreType.CONFIGURATION, iid, terminationPoint);
}
/**
InstanceIdentifier<RemoteUcastMacs> iid = HwvtepSouthboundUtils.createInstanceIdentifier(nodeId)
.augmentation(HwvtepGlobalAugmentation.class).child(RemoteUcastMacs.class,
new RemoteUcastMacsKey(remoteUcastMac.getLogicalSwitchRef(), remoteUcastMac.getMacEntryKey()));
- tx.put(iid, remoteUcastMac, CREATE_MISSING_PARENTS);
+ tx.mergeParentStructurePut(iid, remoteUcastMac);
}
/**
InstanceIdentifier<RemoteUcastMacs> iid = HwvtepSouthboundUtils.createInstanceIdentifier(nodeId)
.augmentation(HwvtepGlobalAugmentation.class).child(RemoteUcastMacs.class,
new RemoteUcastMacsKey(remoteUcastMac.getLogicalSwitchRef(), remoteUcastMac.getMacEntryKey()));
- transaction.put(LogicalDatastoreType.CONFIGURATION, iid, remoteUcastMac, true);
+ transaction.mergeParentStructurePut(LogicalDatastoreType.CONFIGURATION, iid, remoteUcastMac);
}
/**
RemoteMcastMacs remoteMcastMac) {
InstanceIdentifier<RemoteMcastMacs> iid = HwvtepSouthboundUtils.createRemoteMcastMacsInstanceIdentifier(nodeId,
remoteMcastMac.key());
- transaction.put(LogicalDatastoreType.CONFIGURATION, iid, remoteMcastMac, true);
+ transaction.mergeParentStructurePut(LogicalDatastoreType.CONFIGURATION, iid, remoteMcastMac);
}
/**
RemoteMcastMacs remoteMcastMac) {
InstanceIdentifier<RemoteMcastMacs> iid = HwvtepSouthboundUtils.createRemoteMcastMacsInstanceIdentifier(nodeId,
remoteMcastMac.key());
- transaction.put(logicalDatastoreType, iid, remoteMcastMac, true);
+ transaction.mergeParentStructurePut(logicalDatastoreType, iid, remoteMcastMac);
}
/**
RemoteMcastMacs remoteMcastMac) {
InstanceIdentifier<RemoteMcastMacs> iid = HwvtepSouthboundUtils.createRemoteMcastMacsInstanceIdentifier(nodeId,
remoteMcastMac.key());
- tx.put(iid, remoteMcastMac, CREATE_MISSING_PARENTS);
+ tx.mergeParentStructurePut(iid, remoteMcastMac);
}
/**
final InstanceIdentifier<HwvtepPhysicalPortAugmentation> iid = HwvtepSouthboundUtils
.createPhysicalPortInstanceIdentifier(physicalSwitchNodeId, phyPortName);
- transaction.merge(LogicalDatastoreType.CONFIGURATION, iid, phyPortAug, true);
+ transaction.mergeParentStructureMerge(LogicalDatastoreType.CONFIGURATION, iid, phyPortAug);
}
/**
final InstanceIdentifier<HwvtepPhysicalPortAugmentation> iid = HwvtepSouthboundUtils
.createPhysicalPortInstanceIdentifier(physicalSwitchNodeId, phyPortName);
- tx.merge(iid, phyPortAug, CREATE_MISSING_PARENTS);
+ tx.mergeParentStructureMerge(iid, phyPortAug);
}
/**