use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.coe.meta.rev180118.podidentifier.info.PodIdentifierBuilder in project netvirt by opendaylight.
the class CoeUtils method createPodNameToPodUuidMap.
public static void createPodNameToPodUuidMap(String podName, InstanceIdentifier<Pods> pod, WriteTransaction writeTransaction) {
InstanceIdentifier<PodIdentifier> id = InstanceIdentifier.builder(PodidentifierInfo.class).child(PodIdentifier.class, new PodIdentifierKey(podName)).build();
PodIdentifier podIdentifier = new PodIdentifierBuilder().setKey(new PodIdentifierKey(podName)).setPodName(podName).setPodUuid(pod).build();
writeTransaction.put(LogicalDatastoreType.OPERATIONAL, id, podIdentifier);
LOG.debug("Creating podnametouuid map {} to {}", podName, pod);
}
Aggregations